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