Built motion from commit 511216ff.|2.6.34
[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 _0x63b9=['port','domain','refresh','stateRegistry','registrationtime','exports','active','name','unknown','stateTime','status','registry','indexOf','split','host'];(function(_0x246708,_0x480368){var _0x241f8c=function(_0x1c19bc){while(--_0x1c19bc){_0x246708['push'](_0x246708['shift']());}};_0x241f8c(++_0x480368);}(_0x63b9,0x1e6));var _0x963b=function(_0x3a486b,_0x2e2d67){_0x3a486b=_0x3a486b-0x0;var _0x15ab31=_0x63b9[_0x3a486b];return _0x15ab31;};'use strict';function Trunk(_0x4c3c6c){this['id']=_0x4c3c6c['id']||0x0;this['active']=_0x4c3c6c[_0x963b('0x0')]||![];this[_0x963b('0x1')]=_0x4c3c6c[_0x963b('0x1')]||'';this['state']=_0x963b('0x2');this[_0x963b('0x3')]=0x0;this[_0x963b('0x4')]='unknown';this['registry']=_0x4c3c6c['registry']&&_0x4c3c6c[_0x963b('0x5')][_0x963b('0x6')](':')?_0x4c3c6c[_0x963b('0x5')][_0x963b('0x7')](':')[0x0]:'';this[_0x963b('0x8')]='';this[_0x963b('0x9')]='';this[_0x963b('0xa')]='';this['domainport']='';this[_0x963b('0xb')]='';this[_0x963b('0xc')]=_0x963b('0x2');this[_0x963b('0xd')]='';this['address']='';this['defaultuser']=_0x4c3c6c['defaultuser']||'';}module[_0x963b('0xe')]=Trunk;