1/** 2 * A module for the overview 3 * 4 * @module app/overview/index 5 * @exports app/overview/index 6 * @version 0.0.1 7 */ 8 9window.angular && (function (angular) { 10 'use strict'; 11 12 angular 13 .module('app.overview', [ 14 'ngRoute', 15 'app.constants', 16 'app.common.services' 17 ]) 18 // Route configuration 19 .config(['$routeProvider', function ($routeProvider) { 20 $routeProvider 21 .when('/overview/inventory-overview', { 22 'templateUrl': 'overview/controllers/inventory-overview-controller.html', 23 'controller': 'inventoryOverviewController', 24 authenticated: true 25 }) 26 .when('/overview/inventory', { 27 'templateUrl': 'overview/controllers/inventory-controller.html', 28 'controller': 'inventoryController', 29 authenticated: true 30 }) 31 .when('/overview/sensors-overview', { 32 'templateUrl': 'overview/controllers/sensors-overview-controller.html', 33 'controller': 'sensorsOverviewController', 34 authenticated: true 35 }) 36 .when('/overview/sensors', { 37 'templateUrl': 'overview/controllers/sensors-controller.html', 38 'controller': 'sensorsController', 39 authenticated: true 40 }) 41 .when('/overview/bmc-reboot', { 42 'templateUrl': 'overview/controllers/bmc-reboot-controller.html', 43 'controller': 'bmcRebootController', 44 authenticated: true 45 }) 46 .when('/overview/log', { 47 'templateUrl': 'overview/controllers/log-controller.html', 48 'controller': 'logController', 49 authenticated: true 50 }) 51 .when('/overview/power-operations', { 52 'templateUrl': 'overview/controllers/power-operations-controller.html', 53 'controller': 'powerOperationsController', 54 authenticated: true 55 }) 56 .when('/overview/unit-id', { 57 'templateUrl': 'overview/controllers/unit-id-controller.html', 58 'controller': 'unitIdController', 59 authenticated: true 60 }) 61 .when('/overview/system', { 62 'templateUrl': 'overview/controllers/system-overview-controller.html', 63 'controller': 'systemOverviewController', 64 authenticated: true 65 }); 66 }]); 67 68})(window.angular); 69