42861da52f67c5b1c9c36d1c8e81a2b98912f2d4
[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 _0xc519=['stateTime','registry','indexOf','host','domain','refresh','registrationtime','address','exports','active','name','state','unknown'];(function(_0xa2e03d,_0x58dcca){var _0x57eb87=function(_0x342649){while(--_0x342649){_0xa2e03d['push'](_0xa2e03d['shift']());}};_0x57eb87(++_0x58dcca);}(_0xc519,0x1ea));var _0x9c51=function(_0x508a80,_0x16f1e6){_0x508a80=_0x508a80-0x0;var _0x44d5e2=_0xc519[_0x508a80];return _0x44d5e2;};'use strict';function Trunk(_0x9a9949){this['id']=_0x9a9949['id']||0x0;this[_0x9c51('0x0')]=_0x9a9949['active']||![];this[_0x9c51('0x1')]=_0x9a9949[_0x9c51('0x1')]||'';this[_0x9c51('0x2')]=_0x9c51('0x3');this[_0x9c51('0x4')]=0x0;this['status']=_0x9c51('0x3');this['registry']=_0x9a9949[_0x9c51('0x5')]&&_0x9a9949[_0x9c51('0x5')][_0x9c51('0x6')](':')?_0x9a9949['registry']['split'](':')[0x0]:'';this[_0x9c51('0x7')]='';this['port']='';this[_0x9c51('0x8')]='';this['domainport']='';this[_0x9c51('0x9')]='';this['stateRegistry']=_0x9c51('0x3');this[_0x9c51('0xa')]='';this[_0x9c51('0xb')]='';}module[_0x9c51('0xc')]=Trunk;