d37d47d34baa3e8f5e33402177e35c7631b5c7eb
[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 _0x65be=['refresh','address','active','name','unknown','stateTime','status','registry','indexOf','split','host','domain','domainport'];(function(_0x5447fd,_0x52a6b5){var _0x15b28a=function(_0x370d4f){while(--_0x370d4f){_0x5447fd['push'](_0x5447fd['shift']());}};_0x15b28a(++_0x52a6b5);}(_0x65be,0x1bc));var _0xe65b=function(_0x3b7ba7,_0x45eed0){_0x3b7ba7=_0x3b7ba7-0x0;var _0x559a49=_0x65be[_0x3b7ba7];return _0x559a49;};'use strict';function Trunk(_0x65237f){this['id']=_0x65237f['id']||0x0;this[_0xe65b('0x0')]=_0x65237f[_0xe65b('0x0')]||![];this[_0xe65b('0x1')]=_0x65237f['name']||'';this['state']=_0xe65b('0x2');this[_0xe65b('0x3')]=0x0;this[_0xe65b('0x4')]=_0xe65b('0x2');this[_0xe65b('0x5')]=_0x65237f[_0xe65b('0x5')]&&_0x65237f[_0xe65b('0x5')][_0xe65b('0x6')](':')?_0x65237f['registry'][_0xe65b('0x7')](':')[0x0]:'';this[_0xe65b('0x8')]='';this['port']='';this[_0xe65b('0x9')]='';this[_0xe65b('0xa')]='';this[_0xe65b('0xb')]='';this['stateRegistry']='unknown';this['registrationtime']='';this[_0xe65b('0xc')]='';this['defaultuser']=_0x65237f['defaultuser']||'';}module['exports']=Trunk;