Built motion from commit a679711e.|2.6.15
[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 _0xe834=['address','defaultuser','exports','active','name','unknown','stateTime','status','registry','port','domainport','refresh','stateRegistry'];(function(_0x2097e1,_0x4bce62){var _0x3e8963=function(_0x5daea6){while(--_0x5daea6){_0x2097e1['push'](_0x2097e1['shift']());}};_0x3e8963(++_0x4bce62);}(_0xe834,0xe0));var _0x4e83=function(_0x2cde2a,_0x4325c4){_0x2cde2a=_0x2cde2a-0x0;var _0x110f55=_0xe834[_0x2cde2a];return _0x110f55;};'use strict';function Trunk(_0x423aa1){this['id']=_0x423aa1['id']||0x0;this[_0x4e83('0x0')]=_0x423aa1['active']||![];this[_0x4e83('0x1')]=_0x423aa1[_0x4e83('0x1')]||'';this['state']=_0x4e83('0x2');this[_0x4e83('0x3')]=0x0;this[_0x4e83('0x4')]=_0x4e83('0x2');this[_0x4e83('0x5')]=_0x423aa1['registry']&&_0x423aa1[_0x4e83('0x5')]['indexOf'](':')?_0x423aa1[_0x4e83('0x5')]['split'](':')[0x0]:'';this['host']='';this[_0x4e83('0x6')]='';this['domain']='';this[_0x4e83('0x7')]='';this[_0x4e83('0x8')]='';this[_0x4e83('0x9')]='unknown';this['registrationtime']='';this[_0x4e83('0xa')]='';this[_0x4e83('0xb')]=_0x423aa1[_0x4e83('0xb')]||'';}module[_0x4e83('0xc')]=Trunk;