dd019544801d42d98cddac2ee6adca1339975877
[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 _0x14e3=['unknown','stateTime','status','registry','indexOf','split','domain','domainport','refresh','stateRegistry','registrationtime','defaultuser','exports','active','name','state'];(function(_0x574d5c,_0x50b123){var _0x1d919b=function(_0x311e20){while(--_0x311e20){_0x574d5c['push'](_0x574d5c['shift']());}};_0x1d919b(++_0x50b123);}(_0x14e3,0x15d));var _0x314e=function(_0x485859,_0x27221e){_0x485859=_0x485859-0x0;var _0x510bb8=_0x14e3[_0x485859];return _0x510bb8;};'use strict';function Trunk(_0x396210){this['id']=_0x396210['id']||0x0;this[_0x314e('0x0')]=_0x396210[_0x314e('0x0')]||![];this[_0x314e('0x1')]=_0x396210[_0x314e('0x1')]||'';this[_0x314e('0x2')]=_0x314e('0x3');this[_0x314e('0x4')]=0x0;this[_0x314e('0x5')]='unknown';this[_0x314e('0x6')]=_0x396210[_0x314e('0x6')]&&_0x396210['registry'][_0x314e('0x7')](':')?_0x396210[_0x314e('0x6')][_0x314e('0x8')](':')[0x0]:'';this['host']='';this['port']='';this[_0x314e('0x9')]='';this[_0x314e('0xa')]='';this[_0x314e('0xb')]='';this[_0x314e('0xc')]=_0x314e('0x3');this[_0x314e('0xd')]='';this['address']='';this['defaultuser']=_0x396210[_0x314e('0xe')]||'';}module[_0x314e('0xf')]=Trunk;