1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xcca8=['../../config/environment','createServer','timeout','listen','port','socket.io','websocket','polling','redis','defaults','localhost','adapter','socket.io-redis','../../config/triggers','default','../../config/express','once','log','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','lodash','http','express','sticky-session','ioredis'];(function(_0x59dccc,_0x184c1c){var _0xc97bcb=function(_0x1ddbcb){while(--_0x1ddbcb){_0x59dccc['push'](_0x59dccc['shift']());}};_0xc97bcb(++_0x184c1c);}(_0xcca8,0xdc));var _0x8cca=function(_0x49cb92,_0x3c31a6){_0x49cb92=_0x49cb92-0x0;var _0x16ee5a=_0xcca8[_0x49cb92];return _0x16ee5a;};'use strict';var _=require(_0x8cca('0x0'));var http=require(_0x8cca('0x1'));var express=require(_0x8cca('0x2'));var sticky=require(_0x8cca('0x3'));var Redis=require(_0x8cca('0x4'));var config=require(_0x8cca('0x5'));var app=express();var server=http[_0x8cca('0x6')](app);server[_0x8cca('0x7')]=0xdbba0;if(sticky[_0x8cca('0x8')](server,config[_0x8cca('0x9')])){var socketio=require(_0x8cca('0xa'))(server,{'transports':[_0x8cca('0xb'),_0x8cca('0xc')]});config[_0x8cca('0xd')]=_[_0x8cca('0xe')](config[_0x8cca('0xd')],{'host':_0x8cca('0xf'),'port':0x18eb});socketio[_0x8cca('0x10')](require(_0x8cca('0x11'))({'pubClient':new Redis(config[_0x8cca('0xd')]),'subClient':new Redis(config[_0x8cca('0xd')])}));require(_0x8cca('0x12'))[_0x8cca('0x13')]();require('../../config/socketio')[_0x8cca('0x13')](socketio);require(_0x8cca('0x14'))[_0x8cca('0x13')](app);require('../../routes')[_0x8cca('0x13')](app);}else{server[_0x8cca('0x15')]('listening',function(){console[_0x8cca('0x16')](_0x8cca('0x17'),config[_0x8cca('0x9')]);});}exports=module[_0x8cca('0x18')]=app;