6fe50c23af0d730d27486d5c2b5dd62ab556d2ec
[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 _0xe374=['registry','indexOf','split','port','domain','domainport','refresh','address','defaultuser','exports','active','name','state','unknown'];(function(_0x54fa28,_0x18ed55){var _0x32c6bc=function(_0x210e10){while(--_0x210e10){_0x54fa28['push'](_0x54fa28['shift']());}};_0x32c6bc(++_0x18ed55);}(_0xe374,0x1a0));var _0x4e37=function(_0x5c2872,_0x121cc4){_0x5c2872=_0x5c2872-0x0;var _0x1f0d1a=_0xe374[_0x5c2872];return _0x1f0d1a;};'use strict';function Trunk(_0x27a604){this['id']=_0x27a604['id']||0x0;this[_0x4e37('0x0')]=_0x27a604[_0x4e37('0x0')]||![];this[_0x4e37('0x1')]=_0x27a604[_0x4e37('0x1')]||'';this[_0x4e37('0x2')]=_0x4e37('0x3');this['stateTime']=0x0;this['status']='unknown';this[_0x4e37('0x4')]=_0x27a604[_0x4e37('0x4')]&&_0x27a604[_0x4e37('0x4')][_0x4e37('0x5')](':')?_0x27a604[_0x4e37('0x4')][_0x4e37('0x6')](':')[0x0]:'';this['host']='';this[_0x4e37('0x7')]='';this[_0x4e37('0x8')]='';this[_0x4e37('0x9')]='';this[_0x4e37('0xa')]='';this['stateRegistry']=_0x4e37('0x3');this['registrationtime']='';this[_0x4e37('0xb')]='';this[_0x4e37('0xc')]=_0x27a604[_0x4e37('0xc')]||'';}module[_0x4e37('0xd')]=Trunk;