b61ca531b3fe0b3eb7b8f690733fd92876ba5fa4
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnTest / mwtnTest-module / src / main / resources / mwtnTest / mwtnTest.services.js
1 /*
2  * @copyright 2017 highstreet technologies 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(['app/mwtnCommons/mwtnCommons.module', 'app/mwtnTest/mwtnTest.module'],function(mwtnTestApp) {
10
11   mwtnTestApp.register.factory('$mwtnTest', function($mwtnCommons, $mwtnDatabase, $mwtnLog) {
12
13     var COMPONENT = '$mwtnTest';
14     $mwtnLog.info({component: COMPONENT, message: '$mwtnTest started!'});
15
16     var service = {};
17     
18     service.parts = $mwtnCommons.parts;
19     service.getPacParts = $mwtnCommons.getPacParts;
20     service.getModules = $mwtnDatabase.getModules;
21     service.getPartGlobalId = $mwtnCommons.getPartGlobalId;
22     service.getPartLocalId = $mwtnCommons.getPartLocalId;
23     service.layerProtocolNameOrder = $mwtnCommons.layerProtocolNameOrder;
24     
25     service.separator = $mwtnCommons.separator;
26     service.yangify = $mwtnCommons.yangify;
27     service.yangifyObject = $mwtnCommons.yangifyObject;
28
29     return service;
30   });
31
32 });