Built motion from commit f7863d46.|2.5.41
[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 _0xba31=['name','state','unknown','stateTime','status','registry','split','port','refresh','stateRegistry','registrationtime','address','defaultuser','exports','active'];(function(_0x2df821,_0x12c725){var _0x487ea1=function(_0x2bf649){while(--_0x2bf649){_0x2df821['push'](_0x2df821['shift']());}};_0x487ea1(++_0x12c725);}(_0xba31,0x68));var _0x1ba3=function(_0x5b1c50,_0x56e694){_0x5b1c50=_0x5b1c50-0x0;var _0x2d379b=_0xba31[_0x5b1c50];return _0x2d379b;};'use strict';function Trunk(_0x132a62){this['id']=_0x132a62['id']||0x0;this[_0x1ba3('0x0')]=_0x132a62['active']||![];this['name']=_0x132a62[_0x1ba3('0x1')]||'';this[_0x1ba3('0x2')]=_0x1ba3('0x3');this[_0x1ba3('0x4')]=0x0;this[_0x1ba3('0x5')]=_0x1ba3('0x3');this[_0x1ba3('0x6')]=_0x132a62[_0x1ba3('0x6')]&&_0x132a62['registry']['indexOf'](':')?_0x132a62[_0x1ba3('0x6')][_0x1ba3('0x7')](':')[0x0]:'';this['host']='';this[_0x1ba3('0x8')]='';this['domain']='';this['domainport']='';this[_0x1ba3('0x9')]='';this[_0x1ba3('0xa')]=_0x1ba3('0x3');this[_0x1ba3('0xb')]='';this[_0x1ba3('0xc')]='';this[_0x1ba3('0xd')]=_0x132a62[_0x1ba3('0xd')]||'';}module[_0x1ba3('0xe')]=Trunk;