d135eef262e69ada93b149c8597824e0874f6b8e
[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 _0x7dad=['unknown','stateTime','status','registry','indexOf','split','host','domain','domainport','refresh','stateRegistry','address','active','name','state'];(function(_0x218c06,_0x3b2240){var _0x16ce5d=function(_0xf0cee2){while(--_0xf0cee2){_0x218c06['push'](_0x218c06['shift']());}};_0x16ce5d(++_0x3b2240);}(_0x7dad,0x174));var _0xd7da=function(_0x49afca,_0x72802a){_0x49afca=_0x49afca-0x0;var _0x116d9f=_0x7dad[_0x49afca];return _0x116d9f;};'use strict';function Trunk(_0x4ea1b1){this['id']=_0x4ea1b1['id']||0x0;this['active']=_0x4ea1b1[_0xd7da('0x0')]||![];this['name']=_0x4ea1b1[_0xd7da('0x1')]||'';this[_0xd7da('0x2')]=_0xd7da('0x3');this[_0xd7da('0x4')]=0x0;this[_0xd7da('0x5')]=_0xd7da('0x3');this['registry']=_0x4ea1b1[_0xd7da('0x6')]&&_0x4ea1b1[_0xd7da('0x6')][_0xd7da('0x7')](':')?_0x4ea1b1[_0xd7da('0x6')][_0xd7da('0x8')](':')[0x0]:'';this[_0xd7da('0x9')]='';this['port']='';this[_0xd7da('0xa')]='';this[_0xd7da('0xb')]='';this[_0xd7da('0xc')]='';this[_0xd7da('0xd')]=_0xd7da('0x3');this['registrationtime']='';this[_0xd7da('0xe')]='';}module['exports']=Trunk;