d5dbb0d2d876aea9aea494cbf991ada2dc09e39e
[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 _0xa583=['status','registry','split','port','domain','domainport','refresh','stateRegistry','exports','active','name','state','unknown'];(function(_0x568478,_0x2557a7){var _0x11edbb=function(_0x23f9e0){while(--_0x23f9e0){_0x568478['push'](_0x568478['shift']());}};_0x11edbb(++_0x2557a7);}(_0xa583,0x127));var _0x3a58=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xa583[_0x42cae2];return _0x5f256f;};'use strict';function Trunk(_0xce84de){this['id']=_0xce84de['id']||0x0;this[_0x3a58('0x0')]=_0xce84de['active']||![];this[_0x3a58('0x1')]=_0xce84de[_0x3a58('0x1')]||'';this[_0x3a58('0x2')]=_0x3a58('0x3');this['stateTime']=0x0;this[_0x3a58('0x4')]=_0x3a58('0x3');this[_0x3a58('0x5')]=_0xce84de[_0x3a58('0x5')]&&_0xce84de['registry']['indexOf'](':')?_0xce84de['registry'][_0x3a58('0x6')](':')[0x0]:'';this['host']='';this[_0x3a58('0x7')]='';this[_0x3a58('0x8')]='';this[_0x3a58('0x9')]='';this[_0x3a58('0xa')]='';this[_0x3a58('0xb')]=_0x3a58('0x3');this['registrationtime']='';this['address']='';}module[_0x3a58('0xc')]=Trunk;