Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / ami / model / trunk.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x5771=['stateTime','status','unknown','registry','split','host','domainport','refresh','stateRegistry','registrationtime','defaultuser','active','name','state'];(function(_0x52e06a,_0x671ab2){var _0xde95f1=function(_0x57df62){while(--_0x57df62){_0x52e06a['push'](_0x52e06a['shift']());}};_0xde95f1(++_0x671ab2);}(_0x5771,0x1cb));var _0x1577=function(_0x252bb7,_0x63e975){_0x252bb7=_0x252bb7-0x0;var _0x5d3138=_0x5771[_0x252bb7];return _0x5d3138;};'use strict';function Trunk(_0x380ceb){this['id']=_0x380ceb['id']||0x0;this[_0x1577('0x0')]=_0x380ceb[_0x1577('0x0')]||![];this[_0x1577('0x1')]=_0x380ceb['name']||'';this[_0x1577('0x2')]='unknown';this[_0x1577('0x3')]=0x0;this[_0x1577('0x4')]=_0x1577('0x5');this[_0x1577('0x6')]=_0x380ceb[_0x1577('0x6')]&&_0x380ceb[_0x1577('0x6')]['indexOf'](':')?_0x380ceb['registry'][_0x1577('0x7')](':')[0x0]:'';this[_0x1577('0x8')]='';this['port']='';this['domain']='';this[_0x1577('0x9')]='';this[_0x1577('0xa')]='';this[_0x1577('0xb')]='unknown';this[_0x1577('0xc')]='';this['address']='';this[_0x1577('0xd')]=_0x380ceb[_0x1577('0xd')]||'';}module['exports']=Trunk;