'use strict';

var hubManagementApp = angular.module('hubManagementApp',
    [
        'ngSanitize',
        'ngRoute',
        'notifications',
        'ui.bootstrap',
        'ngCookies',
        'hubManagementServiceModule',
        'actionServiceModule',
        'actionHelperModule'
    ]
);

hubManagementApp.config(['$httpProvider', function ($httpProvider) {
    //This header was removed from recent version of angular.
    // PHP looks at this header to separate request between regular and AJAX.
    $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest';
    // IE fix to prevent caching
    $httpProvider.defaults.headers.common["If-Modified-Since"] = 0;
}]);
