fae89dd48708bf9a67ed23d26ce7fa6e5b19789a
[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 _0xa9b8=['stateRegistry','registrationtime','address','defaultuser','exports','active','name','state','unknown','status','registry','indexOf','split','port','domain','domainport','refresh'];(function(_0x11ca9b,_0x21cf96){var _0x22bc61=function(_0x1a9ec6){while(--_0x1a9ec6){_0x11ca9b['push'](_0x11ca9b['shift']());}};_0x22bc61(++_0x21cf96);}(_0xa9b8,0x1d0));var _0x8a9b=function(_0xe48cfc,_0x45767a){_0xe48cfc=_0xe48cfc-0x0;var _0x4769b3=_0xa9b8[_0xe48cfc];return _0x4769b3;};'use strict';function Trunk(_0x4e558e){this['id']=_0x4e558e['id']||0x0;this[_0x8a9b('0x0')]=_0x4e558e['active']||![];this[_0x8a9b('0x1')]=_0x4e558e[_0x8a9b('0x1')]||'';this[_0x8a9b('0x2')]=_0x8a9b('0x3');this['stateTime']=0x0;this[_0x8a9b('0x4')]=_0x8a9b('0x3');this[_0x8a9b('0x5')]=_0x4e558e[_0x8a9b('0x5')]&&_0x4e558e[_0x8a9b('0x5')][_0x8a9b('0x6')](':')?_0x4e558e[_0x8a9b('0x5')][_0x8a9b('0x7')](':')[0x0]:'';this['host']='';this[_0x8a9b('0x8')]='';this[_0x8a9b('0x9')]='';this[_0x8a9b('0xa')]='';this[_0x8a9b('0xb')]='';this[_0x8a9b('0xc')]='unknown';this[_0x8a9b('0xd')]='';this[_0x8a9b('0xe')]='';this['defaultuser']=_0x4e558e[_0x8a9b('0xf')]||'';}module[_0x8a9b('0x10')]=Trunk;