c6dcb9668466c82ee2af75b447167901078930d6
[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 _0x74c0=['name','state','unknown','stateTime','status','registry','indexOf','split','port','domainport','refresh','stateRegistry','registrationtime','address','defaultuser','exports','active'];(function(_0x40abbc,_0x16f4d6){var _0x4d8d90=function(_0x4373e5){while(--_0x4373e5){_0x40abbc['push'](_0x40abbc['shift']());}};_0x4d8d90(++_0x16f4d6);}(_0x74c0,0x76));var _0x074c=function(_0x53b55f,_0x7980d0){_0x53b55f=_0x53b55f-0x0;var _0x71d9fa=_0x74c0[_0x53b55f];return _0x71d9fa;};'use strict';function Trunk(_0x15b6ce){this['id']=_0x15b6ce['id']||0x0;this['active']=_0x15b6ce[_0x074c('0x0')]||![];this[_0x074c('0x1')]=_0x15b6ce[_0x074c('0x1')]||'';this[_0x074c('0x2')]=_0x074c('0x3');this[_0x074c('0x4')]=0x0;this[_0x074c('0x5')]=_0x074c('0x3');this['registry']=_0x15b6ce[_0x074c('0x6')]&&_0x15b6ce['registry'][_0x074c('0x7')](':')?_0x15b6ce['registry'][_0x074c('0x8')](':')[0x0]:'';this['host']='';this[_0x074c('0x9')]='';this['domain']='';this[_0x074c('0xa')]='';this[_0x074c('0xb')]='';this[_0x074c('0xc')]='unknown';this[_0x074c('0xd')]='';this[_0x074c('0xe')]='';this[_0x074c('0xf')]=_0x15b6ce['defaultuser']||'';}module[_0x074c('0x10')]=Trunk;