Built motion from commit (unavailable).|2.5.28
[motion2.git] / server / services / routing / server / applications / queue.js
index ca6425e..8fd8309 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x75da=['update','error','update\x20queue\x20report','timeout','[%s][END:QUEUE][NAME:%s]','catch','toLowerCase','length','[%s][QUEUE]\x20%s','map','join','find','createQueue','qtimeout','rules','end','close','[%s][QUEUE]\x20ROUTING\x20STOPPED','stop','[%s][QUEUE]\x20ROUTING\x20END','next','strategy','rrmemory','beepall','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','log','stack','validate','lodash','seq-queue','moment','../../../../config/logger','./strategy','redis','defaults','socket.io-emitter','account','queue','from','joinAt','emit','queue_id','format','%sQueuesWaitingInteractions','pick','%s_queue_waiting_interaction:%s','save','remove','../../rpc/openchannelQueueReport','string','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','timeout\x20is\x20a\x20number','body','YYYY-MM-DD\x20HH:mm:ss','contact','list','upperFirst','channel','QueueId','InteractionId','interaction','message','chat','AccountId','WebsiteId','[%s][START:QUEUE][NAME:%s]','name','QueueReport','create','create\x20queue\x20report','accepted','info','[%s][STOP:QUEUE][NAME:%s]'];(function(_0x2bcd1f,_0x4f1972){var _0x2381ca=function(_0x51f935){while(--_0x51f935){_0x2bcd1f['push'](_0x2bcd1f['shift']());}};_0x2381ca(++_0x4f1972);}(_0x75da,0xad));var _0xa75d=function(_0x9f7af3,_0xcbe532){_0x9f7af3=_0x9f7af3-0x0;var _0x64fafa=_0x75da[_0x9f7af3];return _0x64fafa;};'use strict';var schema=require(_0xa75d('0x0'));var _=require(_0xa75d('0x1'));var util=require('util');var seqqueue=require(_0xa75d('0x2'));var moment=require(_0xa75d('0x3'));var Redis=require('ioredis');var config=require('../../../../config/environment');var logger=require(_0xa75d('0x4'))('routing');var strategy=require(_0xa75d('0x5'));config[_0xa75d('0x6')]=_[_0xa75d('0x7')](config['redis'],{'host':'localhost','port':0x18eb});var io=require(_0xa75d('0x8'))(new Redis(config[_0xa75d('0x6')]));var attributes=['id','queue_id',_0xa75d('0x9'),_0xa75d('0xa'),_0xa75d('0xb'),_0xa75d('0xc')];function emit(_0x28cac5,_0x5e00e5,_0x3384bf){io['to'](_0x28cac5)[_0xa75d('0xd')](_0x5e00e5,_0x3384bf);}function emitChannelQueueInteraction(_0x3d327c,_0x187934,_0x1d63e4,_0x3ed362,_0x562cf2,_0x453dcb,_0x29247d,_0x11b403){_0x1d63e4[_0xa75d('0xe')]=_0x11b403;_0x1d63e4['queue']=_0x187934;_0x1d63e4[_0xa75d('0x9')]=_0x3ed362;_0x1d63e4['id']=_0x562cf2;if(_0x453dcb){_0x29247d[util[_0xa75d('0xf')](_0xa75d('0x10'),_0x3d327c)][_0x562cf2]=_[_0xa75d('0x11')](_0x1d63e4,attributes);}else{delete _0x29247d[util[_0xa75d('0xf')](_0xa75d('0x10'),_0x3d327c)][_0x562cf2];}emit(util['format']('%s:queue:%s',_0x3d327c,_0x187934),util[_0xa75d('0xf')](_0xa75d('0x12'),_0x3d327c,_0x453dcb?_0xa75d('0x13'):_0xa75d('0x14')),_['pick'](_0x1d63e4,attributes));}var rpc={'openchannelQueueReport':require(_0xa75d('0x15')),'mailQueueReport':require('../../rpc/mailQueueReport'),'chatQueueReport':require('../../rpc/chatQueueReport'),'smsQueueReport':require('../../rpc/smsQueueReport'),'faxQueueReport':require('../../rpc/faxQueueReport')};var queue=schema({'name':{'type':_0xa75d('0x16'),'required':!![],'message':_0xa75d('0x17')},'timeout':{'type':'number','message':_0xa75d('0x18')}});function startRouting(_0x590acb,_0x20bcb5,_0x1ee8c5,_0x27d729){if(_0x590acb&&_0x20bcb5&&_0x1ee8c5){_0x20bcb5['waiting']+=0x1;var _0xf5df99={'uniqueid':_0x590acb,'from':_0x1ee8c5['body']?_0x1ee8c5[_0xa75d('0x19')][_0xa75d('0xb')]:'','joinAt':moment()['format'](_0xa75d('0x1a')),'ContactId':_0x1ee8c5[_0xa75d('0x1b')]?_0x1ee8c5[_0xa75d('0x1b')]['id']:null,'ListId':_0x1ee8c5['list']?_0x1ee8c5[_0xa75d('0x1c')]['id']:null};_0xf5df99[_[_0xa75d('0x1d')](_0x1ee8c5[_0xa75d('0x1e')])+_0xa75d('0x1f')]=_0x20bcb5['id']||null;_0xf5df99[_[_0xa75d('0x1d')](_0x1ee8c5['channel'])+_0xa75d('0x20')]=_0x1ee8c5['interaction']?_0x1ee8c5[_0xa75d('0x21')]['id']:null;_0xf5df99[_[_0xa75d('0x1d')](_0x1ee8c5[_0xa75d('0x1e')])+'MessageId']=_0x1ee8c5['message']?_0x1ee8c5[_0xa75d('0x22')]['id']:null;_0xf5df99[_[_0xa75d('0x1d')](_0x1ee8c5[_0xa75d('0x1e')])+(_0x1ee8c5[_0xa75d('0x1e')]!==_0xa75d('0x23')?_0xa75d('0x24'):_0xa75d('0x25'))]=_0x1ee8c5[_0xa75d('0x9')]?_0x1ee8c5[_0xa75d('0x9')]['id']:null;logger['info'](util[_0xa75d('0xf')](_0xa75d('0x26'),_0x590acb,_0x20bcb5[_0xa75d('0x27')]));emitChannelQueueInteraction(_0x1ee8c5[_0xa75d('0x1e')],_0x20bcb5[_0xa75d('0x27')],_0xf5df99,_0x1ee8c5[_0xa75d('0x9')][_0xa75d('0x27')],_0x1ee8c5[_0xa75d('0x22')]['id'],!![],_0x27d729,_0x20bcb5['id']);if(rpc[_0x1ee8c5['channel']+'QueueReport']){return rpc[_0x1ee8c5[_0xa75d('0x1e')]+_0xa75d('0x28')][_0xa75d('0x29')](_0xf5df99)['catch'](function(_0x10f7ef){logger['error'](_0xa75d('0x2a'));});}}}function stopRouting(_0x516be3,_0x57284d,_0x2c00ec,_0x17609c){if(_0x516be3&&_0x57284d){_0x57284d['waiting']-=0x1;var _0x37fb81={'leaveAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'acceptAt':moment()['format'](_0xa75d('0x1a')),'reason':_0xa75d('0x2b')};logger[_0xa75d('0x2c')](util['format'](_0xa75d('0x2d'),_0x516be3,_0x57284d[_0xa75d('0x27')]));emitChannelQueueInteraction(_0x2c00ec[_0xa75d('0x1e')],_0x57284d['name'],_0x2c00ec[_0xa75d('0x19')],_0x2c00ec[_0xa75d('0x9')][_0xa75d('0x27')],_0x2c00ec[_0xa75d('0x22')]['id'],![],_0x17609c,_0x57284d['id']);if(rpc[_0x2c00ec['channel']+_0xa75d('0x28')]){return rpc[_0x2c00ec[_0xa75d('0x1e')]+_0xa75d('0x28')][_0xa75d('0x2e')](_0x516be3,_0x37fb81)['catch'](function(_0x2fadac){logger[_0xa75d('0x2f')](_0xa75d('0x30'));});}}}function endRouting(_0x21358e,_0x150588,_0x25d326,_0xec0643){if(_0x21358e&&_0x150588){_0x150588['waiting']-=0x1;var _0x3162ed={'leaveAt':moment()[_0xa75d('0xf')](_0xa75d('0x1a')),'exitAt':moment()['format'](_0xa75d('0x1a')),'reason':_0xa75d('0x31')};logger['info'](util[_0xa75d('0xf')](_0xa75d('0x32'),_0x21358e,_0x150588[_0xa75d('0x27')]));emitChannelQueueInteraction(_0x25d326[_0xa75d('0x1e')],_0x150588['name'],_0x25d326[_0xa75d('0x19')],_0x25d326[_0xa75d('0x9')]['name'],_0x25d326[_0xa75d('0x22')]['id'],![],_0xec0643);if(rpc[_0x25d326[_0xa75d('0x1e')]+_0xa75d('0x28')]){return rpc[_0x25d326['channel']+_0xa75d('0x28')][_0xa75d('0x2e')](_0x21358e,_0x3162ed)[_0xa75d('0x33')](function(_0x19466a){logger[_0xa75d('0x2f')](_0xa75d('0x30'));});}}}function handleFindQueue(_0x47eba7){return function(_0x53e9c0){return _0x53e9c0[_0xa75d('0x27')][_0xa75d('0x34')]()===_0x47eba7[_0xa75d('0x34')]();};}exports['consequence']=function(_0x5621b4,_0x21aa94,_0x49d893,_0x5c0ea6){return function(_0x2ddfe3){try{var _0x11fd3a={'name':_0x21aa94[0x0],'timeout':_0x21aa94[0x1]};var _0x118e30=queue[_0xa75d('0x0')](_0x11fd3a,{'typecast':!![]});if(_0x118e30[_0xa75d('0x35')]){logger['error'](_0xa75d('0x36'),_0x5621b4,_[_0xa75d('0x37')](_0x118e30,_0xa75d('0x22'))[_0xa75d('0x38')](',\x20'));_0x2ddfe3['stop']();}else{var _0x4bff5e=_[_0xa75d('0x39')](_0x49d893[_0x5c0ea6[_0xa75d('0x1e')]+'Queues'],handleFindQueue(_0x11fd3a[_0xa75d('0x27')]));if(_0x4bff5e){startRouting(_0x5621b4,_0x4bff5e,_0x5c0ea6,_0x49d893);var _0x161e25=(_0x4bff5e[_0xa75d('0x31')]||0xa)*0x3e8;var _0x53d599=(_0x11fd3a[_0xa75d('0x31')]||0x14)*0x3e8;var _0x544150,_0x2e975f;if(_0x161e25>_0x53d599){_0x53d599=_0x161e25;}var _0x4a6772=seqqueue[_0xa75d('0x3a')](_0x161e25);_0x4a6772['id']=_0x5621b4;_0x4a6772['atimeout']=_0x161e25;_0x4a6772[_0xa75d('0x3b')]=_0x53d599;_0x4a6772[_0xa75d('0x1e')]=_0x5c0ea6['channel'];_0x49d893[_0xa75d('0x3c')][_0x5621b4]['on'](_0xa75d('0x3d'),function(){stopRouting(_0x5621b4,_0x4bff5e,_0x5c0ea6,_0x49d893);_0x4a6772[_0xa75d('0x3e')](!![]);clearTimeout(_0x544150);_0x544150=undefined;if(_0x49d893['rules'][_0x5621b4]){delete _0x49d893[_0xa75d('0x3c')][_0x5621b4];}logger[_0xa75d('0x2c')](_0xa75d('0x3f'),_0x5621b4);_0x2ddfe3[_0xa75d('0x40')]();});_0x544150=setTimeout(function(){endRouting(_0x5621b4,_0x4bff5e,_0x5c0ea6,_0x49d893);clearTimeout(_0x544150);_0x4a6772[_0xa75d('0x3e')](!![]);logger[_0xa75d('0x2c')](_0xa75d('0x41'),_0x5621b4);_0x2ddfe3[_0xa75d('0x42')]();},_0x53d599);switch(_0x4bff5e[_0xa75d('0x43')]){case _0xa75d('0x44'):strategy[_0xa75d('0x44')](_0x4a6772,_0x4bff5e,_0x49d893,_0x5c0ea6);break;default:strategy[_0xa75d('0x45')](_0x4a6772,_0x4bff5e,_0x49d893,_0x5c0ea6);}}else{logger['error'](_0xa75d('0x46'),_0x5621b4,_0x11fd3a[_0xa75d('0x27')]);_0x2ddfe3[_0xa75d('0x40')]();}}}catch(_0x5bbb68){console[_0xa75d('0x47')](_0x5bbb68);logger['error'](_0xa75d('0x36'),_0x5621b4,_0x5bbb68[_0xa75d('0x48')]);_0x2ddfe3[_0xa75d('0x40')]();}};};
\ No newline at end of file
+var _0x9c44=['[%s][END:QUEUE][NAME:%s]','toLowerCase','consequence','validate','length','[%s][QUEUE]\x20%s','join','stop','find','Queues','atimeout','rules','end','close','complete','next','strategy','rrmemory','beepall','log','stack','util','seq-queue','moment','ioredis','../../../../config/environment','../../../../config/logger','redis','localhost','socket.io-emitter','queue_id','queue','from','joinAt','emit','clone','account','format','%sQueuesWaitingInteractions','pick','%s:queue:%s','%s_queue_waiting_interaction:%s','save','remove','../../rpc/openchannelQueueReport','../../rpc/chatQueueReport','../../rpc/smsQueueReport','string','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','number','waiting','body','YYYY-MM-DD\x20HH:mm:ss','list','QueueId','upperFirst','channel','InteractionId','message','AccountId','info','name','QueueReport','create','create\x20queue\x20report','[%s][STOP:QUEUE][NAME:%s]','update','catch','error','update\x20queue\x20report','timeout'];(function(_0x5db657,_0x2f40b3){var _0x2d6e70=function(_0x358ed2){while(--_0x358ed2){_0x5db657['push'](_0x5db657['shift']());}};_0x2d6e70(++_0x2f40b3);}(_0x9c44,0x178));var _0x49c4=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x9c44[_0x2641f9];return _0x585741;};'use strict';var schema=require('validate');var _=require('lodash');var util=require(_0x49c4('0x0'));var seqqueue=require(_0x49c4('0x1'));var moment=require(_0x49c4('0x2'));var Redis=require(_0x49c4('0x3'));var config=require(_0x49c4('0x4'));var logger=require(_0x49c4('0x5'))('routing');var strategy=require('./strategy');config[_0x49c4('0x6')]=_['defaults'](config[_0x49c4('0x6')],{'host':_0x49c4('0x7'),'port':0x18eb});var io=require(_0x49c4('0x8'))(new Redis(config[_0x49c4('0x6')]));var attributes=['id',_0x49c4('0x9'),'account',_0x49c4('0xa'),_0x49c4('0xb'),_0x49c4('0xc')];function emit(_0x4487ca,_0x4c7d3a,_0x5ab4a3){io['to'](_0x4487ca)[_0x49c4('0xd')](_0x4c7d3a,_0x5ab4a3);}function emitChannelQueueInteraction(_0x313e73,_0x58cad7,_0xb611a1,_0x459d09,_0x4adb3c,_0x536d42,_0x1d19bf,_0x6d1b08){var _0x5487cd=_[_0x49c4('0xe')](_0xb611a1);_0x5487cd[_0x49c4('0x9')]=_0x6d1b08;_0x5487cd['queue']=_0x58cad7;_0x5487cd[_0x49c4('0xf')]=_0x459d09;_0x5487cd['id']=_0x4adb3c;if(_0x536d42){_0x1d19bf[util[_0x49c4('0x10')](_0x49c4('0x11'),_0x313e73)][_0x4adb3c]=_[_0x49c4('0x12')](_0x5487cd,attributes);}else{delete _0x1d19bf[util[_0x49c4('0x10')](_0x49c4('0x11'),_0x313e73)][_0x4adb3c];}emit(util[_0x49c4('0x10')](_0x49c4('0x13'),_0x313e73,_0x58cad7),util['format'](_0x49c4('0x14'),_0x313e73,_0x536d42?_0x49c4('0x15'):_0x49c4('0x16')),_[_0x49c4('0x12')](_0x5487cd,attributes));}var rpc={'openchannelQueueReport':require(_0x49c4('0x17')),'mailQueueReport':require('../../rpc/mailQueueReport'),'chatQueueReport':require(_0x49c4('0x18')),'smsQueueReport':require(_0x49c4('0x19')),'faxQueueReport':require('../../rpc/faxQueueReport'),'whatsappQueueReport':require('../../rpc/whatsappQueueReport')};var queue=schema({'name':{'type':_0x49c4('0x1a'),'required':!![],'message':_0x49c4('0x1b')},'timeout':{'type':_0x49c4('0x1c'),'message':'timeout\x20is\x20a\x20number'}});function startRouting(_0x24856d,_0x50b151,_0x2cbd50,_0x1806c2){if(_0x24856d&&_0x50b151&&_0x2cbd50){_0x50b151[_0x49c4('0x1d')]+=0x1;var _0x291526={'uniqueid':_0x24856d,'from':_0x2cbd50[_0x49c4('0x1e')]?_0x2cbd50[_0x49c4('0x1e')][_0x49c4('0xb')]:'','joinAt':moment()[_0x49c4('0x10')](_0x49c4('0x1f')),'ContactId':_0x2cbd50['contact']?_0x2cbd50['contact']['id']:null,'ListId':_0x2cbd50['list']?_0x2cbd50[_0x49c4('0x20')]['id']:null};_0x291526[_['upperFirst'](_0x2cbd50['channel'])+_0x49c4('0x21')]=_0x50b151['id']||null;_0x291526[_[_0x49c4('0x22')](_0x2cbd50[_0x49c4('0x23')])+_0x49c4('0x24')]=_0x2cbd50['interaction']?_0x2cbd50['interaction']['id']:null;_0x291526[_[_0x49c4('0x22')](_0x2cbd50[_0x49c4('0x23')])+'MessageId']=_0x2cbd50[_0x49c4('0x25')]?_0x2cbd50[_0x49c4('0x25')]['id']:null;_0x291526[_[_0x49c4('0x22')](_0x2cbd50[_0x49c4('0x23')])+(_0x2cbd50['channel']!=='chat'?_0x49c4('0x26'):'WebsiteId')]=_0x2cbd50[_0x49c4('0xf')]?_0x2cbd50[_0x49c4('0xf')]['id']:null;logger[_0x49c4('0x27')](util[_0x49c4('0x10')]('[%s][START:QUEUE][NAME:%s]',_0x24856d,_0x50b151[_0x49c4('0x28')]));emitChannelQueueInteraction(_0x2cbd50[_0x49c4('0x23')],_0x50b151[_0x49c4('0x28')],_0x291526,_0x2cbd50[_0x49c4('0xf')][_0x49c4('0x28')],_0x2cbd50[_0x49c4('0x25')]['id'],!![],_0x1806c2,_0x50b151['id']);if(rpc[_0x2cbd50[_0x49c4('0x23')]+_0x49c4('0x29')]){return rpc[_0x2cbd50[_0x49c4('0x23')]+_0x49c4('0x29')][_0x49c4('0x2a')](_0x291526)['catch'](function(_0x4f4495){logger['error'](_0x49c4('0x2b'));});}}}function stopRouting(_0x7ee704,_0x1eb035,_0x27e467,_0x28eb47){if(_0x7ee704&&_0x1eb035){_0x1eb035['waiting']-=0x1;var _0x38ad77={'leaveAt':moment()[_0x49c4('0x10')](_0x49c4('0x1f')),'acceptAt':moment()[_0x49c4('0x10')]('YYYY-MM-DD\x20HH:mm:ss'),'reason':'accepted'};logger[_0x49c4('0x27')](util[_0x49c4('0x10')](_0x49c4('0x2c'),_0x7ee704,_0x1eb035[_0x49c4('0x28')]));emitChannelQueueInteraction(_0x27e467[_0x49c4('0x23')],_0x1eb035['name'],_0x27e467[_0x49c4('0x1e')],_0x27e467[_0x49c4('0xf')][_0x49c4('0x28')],_0x27e467['message']['id'],![],_0x28eb47,_0x1eb035['id']);if(rpc[_0x27e467['channel']+_0x49c4('0x29')]){return rpc[_0x27e467[_0x49c4('0x23')]+_0x49c4('0x29')][_0x49c4('0x2d')](_0x7ee704,_0x38ad77)[_0x49c4('0x2e')](function(_0x2cf897){logger[_0x49c4('0x2f')](_0x49c4('0x30'));});}}}function endRouting(_0x3209cd,_0x4e0209,_0x2d34ca,_0x5b96df){if(_0x3209cd&&_0x4e0209){_0x4e0209[_0x49c4('0x1d')]-=0x1;var _0x349791={'leaveAt':moment()[_0x49c4('0x10')](_0x49c4('0x1f')),'exitAt':moment()['format'](_0x49c4('0x1f')),'reason':_0x49c4('0x31')};logger[_0x49c4('0x27')](util['format'](_0x49c4('0x32'),_0x3209cd,_0x4e0209[_0x49c4('0x28')]));emitChannelQueueInteraction(_0x2d34ca[_0x49c4('0x23')],_0x4e0209[_0x49c4('0x28')],_0x2d34ca[_0x49c4('0x1e')],_0x2d34ca[_0x49c4('0xf')][_0x49c4('0x28')],_0x2d34ca[_0x49c4('0x25')]['id'],![],_0x5b96df);if(rpc[_0x2d34ca[_0x49c4('0x23')]+_0x49c4('0x29')]){return rpc[_0x2d34ca[_0x49c4('0x23')]+'QueueReport'][_0x49c4('0x2d')](_0x3209cd,_0x349791)[_0x49c4('0x2e')](function(_0x32b172){logger[_0x49c4('0x2f')](_0x49c4('0x30'));});}}}function handleFindQueue(_0x29dd5d){return function(_0x1be62d){return _0x1be62d[_0x49c4('0x28')][_0x49c4('0x33')]()===_0x29dd5d[_0x49c4('0x33')]();};}exports[_0x49c4('0x34')]=function(_0xa3d59e,_0x326142,_0x4e38bc,_0x212366){return function(_0x49829e){try{var _0x104efb={'name':_0x326142[0x0],'timeout':_0x326142[0x1]};var _0x4915bc=queue[_0x49c4('0x35')](_0x104efb,{'typecast':!![]});if(_0x4915bc[_0x49c4('0x36')]){logger[_0x49c4('0x2f')](_0x49c4('0x37'),_0xa3d59e,_['map'](_0x4915bc,'message')[_0x49c4('0x38')](',\x20'));_0x49829e[_0x49c4('0x39')]();}else{var _0x38349b=_[_0x49c4('0x3a')](_0x4e38bc[_0x212366['channel']+_0x49c4('0x3b')],handleFindQueue(_0x104efb[_0x49c4('0x28')]));if(_0x38349b){startRouting(_0xa3d59e,_0x38349b,_0x212366,_0x4e38bc);var _0x2ccd47=(_0x38349b[_0x49c4('0x31')]||0xa)*0x3e8;var _0x81a674=(_0x104efb[_0x49c4('0x31')]||0x14)*0x3e8;var _0x1a9593,_0x3351c1;if(_0x2ccd47>_0x81a674){_0x81a674=_0x2ccd47;}var _0x3c4a1d=seqqueue['createQueue'](_0x2ccd47);_0x3c4a1d['id']=_0xa3d59e;_0x3c4a1d[_0x49c4('0x3c')]=_0x2ccd47;_0x3c4a1d['qtimeout']=_0x81a674;_0x3c4a1d[_0x49c4('0x23')]=_0x212366[_0x49c4('0x23')];_0x4e38bc[_0x49c4('0x3d')][_0xa3d59e]['on'](_0x49c4('0x3e'),function(){logger[_0x49c4('0x27')]('[%s][QUEUE]\x20ROUTING\x20STOPPED',_0xa3d59e);stopRouting(_0xa3d59e,_0x38349b,_0x212366,_0x4e38bc);clearTimeout(_0x1a9593);_0x1a9593=undefined;_0x3c4a1d[_0x49c4('0x3f')](!![]);if(_0x4e38bc[_0x49c4('0x3d')][_0xa3d59e]){delete _0x4e38bc[_0x49c4('0x3d')][_0xa3d59e];}_0x49829e[_0x49c4('0x39')]();});_0x4e38bc[_0x49c4('0x3d')][_0xa3d59e]['on'](_0x49c4('0x40'),function(){if(_0x4e38bc[_0x49c4('0x3d')][_0xa3d59e]){delete _0x4e38bc['rules'][_0xa3d59e];}});_0x1a9593=setTimeout(function(){logger[_0x49c4('0x27')]('[%s][QUEUE]\x20APPLICATION\x20END',_0xa3d59e);endRouting(_0xa3d59e,_0x38349b,_0x212366,_0x4e38bc);clearTimeout(_0x1a9593);_0x3c4a1d[_0x49c4('0x3f')](!![]);_0x49829e[_0x49c4('0x41')]();},_0x81a674);switch(_0x38349b[_0x49c4('0x42')]){case _0x49c4('0x43'):strategy[_0x49c4('0x43')](_0x3c4a1d,_0x38349b,_0x4e38bc,_0x212366);break;default:strategy[_0x49c4('0x44')](_0x3c4a1d,_0x38349b,_0x4e38bc,_0x212366);}}else{logger[_0x49c4('0x2f')]('[%s][QUEUE]\x20queue\x20not\x20found\x20%s',_0xa3d59e,_0x104efb[_0x49c4('0x28')]);_0x49829e[_0x49c4('0x39')]();}}}catch(_0x4a5c34){console[_0x49c4('0x45')](_0x4a5c34);logger[_0x49c4('0x2f')](_0x49c4('0x37'),_0xa3d59e,_0x4a5c34[_0x49c4('0x46')]);_0x49829e['stop']();}};};
\ No newline at end of file