82c5d54b17d26aaf14524fdf499694be93e933c6
[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 _0x8ec3=['stateTime','registry','indexOf','split','host','port','domain','domainport','refresh','registrationtime','address','exports','active','name','state','unknown'];(function(_0x556927,_0x34b53f){var _0x5f1235=function(_0x4f4e44){while(--_0x4f4e44){_0x556927['push'](_0x556927['shift']());}};_0x5f1235(++_0x34b53f);}(_0x8ec3,0x19c));var _0x38ec=function(_0x4f6ad7,_0xe48b4e){_0x4f6ad7=_0x4f6ad7-0x0;var _0x72557b=_0x8ec3[_0x4f6ad7];return _0x72557b;};'use strict';function Trunk(_0x5f54ea){this['id']=_0x5f54ea['id']||0x0;this['active']=_0x5f54ea[_0x38ec('0x0')]||![];this[_0x38ec('0x1')]=_0x5f54ea[_0x38ec('0x1')]||'';this[_0x38ec('0x2')]=_0x38ec('0x3');this[_0x38ec('0x4')]=0x0;this['status']=_0x38ec('0x3');this['registry']=_0x5f54ea[_0x38ec('0x5')]&&_0x5f54ea[_0x38ec('0x5')][_0x38ec('0x6')](':')?_0x5f54ea[_0x38ec('0x5')][_0x38ec('0x7')](':')[0x0]:'';this[_0x38ec('0x8')]='';this[_0x38ec('0x9')]='';this[_0x38ec('0xa')]='';this[_0x38ec('0xb')]='';this[_0x38ec('0xc')]='';this['stateRegistry']=_0x38ec('0x3');this[_0x38ec('0xd')]='';this[_0x38ec('0xe')]='';}module[_0x38ec('0xf')]=Trunk;