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