1/**
2 * A module for the serverHealth
3 *
4 * @module app/server-health/index
5 * @exports app/server-health/index
6 */
7
8window.angular && (function(angular) {
9  'use strict';
10
11  angular
12      .module(
13          'app.serverHealth',
14          ['ngRoute', 'app.constants', 'app.common.services'])
15      // Route configuration
16      .config([
17        '$routeProvider',
18        function($routeProvider) {
19          $routeProvider
20              .when('/server-health/event-log', {
21                'template': require('./controllers/log-controller.html'),
22                'controller': 'logController',
23                authenticated: true
24              })
25              .when('/server-health/event-log/:type', {
26                'template': require('./controllers/log-controller.html'),
27                'controller': 'logController',
28                authenticated: true
29              })
30              .when('/server-health/event-log/:type/:id', {
31                'template': require('./controllers/log-controller.html'),
32                'controller': 'logController',
33                authenticated: true
34              })
35              .when('/server-health/inventory-overview', {
36                'template':
37                    require('./controllers/inventory-overview-controller.html'),
38                'controller': 'inventoryOverviewController',
39                authenticated: true
40              })
41              .when('/server-health/inventory', {
42                'template': require('./controllers/inventory-controller.html'),
43                'controller': 'inventoryController',
44                authenticated: true
45              })
46              .when('/server-health/sensors-overview', {
47                'template':
48                    require('./controllers/sensors-overview-controller.html'),
49                'controller': 'sensorsOverviewController',
50                authenticated: true
51              })
52              .when('/server-health/sensors/:type', {
53                'template': require('./controllers/sensors-controller.html'),
54                'controller': 'sensorsController',
55                authenticated: true
56              })
57              .when('/server-health/power-consumption', {
58                'template':
59                    require('./controllers/power-consumption-controller.html'),
60                'controller': 'powerConsumptionController',
61                authenticated: true
62              })
63              .when('/server-health/diagnostics', {
64                'template':
65                    require('./controllers/diagnostics-controller.html'),
66                'controller': 'diagnosticsController',
67                authenticated: true
68              })
69              .when('/server-health', {
70                'template': require('./controllers/log-controller.html'),
71                'controller': 'logController',
72                authenticated: true
73              });
74        }
75      ]);
76
77})(window.angular);
78