2 * @copyright 2017 highstreet technologies and others. All rights reserved.
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
9 define(['app/mwtnCommons/mwtnCommons.module', 'app/mwtnBrowser/mwtnBrowser.module'],function(mwtnBrowserApp) {
11 mwtnBrowserApp.register.factory('$mwtnBrowser', function($mwtnCommons, $mwtnDatabase, $mwtnLog) {
13 var COMPONENT = '$mwtnBrowser';
14 $mwtnLog.info({component: COMPONENT, message: '$mwtnBrowser started!'});
18 service.separator = $mwtnCommons.separator;
20 service.parts = $mwtnCommons.parts;
21 service.getPacParts = $mwtnCommons.getPacParts;
22 service.getModules = $mwtnDatabase.getModules;
23 service.getPartGlobalId = $mwtnCommons.getPartGlobalId;
24 service.getPartLocalId = $mwtnCommons.getPartLocalId;
25 service.getViewData = $mwtnCommons.getViewData;
26 service.getForwardingConstruct = $mwtnCommons.getForwardingConstruct;
27 service.layerProtocolNameOrder = $mwtnCommons.layerProtocolNameOrder;
28 service.yangify = $mwtnCommons.yangify;
29 service.yangifyObject = $mwtnCommons.yangifyObject;
31 service.refreshPTP = function() {
32 console.error('refresh ptp');