6226ef4a88d427a32e90a0f52f7afd9ef2776171
[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 _0x17bc=['state','unknown','status','registry','indexOf','host','port','domain','refresh','stateRegistry','registrationtime','address','defaultuser','exports','active','name'];(function(_0x38d5b2,_0xe77bf4){var _0x5b4ba8=function(_0x28ee00){while(--_0x28ee00){_0x38d5b2['push'](_0x38d5b2['shift']());}};_0x5b4ba8(++_0xe77bf4);}(_0x17bc,0x16e));var _0xc17b=function(_0x2b62c7,_0x3cb738){_0x2b62c7=_0x2b62c7-0x0;var _0xc6f97a=_0x17bc[_0x2b62c7];return _0xc6f97a;};'use strict';function Trunk(_0x51d54b){this['id']=_0x51d54b['id']||0x0;this[_0xc17b('0x0')]=_0x51d54b[_0xc17b('0x0')]||![];this['name']=_0x51d54b[_0xc17b('0x1')]||'';this[_0xc17b('0x2')]=_0xc17b('0x3');this['stateTime']=0x0;this[_0xc17b('0x4')]='unknown';this[_0xc17b('0x5')]=_0x51d54b['registry']&&_0x51d54b[_0xc17b('0x5')][_0xc17b('0x6')](':')?_0x51d54b[_0xc17b('0x5')]['split'](':')[0x0]:'';this[_0xc17b('0x7')]='';this[_0xc17b('0x8')]='';this[_0xc17b('0x9')]='';this['domainport']='';this[_0xc17b('0xa')]='';this[_0xc17b('0xb')]=_0xc17b('0x3');this[_0xc17b('0xc')]='';this[_0xc17b('0xd')]='';this[_0xc17b('0xe')]=_0x51d54b[_0xc17b('0xe')]||'';}module[_0xc17b('0xf')]=Trunk;