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