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('app.serverHealth', ['ngRoute', 'app.common.services'])
13      // Route configuration
14      .config([
15        '$routeProvider',
16        function($routeProvider) {
17          $routeProvider
18              .when('/server-health/event-log', {
19                'template': require('./controllers/log-controller.html'),
20                'controller': 'logController',
21                authenticated: true
22              })
23              .when('/server-health/event-log/:type', {
24                'template': require('./controllers/log-controller.html'),
25                'controller': 'logController',
26                authenticated: true
27              })
28              .when('/server-health/event-log/:type/:id', {
29                'template': require('./controllers/log-controller.html'),
30                'controller': 'logController',
31                authenticated: true
32              })
33              .when('/server-health/inventory-overview', {
34                'template':
35                    require('./controllers/inventory-overview-controller.html'),
36                'controller': 'inventoryOverviewController',
37                authenticated: true
38              })
39              .when('/server-health/sensors-overview', {
40                'template':
41                    require('./controllers/sensors-overview-controller.html'),
42                'controller': 'sensorsOverviewController',
43                authenticated: true
44              })
45              .when('/server-health/sys-log', {
46                'template': require('./controllers/syslog-controller.html'),
47                'controller': 'sysLogController',
48                authenticated: true
49              })
50              .when('/server-health', {
51                'template': require('./controllers/log-controller.html'),
52                'controller': 'logController',
53                authenticated: true
54              });
55        }
56      ]);
57})(window.angular);
58