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