aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnTest/mwtnTest-module/src/main/resources/mwtnTest/mwtnTest.services.js
blob: b61ca531b3fe0b3eb7b8f690733fd92876ba5fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * @copyright 2017 highstreet technologies and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

define(['app/mwtnCommons/mwtnCommons.module', 'app/mwtnTest/mwtnTest.module'],function(mwtnTestApp) {

  mwtnTestApp.register.factory('$mwtnTest', function($mwtnCommons, $mwtnDatabase, $mwtnLog) {

    var COMPONENT = '$mwtnTest';
    $mwtnLog.info({component: COMPONENT, message: '$mwtnTest started!'});

    var service = {};
    
    service.parts = $mwtnCommons.parts;
    service.getPacParts = $mwtnCommons.getPacParts;
    service.getModules = $mwtnDatabase.getModules;
    service.getPartGlobalId = $mwtnCommons.getPartGlobalId;
    service.getPartLocalId = $mwtnCommons.getPartLocalId;
    service.layerProtocolNameOrder = $mwtnCommons.layerProtocolNameOrder;
    
    service.separator = $mwtnCommons.separator;
    service.yangify = $mwtnCommons.yangify;
    service.yangifyObject = $mwtnCommons.yangifyObject;

    return service;
  });

});