Built motion from commit (unavailable).|2.5.22
[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 _0x3d67=['name','state','unknown','stateTime','registry','indexOf','split','host','port','domain','domainport','refresh','stateRegistry','registrationtime','address','active'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0x3d67,0x16f));var _0x73d6=function(_0x48efda,_0x26821d){_0x48efda=_0x48efda-0x0;var _0x367206=_0x3d67[_0x48efda];return _0x367206;};'use strict';function Trunk(_0x180cad){this['id']=_0x180cad['id']||0x0;this[_0x73d6('0x0')]=_0x180cad['active']||![];this[_0x73d6('0x1')]=_0x180cad['name']||'';this[_0x73d6('0x2')]=_0x73d6('0x3');this[_0x73d6('0x4')]=0x0;this['status']=_0x73d6('0x3');this[_0x73d6('0x5')]=_0x180cad[_0x73d6('0x5')]&&_0x180cad[_0x73d6('0x5')][_0x73d6('0x6')](':')?_0x180cad[_0x73d6('0x5')][_0x73d6('0x7')](':')[0x0]:'';this[_0x73d6('0x8')]='';this[_0x73d6('0x9')]='';this[_0x73d6('0xa')]='';this[_0x73d6('0xb')]='';this[_0x73d6('0xc')]='';this[_0x73d6('0xd')]=_0x73d6('0x3');this[_0x73d6('0xe')]='';this[_0x73d6('0xf')]='';}module['exports']=Trunk;