6650efd1a75a4583931106134263ca6b35a914f0
[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 _0xfb85=['address','exports','active','name','unknown','registry','indexOf','split','domain','domainport','stateRegistry','registrationtime'];(function(_0x5161aa,_0x5cb494){var _0x1efb20=function(_0x11bc6a){while(--_0x11bc6a){_0x5161aa['push'](_0x5161aa['shift']());}};_0x1efb20(++_0x5cb494);}(_0xfb85,0x12e));var _0x5fb8=function(_0x68c979,_0x431cff){_0x68c979=_0x68c979-0x0;var _0x4f0001=_0xfb85[_0x68c979];return _0x4f0001;};'use strict';function Trunk(_0x4fcafc){this['id']=_0x4fcafc['id']||0x0;this[_0x5fb8('0x0')]=_0x4fcafc[_0x5fb8('0x0')]||![];this[_0x5fb8('0x1')]=_0x4fcafc[_0x5fb8('0x1')]||'';this['state']=_0x5fb8('0x2');this['stateTime']=0x0;this['status']='unknown';this[_0x5fb8('0x3')]=_0x4fcafc[_0x5fb8('0x3')]&&_0x4fcafc[_0x5fb8('0x3')][_0x5fb8('0x4')](':')?_0x4fcafc['registry'][_0x5fb8('0x5')](':')[0x0]:'';this['host']='';this['port']='';this[_0x5fb8('0x6')]='';this[_0x5fb8('0x7')]='';this['refresh']='';this[_0x5fb8('0x8')]=_0x5fb8('0x2');this[_0x5fb8('0x9')]='';this[_0x5fb8('0xa')]='';}module[_0x5fb8('0xb')]=Trunk;