d8e5f29bc5e3b0981157222aa3649a25b39fa75f
[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 _0xf40e=['unknown','status','registry','indexOf','host','port','stateRegistry','address','active','state'];(function(_0x3c33a8,_0x211e5d){var _0x155ba4=function(_0x2cf20b){while(--_0x2cf20b){_0x3c33a8['push'](_0x3c33a8['shift']());}};_0x155ba4(++_0x211e5d);}(_0xf40e,0x12a));var _0xef40=function(_0x26fba6,_0x3370d9){_0x26fba6=_0x26fba6-0x0;var _0x21c262=_0xf40e[_0x26fba6];return _0x21c262;};'use strict';function Trunk(_0x5977dc){this['id']=_0x5977dc['id']||0x0;this[_0xef40('0x0')]=_0x5977dc[_0xef40('0x0')]||![];this['name']=_0x5977dc['name']||'';this[_0xef40('0x1')]=_0xef40('0x2');this['stateTime']=0x0;this[_0xef40('0x3')]=_0xef40('0x2');this[_0xef40('0x4')]=_0x5977dc[_0xef40('0x4')]&&_0x5977dc[_0xef40('0x4')][_0xef40('0x5')](':')?_0x5977dc[_0xef40('0x4')]['split'](':')[0x0]:'';this[_0xef40('0x6')]='';this[_0xef40('0x7')]='';this['domain']='';this['domainport']='';this['refresh']='';this[_0xef40('0x8')]=_0xef40('0x2');this['registrationtime']='';this[_0xef40('0x9')]='';}module['exports']=Trunk;