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