e0e4e2fbb4b4ed157687ea7ae238e81211a96dc2
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnPerformanceCurrent / mwtnPerformanceCurrent-module / src / main / resources / mwtnPerformanceCurrent / mwtnPerformanceCurrent.module.js
1 /*
2  * Copyright (c) 2016 highstreet technologies GmbH and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 define(['angularAMD', 
10         'app/routingConfig', 
11         'app/core/core.services', 
12         'common/config/env.module',
13         'app/mwtnCommons/mwtnCommons.module'], function(ng) {
14   var mwtnPerformanceCurrentApp = angular.module('app.mwtnPerformanceCurrent', ['ui.grid', 'ui.bootstrap', 'app.core', 'ui.router.state', 'config', 'ui.router.state','ui.grid.exporter',
15       'ui.grid.moveColumns', 'ui.grid.pinning', 'ui.grid.selection',
16       'ui.grid.resizeColumns', 'ui.grid.pagination','ui.grid.autoResize']);
17
18   mwtnPerformanceCurrentApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
19     mwtnPerformanceCurrentApp.register = {
20       controller : $controllerProvider.register,
21       directive : $compileProvider.directive,
22       factory : $provide.factory,
23       service : $provide.service
24
25     };
26
27     NavHelperProvider.addControllerUrl('app/mwtnPerformanceCurrent/mwtnPerformanceCurrent.controller');
28     NavHelperProvider.addToMenu('mwtnPerformanceCurrent', {
29      "link" : "#/pnfPerformanceCurrent",
30      "active" : "main.mwtnPerformanceCurrent",
31      "title" : "pnf PM Current",
32      "icon" : "fa fa-bar-chart",  // Add navigation icon css class here
33      "page" : {
34         "title" : "pnf PM Current",
35         "description" : "mwtnPerformanceCurrent"
36      }
37     });
38
39     var access = routingConfig.accessLevels;
40
41     $stateProvider.state('main.mwtnPerformanceCurrent', {
42         url: 'pnfPerformanceCurrent',
43         access: access.admin,
44         views : {
45             'content' : {
46                 templateUrl: 'src/app/mwtnPerformanceCurrent/mwtnPerformanceCurrent.tpl.html',
47                 controller: 'mwtnPerformanceCurrentCtrl'
48             }
49         }
50     });
51
52   });
53
54   return mwtnPerformanceCurrentApp;
55 });