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