0e8ce879ec4120d5d52e1a7fff15968e9b6f6e9d
[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 _0xf930=['split','port','domain','domainport','refresh','stateRegistry','registrationtime','defaultuser','active','name','unknown','stateTime','status','registry','indexOf'];(function(_0x28b12e,_0x59f4f5){var _0x2c3bd1=function(_0x1680c1){while(--_0x1680c1){_0x28b12e['push'](_0x28b12e['shift']());}};_0x2c3bd1(++_0x59f4f5);}(_0xf930,0x1bb));var _0x0f93=function(_0x3bfd29,_0x407cd5){_0x3bfd29=_0x3bfd29-0x0;var _0x2e1a78=_0xf930[_0x3bfd29];return _0x2e1a78;};'use strict';function Trunk(_0x5819e9){this['id']=_0x5819e9['id']||0x0;this[_0x0f93('0x0')]=_0x5819e9['active']||![];this[_0x0f93('0x1')]=_0x5819e9['name']||'';this['state']=_0x0f93('0x2');this[_0x0f93('0x3')]=0x0;this[_0x0f93('0x4')]=_0x0f93('0x2');this[_0x0f93('0x5')]=_0x5819e9[_0x0f93('0x5')]&&_0x5819e9[_0x0f93('0x5')][_0x0f93('0x6')](':')?_0x5819e9[_0x0f93('0x5')][_0x0f93('0x7')](':')[0x0]:'';this['host']='';this[_0x0f93('0x8')]='';this[_0x0f93('0x9')]='';this[_0x0f93('0xa')]='';this[_0x0f93('0xb')]='';this[_0x0f93('0xc')]=_0x0f93('0x2');this[_0x0f93('0xd')]='';this['address']='';this[_0x0f93('0xe')]=_0x5819e9['defaultuser']||'';}module['exports']=Trunk;