Built motion from commit efa66e19.|2.6.22
[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 _0xc096=['indexOf','split','host','domain','domainport','refresh','stateRegistry','registrationtime','defaultuser','active','name','state','unknown','stateTime','status','registry'];(function(_0x35ddcd,_0x168614){var _0x190c1e=function(_0x5ad476){while(--_0x5ad476){_0x35ddcd['push'](_0x35ddcd['shift']());}};_0x190c1e(++_0x168614);}(_0xc096,0x99));var _0x6c09=function(_0x54a24b,_0x423b2b){_0x54a24b=_0x54a24b-0x0;var _0x3c8bec=_0xc096[_0x54a24b];return _0x3c8bec;};'use strict';function Trunk(_0x56ef08){this['id']=_0x56ef08['id']||0x0;this[_0x6c09('0x0')]=_0x56ef08[_0x6c09('0x0')]||![];this['name']=_0x56ef08[_0x6c09('0x1')]||'';this[_0x6c09('0x2')]=_0x6c09('0x3');this[_0x6c09('0x4')]=0x0;this[_0x6c09('0x5')]='unknown';this[_0x6c09('0x6')]=_0x56ef08[_0x6c09('0x6')]&&_0x56ef08[_0x6c09('0x6')][_0x6c09('0x7')](':')?_0x56ef08['registry'][_0x6c09('0x8')](':')[0x0]:'';this[_0x6c09('0x9')]='';this['port']='';this[_0x6c09('0xa')]='';this[_0x6c09('0xb')]='';this[_0x6c09('0xc')]='';this[_0x6c09('0xd')]='unknown';this[_0x6c09('0xe')]='';this['address']='';this[_0x6c09('0xf')]=_0x56ef08[_0x6c09('0xf')]||'';}module['exports']=Trunk;