434bd11cd748b9c462feca8a2f92702f68eb070a
[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 _0x3a28=['name','state','status','unknown','registry','indexOf','split','host','port','domain','domainport','refresh','stateRegistry','registrationtime','defaultuser','exports','active'];(function(_0x1fac7f,_0x51e63d){var _0x1b332f=function(_0x2853bd){while(--_0x2853bd){_0x1fac7f['push'](_0x1fac7f['shift']());}};_0x1b332f(++_0x51e63d);}(_0x3a28,0x10f));var _0x83a2=function(_0x422905,_0x3bce3a){_0x422905=_0x422905-0x0;var _0x33dc6c=_0x3a28[_0x422905];return _0x33dc6c;};'use strict';function Trunk(_0x47ec0b){this['id']=_0x47ec0b['id']||0x0;this[_0x83a2('0x0')]=_0x47ec0b[_0x83a2('0x0')]||![];this[_0x83a2('0x1')]=_0x47ec0b[_0x83a2('0x1')]||'';this[_0x83a2('0x2')]='unknown';this['stateTime']=0x0;this[_0x83a2('0x3')]=_0x83a2('0x4');this[_0x83a2('0x5')]=_0x47ec0b[_0x83a2('0x5')]&&_0x47ec0b['registry'][_0x83a2('0x6')](':')?_0x47ec0b[_0x83a2('0x5')][_0x83a2('0x7')](':')[0x0]:'';this[_0x83a2('0x8')]='';this[_0x83a2('0x9')]='';this[_0x83a2('0xa')]='';this[_0x83a2('0xb')]='';this[_0x83a2('0xc')]='';this[_0x83a2('0xd')]=_0x83a2('0x4');this[_0x83a2('0xe')]='';this['address']='';this[_0x83a2('0xf')]=_0x47ec0b[_0x83a2('0xf')]||'';}module[_0x83a2('0x10')]=Trunk;