Built motion from commit c0cdc9d8.|2.6.28
[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 _0xf95d=['indexOf','split','host','port','domain','domainport','refresh','stateRegistry','registrationtime','defaultuser','exports','active','state','unknown','stateTime','registry'];(function(_0x348bf2,_0x49655d){var _0x5a5208=function(_0xcfbf7d){while(--_0xcfbf7d){_0x348bf2['push'](_0x348bf2['shift']());}};_0x5a5208(++_0x49655d);}(_0xf95d,0x1eb));var _0xdf95=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0xf95d[_0x21a9d9];return _0x46adce;};'use strict';function Trunk(_0xc9933c){this['id']=_0xc9933c['id']||0x0;this[_0xdf95('0x0')]=_0xc9933c['active']||![];this['name']=_0xc9933c['name']||'';this[_0xdf95('0x1')]=_0xdf95('0x2');this[_0xdf95('0x3')]=0x0;this['status']=_0xdf95('0x2');this[_0xdf95('0x4')]=_0xc9933c[_0xdf95('0x4')]&&_0xc9933c[_0xdf95('0x4')][_0xdf95('0x5')](':')?_0xc9933c['registry'][_0xdf95('0x6')](':')[0x0]:'';this[_0xdf95('0x7')]='';this[_0xdf95('0x8')]='';this[_0xdf95('0x9')]='';this[_0xdf95('0xa')]='';this[_0xdf95('0xb')]='';this[_0xdf95('0xc')]='unknown';this[_0xdf95('0xd')]='';this['address']='';this[_0xdf95('0xe')]=_0xc9933c[_0xdf95('0xe')]||'';}module[_0xdf95('0xf')]=Trunk;