9a9c1aab9b93ca34fc46d6bbdf8dd6e014495271
[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 _0x205e=['domain','domainport','refresh','stateRegistry','registrationtime','defaultuser','exports','active','name','state','unknown','stateTime','status','registry','indexOf','split'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x205e,0x1c7));var _0xe205=function(_0x1c6d59,_0x25b8b0){_0x1c6d59=_0x1c6d59-0x0;var _0x2dfd1d=_0x205e[_0x1c6d59];return _0x2dfd1d;};'use strict';function Trunk(_0xa6f4a9){this['id']=_0xa6f4a9['id']||0x0;this[_0xe205('0x0')]=_0xa6f4a9['active']||![];this[_0xe205('0x1')]=_0xa6f4a9[_0xe205('0x1')]||'';this[_0xe205('0x2')]=_0xe205('0x3');this[_0xe205('0x4')]=0x0;this[_0xe205('0x5')]=_0xe205('0x3');this[_0xe205('0x6')]=_0xa6f4a9['registry']&&_0xa6f4a9[_0xe205('0x6')][_0xe205('0x7')](':')?_0xa6f4a9[_0xe205('0x6')][_0xe205('0x8')](':')[0x0]:'';this['host']='';this['port']='';this[_0xe205('0x9')]='';this[_0xe205('0xa')]='';this[_0xe205('0xb')]='';this[_0xe205('0xc')]='unknown';this[_0xe205('0xd')]='';this['address']='';this[_0xe205('0xe')]=_0xa6f4a9[_0xe205('0xe')]||'';}module[_0xe205('0xf')]=Trunk;