1/**
2 * A module for the serverControl
3 *
4 * @module app/server-control/index
5 * @exports app/server-control/index
6 * @version 0.0.1
7 */
8
9window.angular && (function (angular) {
10    'use strict';
11
12    angular
13        .module('app.serverControl', [
14            'ngRoute',
15            'app.constants',
16            'app.common.services'
17        ])
18        // Route configuration
19        .config(['$routeProvider', function ($routeProvider) {
20            $routeProvider
21                .when('/server-control/bmc-reboot', {
22                    'templateUrl': 'server-control/controllers/bmc-reboot-controller.html',
23                    'controller': 'bmcRebootController',
24                    authenticated: true
25                })
26                .when('/server-control/server-led', {
27                    'templateUrl': 'server-health/controllers/unit-id-controller.html',
28                    'controller': 'unitIdController',
29                    authenticated: true
30                })
31                .when('/server-control/power-operations', {
32                    'templateUrl': 'server-control/controllers/power-operations-controller.html',
33                    'controller': 'powerOperationsController',
34                    authenticated: true
35                })
36                .when('/server-control/remote-console', {
37                    'templateUrl': 'server-control/controllers/remote-console-controller.html',
38                    'controller': 'remoteConsoleController',
39                    authenticated: true
40                })
41                .when('/server-control/remote-console-window', {
42                    'templateUrl': 'server-control/controllers/remote-console-window-controller.html',
43                    'controller': 'remoteConsoleWindowController',
44                    authenticated: true
45                })
46                .when('/server-control', {
47                    'templateUrl': 'server-control/controllers/power-operations-controller.html',
48                    'controller': 'powerOperationsController',
49                    authenticated: true
50                });
51        }]);
52
53})(window.angular);
54