4b1275ab640d67b2a9c888b3314aff7b38372628
[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 _0x6304=['host','port','domainport','refresh','address','defaultuser','exports','active','name','unknown','stateTime','status','registry','indexOf'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x6304,0xd9));var _0x4630=function(_0x463632,_0x1cc8db){_0x463632=_0x463632-0x0;var _0x12d07c=_0x6304[_0x463632];return _0x12d07c;};'use strict';function Trunk(_0x5150d6){this['id']=_0x5150d6['id']||0x0;this[_0x4630('0x0')]=_0x5150d6['active']||![];this[_0x4630('0x1')]=_0x5150d6[_0x4630('0x1')]||'';this['state']=_0x4630('0x2');this[_0x4630('0x3')]=0x0;this[_0x4630('0x4')]=_0x4630('0x2');this[_0x4630('0x5')]=_0x5150d6[_0x4630('0x5')]&&_0x5150d6['registry'][_0x4630('0x6')](':')?_0x5150d6[_0x4630('0x5')]['split'](':')[0x0]:'';this[_0x4630('0x7')]='';this[_0x4630('0x8')]='';this['domain']='';this[_0x4630('0x9')]='';this[_0x4630('0xa')]='';this['stateRegistry']=_0x4630('0x2');this['registrationtime']='';this[_0x4630('0xb')]='';this[_0x4630('0xc')]=_0x5150d6[_0x4630('0xc')]||'';}module[_0x4630('0xd')]=Trunk;