Built motion from commit fa4c4286.|2.6.29
[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 _0xc475=['unknown','stateTime','registry','indexOf','split','port','domain','domainport','refresh','stateRegistry','registrationtime','address','defaultuser','exports','active','name','state'];(function(_0x3b7fad,_0x17834c){var _0x5a31c2=function(_0x3fccca){while(--_0x3fccca){_0x3b7fad['push'](_0x3b7fad['shift']());}};_0x5a31c2(++_0x17834c);}(_0xc475,0x162));var _0x5c47=function(_0x27f9a9,_0xf0be85){_0x27f9a9=_0x27f9a9-0x0;var _0x4044c5=_0xc475[_0x27f9a9];return _0x4044c5;};'use strict';function Trunk(_0x252812){this['id']=_0x252812['id']||0x0;this[_0x5c47('0x0')]=_0x252812[_0x5c47('0x0')]||![];this[_0x5c47('0x1')]=_0x252812[_0x5c47('0x1')]||'';this[_0x5c47('0x2')]=_0x5c47('0x3');this[_0x5c47('0x4')]=0x0;this['status']='unknown';this[_0x5c47('0x5')]=_0x252812[_0x5c47('0x5')]&&_0x252812['registry'][_0x5c47('0x6')](':')?_0x252812[_0x5c47('0x5')][_0x5c47('0x7')](':')[0x0]:'';this['host']='';this[_0x5c47('0x8')]='';this[_0x5c47('0x9')]='';this[_0x5c47('0xa')]='';this[_0x5c47('0xb')]='';this[_0x5c47('0xc')]=_0x5c47('0x3');this[_0x5c47('0xd')]='';this[_0x5c47('0xe')]='';this[_0x5c47('0xf')]=_0x252812[_0x5c47('0xf')]||'';}module[_0x5c47('0x10')]=Trunk;