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 _0xa16e=['../../config/socketio','../../config/express','default','../../routes','once','listening','Express\x20server\x20listening\x20on\x20port\x20%d!','port','exports','lodash','http','express','sticky-session','ioredis','../../config/environment','createServer','timeout','listen','socket.io','websocket','redis','adapter','socket.io-redis','../../config/triggers'];(function(_0x5015a5,_0x32806e){var _0x3a81df=function(_0x54852f){while(--_0x54852f){_0x5015a5['push'](_0x5015a5['shift']());}};_0x3a81df(++_0x32806e);}(_0xa16e,0x1e9));var _0xea16=function(_0x38161c,_0x161f54){_0x38161c=_0x38161c-0x0;var _0x2bf4a0=_0xa16e[_0x38161c];return _0x2bf4a0;};'use strict';var _=require(_0xea16('0x0'));var http=require(_0xea16('0x1'));var express=require(_0xea16('0x2'));var sticky=require(_0xea16('0x3'));var Redis=require(_0xea16('0x4'));var config=require(_0xea16('0x5'));var app=express();var server=http[_0xea16('0x6')](app);server[_0xea16('0x7')]=0xdbba0;if(sticky[_0xea16('0x8')](server,config['port'])){var socketio=require(_0xea16('0x9'))(server,{'transports':[_0xea16('0xa'),'polling']});config[_0xea16('0xb')]=_['defaults'](config[_0xea16('0xb')],{'host':'localhost','port':0x18eb});socketio[_0xea16('0xc')](require(_0xea16('0xd'))({'pubClient':new Redis(config[_0xea16('0xb')]),'subClient':new Redis(config['redis'])}));require(_0xea16('0xe'))['default']();require(_0xea16('0xf'))['default'](socketio);require(_0xea16('0x10'))[_0xea16('0x11')](app);require(_0xea16('0x12'))[_0xea16('0x11')](app);}else{server[_0xea16('0x13')](_0xea16('0x14'),function(){console['log'](_0xea16('0x15'),config[_0xea16('0x16')]);});}exports=module[_0xea16('0x17')]=app;