Built motion from commit 6362bb75.|2.6.13
[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 _0xf47f=['port','domainport','stateRegistry','registrationtime','defaultuser','active','name','unknown','status','registry','indexOf','host'];(function(_0x1627ae,_0x2aaa24){var _0x34b38f=function(_0x5c4332){while(--_0x5c4332){_0x1627ae['push'](_0x1627ae['shift']());}};_0x34b38f(++_0x2aaa24);}(_0xf47f,0x155));var _0xff47=function(_0xce3af3,_0x79e62d){_0xce3af3=_0xce3af3-0x0;var _0x229010=_0xf47f[_0xce3af3];return _0x229010;};'use strict';function Trunk(_0x47d481){this['id']=_0x47d481['id']||0x0;this[_0xff47('0x0')]=_0x47d481[_0xff47('0x0')]||![];this['name']=_0x47d481[_0xff47('0x1')]||'';this['state']=_0xff47('0x2');this['stateTime']=0x0;this[_0xff47('0x3')]='unknown';this[_0xff47('0x4')]=_0x47d481['registry']&&_0x47d481[_0xff47('0x4')][_0xff47('0x5')](':')?_0x47d481[_0xff47('0x4')]['split'](':')[0x0]:'';this[_0xff47('0x6')]='';this[_0xff47('0x7')]='';this['domain']='';this[_0xff47('0x8')]='';this['refresh']='';this[_0xff47('0x9')]=_0xff47('0x2');this[_0xff47('0xa')]='';this['address']='';this[_0xff47('0xb')]=_0x47d481[_0xff47('0xb')]||'';}module['exports']=Trunk;