Assign image keyname and pubkey at vnf level
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnClosedLoop / mwtnClosedLoop-module / src / main / resources / mwtnClosedLoop / mwtnClosedLoop.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', 'app/routingConfig', 'app/core/core.services', 'common/config/env.module',
10         'app/mwtnCommons/mwtnCommons.module'], function(ng) {
11   var mwtnClosedLoopApp = angular.module('app.mwtnClosedLoop', ['ui.grid', 'ui.bootstrap', 'app.core', 'ui.router.state','config']);
12
13   mwtnClosedLoopApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
14     mwtnClosedLoopApp.register = {
15       controller : $controllerProvider.register,
16       directive : $compileProvider.directive,
17       factory : $provide.factory,
18       service : $provide.service
19
20     };
21
22
23     NavHelperProvider.addControllerUrl('app/mwtnClosedLoop/mwtnClosedLoop.controller');
24     NavHelperProvider.addToMenu('mwtnClosedLoop', {
25      "link" : "#/mwtnClosedLoop",
26      "active" : "main.mwtnClosedLoop",
27      "title" : "MWTN Closed Loop Automation",
28      "icon" : "fa fa-circle-o",  // Add navigation icon css class here
29      "page" : {
30         "title" : "MWTN Closed Loop Automation",
31         "description" : "mwtnClosedLoop"
32      }
33     });
34
35     var access = routingConfig.accessLevels;
36
37     $stateProvider.state('main.mwtnClosedLoop', {
38         url: 'mwtnClosedLoop',
39         access: access.admin,
40         views : {
41             'content' : {
42                 templateUrl: 'src/app/mwtnClosedLoop/mwtnClosedLoop.tpl.html',
43                 controller: 'mwtnClosedLoopCtrl'
44             }
45         }
46     });
47
48   });
49
50   return mwtnClosedLoopApp;
51 });