Built motion from commit b0a9a629.|2.6.33
[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 _0x8c50=['name','state','unknown','stateTime','status','registry','indexOf','split','host','port','domainport','refresh','stateRegistry','defaultuser','active'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8c50,0xc2));var _0x08c5=function(_0x2a1eb3,_0x517cc0){_0x2a1eb3=_0x2a1eb3-0x0;var _0x3c3478=_0x8c50[_0x2a1eb3];return _0x3c3478;};'use strict';function Trunk(_0x45f796){this['id']=_0x45f796['id']||0x0;this[_0x08c5('0x0')]=_0x45f796['active']||![];this[_0x08c5('0x1')]=_0x45f796['name']||'';this[_0x08c5('0x2')]=_0x08c5('0x3');this[_0x08c5('0x4')]=0x0;this[_0x08c5('0x5')]='unknown';this[_0x08c5('0x6')]=_0x45f796[_0x08c5('0x6')]&&_0x45f796[_0x08c5('0x6')][_0x08c5('0x7')](':')?_0x45f796[_0x08c5('0x6')][_0x08c5('0x8')](':')[0x0]:'';this[_0x08c5('0x9')]='';this[_0x08c5('0xa')]='';this['domain']='';this[_0x08c5('0xb')]='';this[_0x08c5('0xc')]='';this[_0x08c5('0xd')]=_0x08c5('0x3');this['registrationtime']='';this['address']='';this[_0x08c5('0xe')]=_0x45f796[_0x08c5('0xe')]||'';}module['exports']=Trunk;