Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / services / routing / server / index.js
index 4388df2..73270e8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8d0e=['whatsappQueues','chatQueuesWaitingInteractions','mailQueuesWaitingInteractions','smsQueuesWaitingInteractions','faxQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','server','http','listen','127.0.0.1','RPC\x20listening\x20on\x20port:','lodash','util','path','jayson/promise','bluebird','uuid','../../../config/environment','../../../config/logger','routing','../rpc/mailQueueReport','../rpc/faxQueueReport','../rpc/whatsappQueueReport','../lib/rule-engine','format','%s.%s.%s','isNil','IntervalId','Intervals','map','interval','rules','channel','message','applications','isArray','length','join','app','.js','toLowerCase','autoreply','split','push','slice','appdata','dialogflowv2','tag','TagId','%s:%s:%s','./interval','condition','intervals','consequence','priority','info','Push\x20new\x20rule','\x20|\x20','error','Please\x20create\x20a\x20new\x20file\x20under','execute','stringify','emit','No\x20applications\x20to\x20execute','stack','agent','agents','busy','busyQueue','interaction','end','QueueReport','update','UserId','catch','error\x20update\x20queue\x20report','message\x20is\x20empty','hasOwnProperty','capacity','CurrentCapacity','updateRealtime','values','chatQueues','available','loggedIn','name','waiting','mailQueues','paused','openchannelQueues','smsQueues','faxQueues'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x8d0e,0x1d7));var _0xe8d0=function(_0x1e63d2,_0xe40182){_0x1e63d2=_0x1e63d2-0x0;var _0x525f48=_0x8d0e[_0x1e63d2];return _0x525f48;};'use strict';var _=require(_0xe8d0('0x0'));var util=require(_0xe8d0('0x1'));var path=require(_0xe8d0('0x2'));var fs=require('fs');var jayson=require(_0xe8d0('0x3'));var BPromise=require(_0xe8d0('0x4'));var uuid=require(_0xe8d0('0x5'));var config=require(_0xe8d0('0x6'));var logger=require(_0xe8d0('0x7'))(_0xe8d0('0x8'));var rpc={'openchannelQueueReport':require('../rpc/openchannelQueueReport'),'mailQueueReport':require(_0xe8d0('0x9')),'chatQueueReport':require('../rpc/chatQueueReport'),'smsQueueReport':require('../rpc/smsQueueReport'),'faxQueueReport':require(_0xe8d0('0xa')),'whatsappQueueReport':require(_0xe8d0('0xb'))};var RuleEngine=require(_0xe8d0('0xc'));function getId(_0xcc03d0,_0x2b6dce,_0x13aa63){return util[_0xe8d0('0xd')](_0xe8d0('0xe'),_0xcc03d0,_0x2b6dce||0x0,_0x13aa63||0x0);}function getIntervals(_0x5605a0,_0x10e56c){var _0x19c3d0=[];if(!_[_0xe8d0('0xf')](_0x10e56c['IntervalId'])&&!_['isNil'](_0x5605a0[_0x10e56c[_0xe8d0('0x10')]])&&!_[_0xe8d0('0xf')](_0x5605a0[_0x10e56c[_0xe8d0('0x10')]][_0xe8d0('0x11')])){_0x19c3d0=_[_0xe8d0('0x12')](_0x5605a0[_0x10e56c[_0xe8d0('0x10')]]['Intervals'],_0xe8d0('0x13'));}else if(!_[_0xe8d0('0xf')](_0x10e56c['interval'])){_0x19c3d0=[_0x10e56c[_0xe8d0('0x13')]];}return _0x19c3d0;}exports['listen']=function(_0x59b4b7){_0x59b4b7[_0xe8d0('0x14')]={};return new BPromise(function(_0x2aa906,_0x1aa725){var _0x291b49={'Start':function(_0x15d3a1){var _0x7151c6=this;return new Promise(function(_0x52818a,_0x6ccffa){if(_0x15d3a1){try{var _0x49554d=[];var _0x6d932b=getId(_0x15d3a1[_0xe8d0('0x15')],_0x15d3a1[_0xe8d0('0x16')]?_0x15d3a1['message']['id']:0x0,_0x15d3a1['interaction']?_0x15d3a1['interaction']['id']:0x0);if(_0x15d3a1[_0xe8d0('0x17')]&&_[_0xe8d0('0x18')](_0x15d3a1[_0xe8d0('0x17')])&&_0x15d3a1[_0xe8d0('0x17')][_0xe8d0('0x19')]){for(var _0x588133=0x0;_0x588133<_0x15d3a1[_0xe8d0('0x17')][_0xe8d0('0x19')];_0x588133+=0x1){var _0x524b00=_0x15d3a1['applications'][_0x588133];if(fs['existsSync'](path[_0xe8d0('0x1a')](__dirname,_0xe8d0('0x17'),_0x524b00[_0xe8d0('0x1b')]+_0xe8d0('0x1c')))){var _0x25f764=[];switch(_0x524b00[_0xe8d0('0x1b')][_0xe8d0('0x1d')]()){case _0xe8d0('0x1e'):var _0x32e39a=_0x524b00['appdata'][_0xe8d0('0x1f')](',');if(_0x15d3a1[_0xe8d0('0x15')]==='mail'){_0x25f764[_0xe8d0('0x20')](_0x32e39a[0x0]);_0x25f764[_0xe8d0('0x20')](_0x32e39a[0x1]);_0x25f764[_0xe8d0('0x20')](_0x32e39a[_0xe8d0('0x21')](0x2,_0x32e39a[_0xe8d0('0x19')])[_0xe8d0('0x1a')](','));}else{_0x25f764[_0xe8d0('0x20')](_0x32e39a[0x0]);_0x25f764[_0xe8d0('0x20')](_0x32e39a[_0xe8d0('0x21')](0x1,_0x32e39a[_0xe8d0('0x19')])[_0xe8d0('0x1a')](','));}break;case'dialogflow':var _0x24982c=_0x524b00[_0xe8d0('0x22')][_0xe8d0('0x1f')](',');_0x25f764['push'](_0x24982c[0x0]);_0x25f764[_0xe8d0('0x20')](_0x24982c[0x1]);_0x25f764[_0xe8d0('0x20')](_0x24982c['slice'](0x2,_0x24982c[_0xe8d0('0x19')])[_0xe8d0('0x1a')](','));break;case _0xe8d0('0x23'):var _0x9eec0e=_0x524b00[_0xe8d0('0x22')]['split'](',');_0x25f764[_0xe8d0('0x20')](_0x9eec0e[0x0]);_0x25f764['push'](_0x9eec0e[0x1]);_0x25f764['push'](_0x9eec0e[0x2]);_0x25f764['push'](_0x9eec0e[0x3]);_0x25f764[_0xe8d0('0x20')](_0x9eec0e[_0xe8d0('0x21')](0x4,_0x9eec0e[_0xe8d0('0x19')])['join'](','));break;case'amazonlex':var _0x244a25=_0x524b00['appdata'][_0xe8d0('0x1f')](',');_0x25f764[_0xe8d0('0x20')](_0x244a25[0x0]);_0x25f764[_0xe8d0('0x20')](_0x244a25[0x1]);_0x25f764[_0xe8d0('0x20')](_0x244a25[0x2]);_0x25f764[_0xe8d0('0x20')](_0x244a25[0x3]);_0x25f764['push'](_0x244a25[_0xe8d0('0x21')](0x4,_0x244a25[_0xe8d0('0x19')])[_0xe8d0('0x1a')](','));break;case _0xe8d0('0x16'):_0x25f764['push'](_0x524b00[_0xe8d0('0x22')]);break;case _0xe8d0('0x24'):_0x25f764['push'](_0x524b00[_0xe8d0('0x25')]);_0x25f764['push'](_0x524b00[_0xe8d0('0x22')]);break;default:_0x25f764=_['isNil'](_0x524b00[_0xe8d0('0x22')])?[]:_0x524b00['appdata'][_0xe8d0('0x1f')](',');}var _0xb2cdbf={'id':util[_0xe8d0('0xd')](_0xe8d0('0x26'),_0x6d932b,_0x524b00['id'],_0x524b00['app']),'condition':require(_0xe8d0('0x27'))[_0xe8d0('0x28')](_0x6d932b,getIntervals(_0x59b4b7[_0xe8d0('0x29')],_0x524b00),_0x59b4b7),'consequence':require('./applications/'+_0x524b00[_0xe8d0('0x1b')])[_0xe8d0('0x2a')](_0x6d932b,_0x25f764,_0x59b4b7,_0x15d3a1),'p':_0x524b00[_0xe8d0('0x2b')]||0x0};logger[_0xe8d0('0x2c')](_0xe8d0('0x2d'),_0xb2cdbf['id'],'on\x20interval',getIntervals(_0x59b4b7[_0xe8d0('0x29')],_0x524b00)[_0xe8d0('0x1a')](_0xe8d0('0x2e')));_0x49554d[_0xe8d0('0x20')](_0xb2cdbf);}else{logger[_0xe8d0('0x2f')](_0xe8d0('0x30'),path[_0xe8d0('0x1a')](__dirname,_0xe8d0('0x17'),_0x524b00['app']+'.js'));}}_0x59b4b7[_0xe8d0('0x14')][_0x6d932b]=new RuleEngine(_0x49554d);_0x59b4b7[_0xe8d0('0x14')][_0x6d932b][_0xe8d0('0x31')](_0x15d3a1,function(_0x377dc1){logger[_0xe8d0('0x2c')]('Applications\x20executed',JSON[_0xe8d0('0x32')](_0x377dc1['matchPath']));if(_0x59b4b7[_0xe8d0('0x14')][_0x6d932b]){_0x59b4b7[_0xe8d0('0x14')][_0x6d932b][_0xe8d0('0x33')]('complete');}});return _0x52818a({'code':0xc8,'message':_0x15d3a1});}else{logger[_0xe8d0('0x2c')](_0xe8d0('0x34'));return _0x52818a({'code':0xc8,'message':_0x15d3a1});}}catch(_0x731382){logger[_0xe8d0('0x2f')](_0x731382[_0xe8d0('0x35')]);return _0x6ccffa(_0x7151c6['error'](0x1f4,_0x731382));}}return _0x6ccffa('routing\x20is\x20empty');});},'AcceptMessage':function(_0x57de98){var _0x4cf0da=this;return new Promise(function(_0x14ffb6,_0x52f288){if(_0x57de98[_0xe8d0('0x36')]&&_0x57de98[_0xe8d0('0x36')]['id']){if(_0x59b4b7[_0xe8d0('0x37')][_0x57de98[_0xe8d0('0x36')]['id']]){_0x59b4b7[_0xe8d0('0x37')][_0x57de98[_0xe8d0('0x36')]['id']][_0xe8d0('0x38')]=![];_0x59b4b7[_0xe8d0('0x37')][_0x57de98['agent']['id']][_0xe8d0('0x39')]=undefined;}}if(_0x57de98[_0xe8d0('0x16')]&&_0x57de98['message']['id']){try{var _0x4bcdff=getId(_0x57de98[_0xe8d0('0x15')],_0x57de98[_0xe8d0('0x16')]?_0x57de98[_0xe8d0('0x16')]['id']:0x0,_0x57de98['interaction']?_0x57de98[_0xe8d0('0x3a')]['id']:0x0);if(_0x59b4b7[_0xe8d0('0x14')][_0x4bcdff]){_0x59b4b7['rules'][_0x4bcdff][_0xe8d0('0x33')](_0xe8d0('0x3b'));if(rpc[_0x57de98['channel']+_0xe8d0('0x3c')]){rpc[_0x57de98[_0xe8d0('0x15')]+_0xe8d0('0x3c')][_0xe8d0('0x3d')](_0x4bcdff,{'UserId':_0x57de98[_0xe8d0('0x16')][_0xe8d0('0x3e')]})[_0xe8d0('0x3f')](function(_0x1ce97d){logger['error'](_0xe8d0('0x40'));});}}return _0x14ffb6({'code':0xc8,'message':_0x57de98});}catch(_0x137722){logger[_0xe8d0('0x2f')](_0x137722[_0xe8d0('0x35')]);return _0x52f288(_0x4cf0da[_0xe8d0('0x2f')](0x1f4,_0x137722));}}logger[_0xe8d0('0x2f')](_0xe8d0('0x41'));return _0x52f288(_0x4cf0da[_0xe8d0('0x2f')](0x1f4,_0xe8d0('0x41')));});},'RejectMessage':function(_0x2e2c05){var _0x361e3d=this;return new Promise(function(_0x3a5987,_0x596303){if(_0x2e2c05[_0xe8d0('0x36')]&&_0x2e2c05[_0xe8d0('0x36')]['id']){try{if(_0x59b4b7[_0xe8d0('0x37')][_0x2e2c05[_0xe8d0('0x36')]['id']]){_0x59b4b7[_0xe8d0('0x37')][_0x2e2c05[_0xe8d0('0x36')]['id']][_0xe8d0('0x38')]=![];_0x59b4b7['agents'][_0x2e2c05[_0xe8d0('0x36')]['id']][_0xe8d0('0x39')]=undefined;}return _0x3a5987({'code':0xc8,'message':_0x2e2c05});}catch(_0x151cf4){logger[_0xe8d0('0x2f')](_0x151cf4['stack']);return _0x596303(_0x361e3d[_0xe8d0('0x2f')](0x1f4,_0x151cf4));}}logger['error'](_0xe8d0('0x41'));return _0x596303(_0x361e3d[_0xe8d0('0x2f')](0x1f4,_0xe8d0('0x41')));});},'AbandonInteraction':function(_0x158d24){var _0x2af8bb=this;return new Promise(function(_0x34efb0,_0x1646fb){if(_0x158d24['channel']&&_0x158d24[_0xe8d0('0x3a')]&&_0x158d24['interaction']['id']){try{var _0x581a34=getId(_0x158d24[_0xe8d0('0x15')],_0x158d24['message']?_0x158d24[_0xe8d0('0x16')]['id']:0x0,_0x158d24['interaction']?_0x158d24[_0xe8d0('0x3a')]['id']:0x0);if(_0x59b4b7[_0xe8d0('0x14')][_0x581a34]){_0x59b4b7[_0xe8d0('0x14')][_0x581a34][_0xe8d0('0x33')]('end');}return _0x34efb0({'code':0xc8,'message':_0x158d24});}catch(_0x3088b1){logger[_0xe8d0('0x2f')](_0x3088b1[_0xe8d0('0x35')]);return _0x1646fb(_0x2af8bb[_0xe8d0('0x2f')](0x1f4,_0x3088b1));}}logger[_0xe8d0('0x2f')]('message\x20is\x20empty');return _0x1646fb(_0x2af8bb[_0xe8d0('0x2f')](0x1f4,_0xe8d0('0x41')));});},'AgentCapacity':function(_0x2bf644){var _0x587d3b=this;return new Promise(function(_0x2f4d43,_0x571c4e){if(_0x59b4b7['agents'][_0xe8d0('0x42')](_0x2bf644['id'])){for(var _0x37040a in _0x2bf644['capacity']){if(_0x2bf644[_0xe8d0('0x43')][_0xe8d0('0x42')](_0x37040a)){if(_0x59b4b7['agents'][_0x2bf644['id']][_0xe8d0('0x42')](_0x37040a+_0xe8d0('0x44'))){_0x59b4b7[_0xe8d0('0x37')][_0x2bf644['id']][_0x37040a+_0xe8d0('0x44')]=parseInt(_0x2bf644['capacity'][_0x37040a],0xa);}}}_0x59b4b7[_0xe8d0('0x37')][_0x2bf644['id']][_0xe8d0('0x45')]();return _0x2f4d43({'code':0xc8,'message':_0x59b4b7[_0xe8d0('0x37')][_0x2bf644['id']]});}else{return _0x571c4e(_0x587d3b[_0xe8d0('0x2f')](0x1f4,'agent\x20not\x20found'));}});},'Agents':function(_0x4125aa){return new Promise(function(_0x677679,_0x17c044){var _0x35e0d5=_[_0xe8d0('0x46')](_0x59b4b7[_0xe8d0('0x37')]);_0x677679({'count':_0x35e0d5['length'],'rows':_0x35e0d5});});},'ChatQueues':function(_0x4fdca4){return new Promise(function(_0x2bb54d,_0x5668db){var _0x3cee4e=[];for(var _0x2c444f in _0x59b4b7['chatQueues']){if(_0x59b4b7['chatQueues'][_0xe8d0('0x42')](_0x2c444f)){var _0x4e7f34=_0x59b4b7[_0xe8d0('0x47')][_0x2c444f];var _0x4c458a={'id':_0x4e7f34['id'],'available':_0x4e7f34[_0xe8d0('0x48')],'loggedIn':_0x4e7f34[_0xe8d0('0x49')],'name':_0x4e7f34[_0xe8d0('0x4a')],'paused':_0x4e7f34['paused'],'waiting':_0x4e7f34[_0xe8d0('0x4b')]};_0x3cee4e[_0xe8d0('0x20')](_0x4c458a);}}_0x2bb54d({'count':_0x3cee4e['length'],'rows':_0x3cee4e});});},'MailQueues':function(_0x3ba08a){return new Promise(function(_0x4a368d,_0x3d0908){var _0x4ff583=[];for(var _0x1a6de5 in _0x59b4b7[_0xe8d0('0x4c')]){if(_0x59b4b7[_0xe8d0('0x4c')][_0xe8d0('0x42')](_0x1a6de5)){var _0x426934=_0x59b4b7['mailQueues'][_0x1a6de5];var _0x4ee750={'id':_0x426934['id'],'available':_0x426934[_0xe8d0('0x48')],'loggedIn':_0x426934['loggedIn'],'name':_0x426934[_0xe8d0('0x4a')],'paused':_0x426934[_0xe8d0('0x4d')],'waiting':_0x426934[_0xe8d0('0x4b')]};_0x4ff583[_0xe8d0('0x20')](_0x4ee750);}}_0x4a368d({'count':_0x4ff583[_0xe8d0('0x19')],'rows':_0x4ff583});});},'OpenchannelQueues':function(_0x1e806b){return new Promise(function(_0x177485,_0x20647d){var _0x7557d9=[];for(var _0x2fc8bd in _0x59b4b7[_0xe8d0('0x4e')]){if(_0x59b4b7[_0xe8d0('0x4e')][_0xe8d0('0x42')](_0x2fc8bd)){var _0x1c41d8=_0x59b4b7[_0xe8d0('0x4e')][_0x2fc8bd];var _0x4a68d5={'id':_0x1c41d8['id'],'available':_0x1c41d8[_0xe8d0('0x48')],'loggedIn':_0x1c41d8[_0xe8d0('0x49')],'name':_0x1c41d8[_0xe8d0('0x4a')],'paused':_0x1c41d8[_0xe8d0('0x4d')],'waiting':_0x1c41d8[_0xe8d0('0x4b')]};_0x7557d9['push'](_0x4a68d5);}}_0x177485({'count':_0x7557d9[_0xe8d0('0x19')],'rows':_0x7557d9});});},'SmsQueues':function(_0x1d30c0){return new Promise(function(_0x45b42b,_0x148888){var _0x360633=[];for(var _0xa215f in _0x59b4b7[_0xe8d0('0x4f')]){if(_0x59b4b7[_0xe8d0('0x4f')][_0xe8d0('0x42')](_0xa215f)){var _0x24be86=_0x59b4b7[_0xe8d0('0x4f')][_0xa215f];var _0xdb3e53={'id':_0x24be86['id'],'available':_0x24be86['available'],'loggedIn':_0x24be86['loggedIn'],'name':_0x24be86[_0xe8d0('0x4a')],'paused':_0x24be86['paused'],'waiting':_0x24be86[_0xe8d0('0x4b')]};_0x360633[_0xe8d0('0x20')](_0xdb3e53);}}_0x45b42b({'count':_0x360633['length'],'rows':_0x360633});});},'FaxQueues':function(_0x16a989){return new Promise(function(_0x1e3d33,_0x243c09){var _0xa2102=[];for(var _0x1ed517 in _0x59b4b7[_0xe8d0('0x50')]){if(_0x59b4b7[_0xe8d0('0x50')][_0xe8d0('0x42')](_0x1ed517)){var _0x400736=_0x59b4b7[_0xe8d0('0x50')][_0x1ed517];var _0xb078d8={'id':_0x400736['id'],'available':_0x400736[_0xe8d0('0x48')],'loggedIn':_0x400736[_0xe8d0('0x49')],'name':_0x400736[_0xe8d0('0x4a')],'paused':_0x400736[_0xe8d0('0x4d')],'waiting':_0x400736[_0xe8d0('0x4b')]};_0xa2102[_0xe8d0('0x20')](_0xb078d8);}}_0x1e3d33({'count':_0xa2102[_0xe8d0('0x19')],'rows':_0xa2102});});},'WhatsappQueues':function(_0x44ffa5){return new Promise(function(_0x500fb0,_0x30ed66){var _0x19a70a=[];for(var _0x381d53 in _0x59b4b7['whatsappQueues']){if(_0x59b4b7[_0xe8d0('0x51')]['hasOwnProperty'](_0x381d53)){var _0x31e6df=_0x59b4b7[_0xe8d0('0x51')][_0x381d53];var _0x22791b={'id':_0x31e6df['id'],'available':_0x31e6df['available'],'loggedIn':_0x31e6df[_0xe8d0('0x49')],'name':_0x31e6df[_0xe8d0('0x4a')],'paused':_0x31e6df[_0xe8d0('0x4d')],'waiting':_0x31e6df[_0xe8d0('0x4b')]};_0x19a70a[_0xe8d0('0x20')](_0x22791b);}}_0x500fb0({'count':_0x19a70a['length'],'rows':_0x19a70a});});},'ChatQueuesWaitingInteractions':function(_0x42c686){return new Promise(function(_0xbd7ee,_0x23ba49){var _0xe4cb93=_[_0xe8d0('0x46')](_0x59b4b7[_0xe8d0('0x52')]);_0xbd7ee({'count':_0xe4cb93[_0xe8d0('0x19')],'rows':_0xe4cb93});});},'MailQueuesWaitingInteractions':function(_0x42e1db){return new Promise(function(_0x5334ee,_0x20a18b){var _0x31b9d3=_[_0xe8d0('0x46')](_0x59b4b7[_0xe8d0('0x53')]);_0x5334ee({'count':_0x31b9d3['length'],'rows':_0x31b9d3});});},'OpenchannelQueuesWaitingInteractions':function(_0x428b00){return new Promise(function(_0x2f6382,_0xea8c98){var _0x575730=_[_0xe8d0('0x46')](_0x59b4b7['openchannelQueuesWaitingInteractions']);_0x2f6382({'count':_0x575730[_0xe8d0('0x19')],'rows':_0x575730});});},'SmsQueuesWaitingInteractions':function(_0x478eb2){return new Promise(function(_0x25bc77,_0x2ff6b0){var _0x8b47a1=_[_0xe8d0('0x46')](_0x59b4b7[_0xe8d0('0x54')]);_0x25bc77({'count':_0x8b47a1[_0xe8d0('0x19')],'rows':_0x8b47a1});});},'FaxQueuesWaitingInteractions':function(_0x17fbdc){return new Promise(function(_0x3f5c69,_0x9f409c){var _0x3143ee=_[_0xe8d0('0x46')](_0x59b4b7[_0xe8d0('0x55')]);_0x3f5c69({'count':_0x3143ee['length'],'rows':_0x3143ee});});},'WhatsappQueuesWaitingInteractions':function(_0x20e4ff){return new Promise(function(_0x1fa61e,_0x24de21){var _0x761e97=_[_0xe8d0('0x46')](_0x59b4b7[_0xe8d0('0x56')]);_0x1fa61e({'count':_0x761e97[_0xe8d0('0x19')],'rows':_0x761e97});});}};var _0x605b5f=jayson[_0xe8d0('0x57')](_0x291b49)[_0xe8d0('0x58')]();_0x605b5f['on']('error',function(_0x1ca1d0){logger[_0xe8d0('0x2f')](JSON[_0xe8d0('0x32')](_0x1ca1d0));return _0x1aa725(_0x1ca1d0);});_0x605b5f[_0xe8d0('0x59')](0x232c,_0xe8d0('0x5a'),function(){console['log']('Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232c);return _0x2aa906(_0xe8d0('0x5b')+0x232c);});});};
\ No newline at end of file
+var _0xb7c8=['uuid','../../../config/environment','../../../config/logger','../rpc/openchannelQueueReport','../rpc/mailQueueReport','../rpc/chatQueueReport','../rpc/smsQueueReport','../rpc/faxQueueReport','../rpc/whatsappQueueReport','../lib/rule-engine','format','%s.%s.%s','isNil','IntervalId','Intervals','interval','listen','rules','channel','message','interaction','applications','isArray','length','existsSync','join','app','.js','toLowerCase','autoreply','appdata','split','mail','push','slice','dialogflow','dialogflowv2','amazonlex','tag','TagId','%s:%s:%s','condition','intervals','./applications/','priority','info','Push\x20new\x20rule','Please\x20create\x20a\x20new\x20file\x20under','execute','Applications\x20executed','stringify','matchPath','emit','complete','No\x20applications\x20to\x20execute','error','routing\x20is\x20empty','agent','agents','busy','busyQueue','end','QueueReport','update','catch','message\x20is\x20empty','stack','capacity','hasOwnProperty','CurrentCapacity','updateRealtime','agent\x20not\x20found','values','chatQueues','available','loggedIn','name','waiting','mailQueues','paused','openchannelQueues','faxQueues','whatsappQueues','chatQueuesWaitingInteractions','openchannelQueuesWaitingInteractions','smsQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','127.0.0.1','log','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','RPC\x20listening\x20on\x20port:','util','path','jayson/promise','bluebird'];(function(_0x119bfb,_0x14375b){var _0x5ef624=function(_0x10f8c2){while(--_0x10f8c2){_0x119bfb['push'](_0x119bfb['shift']());}};_0x5ef624(++_0x14375b);}(_0xb7c8,0x119));var _0x8b7c=function(_0x37f8f9,_0x32753d){_0x37f8f9=_0x37f8f9-0x0;var _0x2990c2=_0xb7c8[_0x37f8f9];return _0x2990c2;};'use strict';var _=require('lodash');var util=require(_0x8b7c('0x0'));var path=require(_0x8b7c('0x1'));var fs=require('fs');var jayson=require(_0x8b7c('0x2'));var BPromise=require(_0x8b7c('0x3'));var uuid=require(_0x8b7c('0x4'));var config=require(_0x8b7c('0x5'));var logger=require(_0x8b7c('0x6'))('routing');var rpc={'openchannelQueueReport':require(_0x8b7c('0x7')),'mailQueueReport':require(_0x8b7c('0x8')),'chatQueueReport':require(_0x8b7c('0x9')),'smsQueueReport':require(_0x8b7c('0xa')),'faxQueueReport':require(_0x8b7c('0xb')),'whatsappQueueReport':require(_0x8b7c('0xc'))};var RuleEngine=require(_0x8b7c('0xd'));function getId(_0x3c8fd6,_0x6afb55,_0x30a924){return util[_0x8b7c('0xe')](_0x8b7c('0xf'),_0x3c8fd6,_0x6afb55||0x0,_0x30a924||0x0);}function getIntervals(_0x48370e,_0x31bf3f){var _0x5986c1=[];if(!_[_0x8b7c('0x10')](_0x31bf3f[_0x8b7c('0x11')])&&!_['isNil'](_0x48370e[_0x31bf3f[_0x8b7c('0x11')]])&&!_[_0x8b7c('0x10')](_0x48370e[_0x31bf3f[_0x8b7c('0x11')]]['Intervals'])){_0x5986c1=_['map'](_0x48370e[_0x31bf3f[_0x8b7c('0x11')]][_0x8b7c('0x12')],_0x8b7c('0x13'));}else if(!_[_0x8b7c('0x10')](_0x31bf3f[_0x8b7c('0x13')])){_0x5986c1=[_0x31bf3f[_0x8b7c('0x13')]];}return _0x5986c1;}exports[_0x8b7c('0x14')]=function(_0x56e02b){_0x56e02b[_0x8b7c('0x15')]={};return new BPromise(function(_0x19c63e,_0x5857ac){var _0x52cfe7={'Start':function(_0xd37a82){var _0x4284a2=this;return new Promise(function(_0x496bc0,_0x3b8d62){if(_0xd37a82){try{var _0xcc0fcc=[];var _0x4262b5=getId(_0xd37a82[_0x8b7c('0x16')],_0xd37a82[_0x8b7c('0x17')]?_0xd37a82['message']['id']:0x0,_0xd37a82[_0x8b7c('0x18')]?_0xd37a82[_0x8b7c('0x18')]['id']:0x0);if(_0xd37a82[_0x8b7c('0x19')]&&_[_0x8b7c('0x1a')](_0xd37a82[_0x8b7c('0x19')])&&_0xd37a82['applications'][_0x8b7c('0x1b')]){for(var _0x2b0874=0x0;_0x2b0874<_0xd37a82[_0x8b7c('0x19')][_0x8b7c('0x1b')];_0x2b0874+=0x1){var _0x7b9e59=_0xd37a82[_0x8b7c('0x19')][_0x2b0874];if(fs[_0x8b7c('0x1c')](path[_0x8b7c('0x1d')](__dirname,_0x8b7c('0x19'),_0x7b9e59[_0x8b7c('0x1e')]+_0x8b7c('0x1f')))){var _0x1fe931=[];switch(_0x7b9e59['app'][_0x8b7c('0x20')]()){case _0x8b7c('0x21'):var _0x247c62=_0x7b9e59[_0x8b7c('0x22')][_0x8b7c('0x23')](',');if(_0xd37a82[_0x8b7c('0x16')]===_0x8b7c('0x24')){_0x1fe931[_0x8b7c('0x25')](_0x247c62[0x0]);_0x1fe931[_0x8b7c('0x25')](_0x247c62[0x1]);_0x1fe931[_0x8b7c('0x25')](_0x247c62['slice'](0x2,_0x247c62['length'])[_0x8b7c('0x1d')](','));}else{_0x1fe931['push'](_0x247c62[0x0]);_0x1fe931[_0x8b7c('0x25')](_0x247c62[_0x8b7c('0x26')](0x1,_0x247c62[_0x8b7c('0x1b')])[_0x8b7c('0x1d')](','));}break;case _0x8b7c('0x27'):var _0x3d2dfa=_0x7b9e59['appdata'][_0x8b7c('0x23')](',');_0x1fe931[_0x8b7c('0x25')](_0x3d2dfa[0x0]);_0x1fe931[_0x8b7c('0x25')](_0x3d2dfa[0x1]);_0x1fe931[_0x8b7c('0x25')](_0x3d2dfa[_0x8b7c('0x26')](0x2,_0x3d2dfa[_0x8b7c('0x1b')])[_0x8b7c('0x1d')](','));break;case _0x8b7c('0x28'):var _0x329998=_0x7b9e59[_0x8b7c('0x22')]['split'](',');_0x1fe931['push'](_0x329998[0x0]);_0x1fe931[_0x8b7c('0x25')](_0x329998[0x1]);_0x1fe931[_0x8b7c('0x25')](_0x329998[0x2]);_0x1fe931[_0x8b7c('0x25')](_0x329998[0x3]);_0x1fe931[_0x8b7c('0x25')](_0x329998[_0x8b7c('0x26')](0x4,_0x329998[_0x8b7c('0x1b')])[_0x8b7c('0x1d')](','));break;case _0x8b7c('0x29'):var _0x256681=_0x7b9e59[_0x8b7c('0x22')]['split'](',');_0x1fe931[_0x8b7c('0x25')](_0x256681[0x0]);_0x1fe931['push'](_0x256681[0x1]);_0x1fe931[_0x8b7c('0x25')](_0x256681[0x2]);_0x1fe931[_0x8b7c('0x25')](_0x256681[0x3]);_0x1fe931['push'](_0x256681[_0x8b7c('0x26')](0x4,_0x256681['length'])[_0x8b7c('0x1d')](','));break;case _0x8b7c('0x17'):_0x1fe931[_0x8b7c('0x25')](_0x7b9e59[_0x8b7c('0x22')]);break;case _0x8b7c('0x2a'):_0x1fe931[_0x8b7c('0x25')](_0x7b9e59[_0x8b7c('0x2b')]);_0x1fe931[_0x8b7c('0x25')](_0x7b9e59[_0x8b7c('0x22')]);break;default:_0x1fe931=_['isNil'](_0x7b9e59[_0x8b7c('0x22')])?[]:_0x7b9e59[_0x8b7c('0x22')]['split'](',');}var _0x56a272={'id':util['format'](_0x8b7c('0x2c'),_0x4262b5,_0x7b9e59['id'],_0x7b9e59[_0x8b7c('0x1e')]),'condition':require('./interval')[_0x8b7c('0x2d')](_0x4262b5,getIntervals(_0x56e02b[_0x8b7c('0x2e')],_0x7b9e59),_0x56e02b),'consequence':require(_0x8b7c('0x2f')+_0x7b9e59[_0x8b7c('0x1e')])['consequence'](_0x4262b5,_0x1fe931,_0x56e02b,_0xd37a82),'p':_0x7b9e59[_0x8b7c('0x30')]||0x0};logger[_0x8b7c('0x31')](_0x8b7c('0x32'),_0x56a272['id'],'on\x20interval',getIntervals(_0x56e02b[_0x8b7c('0x2e')],_0x7b9e59)[_0x8b7c('0x1d')]('\x20|\x20'));_0xcc0fcc['push'](_0x56a272);}else{logger['error'](_0x8b7c('0x33'),path[_0x8b7c('0x1d')](__dirname,_0x8b7c('0x19'),_0x7b9e59[_0x8b7c('0x1e')]+_0x8b7c('0x1f')));}}_0x56e02b[_0x8b7c('0x15')][_0x4262b5]=new RuleEngine(_0xcc0fcc);_0x56e02b['rules'][_0x4262b5][_0x8b7c('0x34')](_0xd37a82,function(_0x59b721){logger[_0x8b7c('0x31')](_0x8b7c('0x35'),JSON[_0x8b7c('0x36')](_0x59b721[_0x8b7c('0x37')]));if(_0x56e02b['rules'][_0x4262b5]){_0x56e02b[_0x8b7c('0x15')][_0x4262b5][_0x8b7c('0x38')](_0x8b7c('0x39'));}});return _0x496bc0({'code':0xc8,'message':_0xd37a82});}else{logger[_0x8b7c('0x31')](_0x8b7c('0x3a'));return _0x496bc0({'code':0xc8,'message':_0xd37a82});}}catch(_0x3252f9){logger['error'](_0x3252f9['stack']);return _0x3b8d62(_0x4284a2[_0x8b7c('0x3b')](0x1f4,_0x3252f9));}}return _0x3b8d62(_0x8b7c('0x3c'));});},'AcceptMessage':function(_0x4ccebb){var _0x50908c=this;return new Promise(function(_0x1c9058,_0x3119be){if(_0x4ccebb[_0x8b7c('0x3d')]&&_0x4ccebb[_0x8b7c('0x3d')]['id']){if(_0x56e02b[_0x8b7c('0x3e')][_0x4ccebb[_0x8b7c('0x3d')]['id']]){_0x56e02b[_0x8b7c('0x3e')][_0x4ccebb[_0x8b7c('0x3d')]['id']][_0x8b7c('0x3f')]=![];_0x56e02b[_0x8b7c('0x3e')][_0x4ccebb[_0x8b7c('0x3d')]['id']][_0x8b7c('0x40')]=undefined;}}if(_0x4ccebb['message']&&_0x4ccebb[_0x8b7c('0x17')]['id']){try{var _0x21a690=getId(_0x4ccebb[_0x8b7c('0x16')],_0x4ccebb[_0x8b7c('0x17')]?_0x4ccebb[_0x8b7c('0x17')]['id']:0x0,_0x4ccebb['interaction']?_0x4ccebb['interaction']['id']:0x0);if(_0x56e02b[_0x8b7c('0x15')][_0x21a690]){_0x56e02b[_0x8b7c('0x15')][_0x21a690][_0x8b7c('0x38')](_0x8b7c('0x41'));if(rpc[_0x4ccebb[_0x8b7c('0x16')]+_0x8b7c('0x42')]){rpc[_0x4ccebb['channel']+'QueueReport'][_0x8b7c('0x43')](_0x21a690,{'UserId':_0x4ccebb[_0x8b7c('0x17')]['UserId']})[_0x8b7c('0x44')](function(_0x18dea0){logger[_0x8b7c('0x3b')]('error\x20update\x20queue\x20report');});}}return _0x1c9058({'code':0xc8,'message':_0x4ccebb});}catch(_0x4c1a90){logger[_0x8b7c('0x3b')](_0x4c1a90['stack']);return _0x3119be(_0x50908c[_0x8b7c('0x3b')](0x1f4,_0x4c1a90));}}logger[_0x8b7c('0x3b')](_0x8b7c('0x45'));return _0x3119be(_0x50908c[_0x8b7c('0x3b')](0x1f4,_0x8b7c('0x45')));});},'RejectMessage':function(_0x39219c){var _0x29aec5=this;return new Promise(function(_0x52e6f4,_0x6179ec){if(_0x39219c[_0x8b7c('0x3d')]&&_0x39219c[_0x8b7c('0x3d')]['id']){try{if(_0x56e02b[_0x8b7c('0x3e')][_0x39219c['agent']['id']]){_0x56e02b['agents'][_0x39219c['agent']['id']][_0x8b7c('0x3f')]=![];_0x56e02b[_0x8b7c('0x3e')][_0x39219c[_0x8b7c('0x3d')]['id']]['busyQueue']=undefined;}return _0x52e6f4({'code':0xc8,'message':_0x39219c});}catch(_0x190192){logger[_0x8b7c('0x3b')](_0x190192[_0x8b7c('0x46')]);return _0x6179ec(_0x29aec5[_0x8b7c('0x3b')](0x1f4,_0x190192));}}logger[_0x8b7c('0x3b')](_0x8b7c('0x45'));return _0x6179ec(_0x29aec5['error'](0x1f4,_0x8b7c('0x45')));});},'AbandonInteraction':function(_0x34413b){var _0x2e2ea8=this;return new Promise(function(_0x5d9307,_0x2c85c1){if(_0x34413b[_0x8b7c('0x16')]&&_0x34413b[_0x8b7c('0x18')]&&_0x34413b[_0x8b7c('0x18')]['id']){try{var _0x4e4a4a=getId(_0x34413b['channel'],_0x34413b[_0x8b7c('0x17')]?_0x34413b[_0x8b7c('0x17')]['id']:0x0,_0x34413b['interaction']?_0x34413b[_0x8b7c('0x18')]['id']:0x0);if(_0x56e02b[_0x8b7c('0x15')][_0x4e4a4a]){_0x56e02b[_0x8b7c('0x15')][_0x4e4a4a]['emit'](_0x8b7c('0x41'));}return _0x5d9307({'code':0xc8,'message':_0x34413b});}catch(_0x119110){logger[_0x8b7c('0x3b')](_0x119110[_0x8b7c('0x46')]);return _0x2c85c1(_0x2e2ea8[_0x8b7c('0x3b')](0x1f4,_0x119110));}}logger[_0x8b7c('0x3b')]('message\x20is\x20empty');return _0x2c85c1(_0x2e2ea8['error'](0x1f4,_0x8b7c('0x45')));});},'AgentCapacity':function(_0xea8953){var _0x4f8828=this;return new Promise(function(_0x539241,_0x4b67b5){if(_0x56e02b[_0x8b7c('0x3e')]['hasOwnProperty'](_0xea8953['id'])){for(var _0x559b98 in _0xea8953[_0x8b7c('0x47')]){if(_0xea8953['capacity'][_0x8b7c('0x48')](_0x559b98)){if(_0x56e02b[_0x8b7c('0x3e')][_0xea8953['id']][_0x8b7c('0x48')](_0x559b98+_0x8b7c('0x49'))){_0x56e02b[_0x8b7c('0x3e')][_0xea8953['id']][_0x559b98+'CurrentCapacity']=parseInt(_0xea8953[_0x8b7c('0x47')][_0x559b98],0xa);}}}_0x56e02b[_0x8b7c('0x3e')][_0xea8953['id']][_0x8b7c('0x4a')]();return _0x539241({'code':0xc8,'message':_0x56e02b[_0x8b7c('0x3e')][_0xea8953['id']]});}else{return _0x4b67b5(_0x4f8828[_0x8b7c('0x3b')](0x1f4,_0x8b7c('0x4b')));}});},'Agents':function(_0x4458fd){return new Promise(function(_0x21e779,_0x3db1a6){var _0x2a50e3=_[_0x8b7c('0x4c')](_0x56e02b[_0x8b7c('0x3e')]);_0x21e779({'count':_0x2a50e3['length'],'rows':_0x2a50e3});});},'ChatQueues':function(_0x2c2403){return new Promise(function(_0x32d2e4,_0x57bb41){var _0x4ac7fe=[];for(var _0x5dbfc6 in _0x56e02b[_0x8b7c('0x4d')]){if(_0x56e02b[_0x8b7c('0x4d')][_0x8b7c('0x48')](_0x5dbfc6)){var _0x4b8075=_0x56e02b[_0x8b7c('0x4d')][_0x5dbfc6];var _0x275071={'id':_0x4b8075['id'],'available':_0x4b8075[_0x8b7c('0x4e')],'loggedIn':_0x4b8075[_0x8b7c('0x4f')],'name':_0x4b8075[_0x8b7c('0x50')],'paused':_0x4b8075['paused'],'waiting':_0x4b8075[_0x8b7c('0x51')]};_0x4ac7fe[_0x8b7c('0x25')](_0x275071);}}_0x32d2e4({'count':_0x4ac7fe[_0x8b7c('0x1b')],'rows':_0x4ac7fe});});},'MailQueues':function(_0x232b26){return new Promise(function(_0x263dde,_0x183a99){var _0x38ab9e=[];for(var _0x6b6b14 in _0x56e02b[_0x8b7c('0x52')]){if(_0x56e02b[_0x8b7c('0x52')][_0x8b7c('0x48')](_0x6b6b14)){var _0x4a3c56=_0x56e02b[_0x8b7c('0x52')][_0x6b6b14];var _0x474dce={'id':_0x4a3c56['id'],'available':_0x4a3c56[_0x8b7c('0x4e')],'loggedIn':_0x4a3c56[_0x8b7c('0x4f')],'name':_0x4a3c56[_0x8b7c('0x50')],'paused':_0x4a3c56[_0x8b7c('0x53')],'waiting':_0x4a3c56[_0x8b7c('0x51')]};_0x38ab9e[_0x8b7c('0x25')](_0x474dce);}}_0x263dde({'count':_0x38ab9e[_0x8b7c('0x1b')],'rows':_0x38ab9e});});},'OpenchannelQueues':function(_0xd1d677){return new Promise(function(_0x1e3817,_0x31b4c0){var _0x16a318=[];for(var _0x88ebe5 in _0x56e02b[_0x8b7c('0x54')]){if(_0x56e02b[_0x8b7c('0x54')][_0x8b7c('0x48')](_0x88ebe5)){var _0x2f28f9=_0x56e02b[_0x8b7c('0x54')][_0x88ebe5];var _0x13f3ae={'id':_0x2f28f9['id'],'available':_0x2f28f9['available'],'loggedIn':_0x2f28f9['loggedIn'],'name':_0x2f28f9['name'],'paused':_0x2f28f9[_0x8b7c('0x53')],'waiting':_0x2f28f9[_0x8b7c('0x51')]};_0x16a318[_0x8b7c('0x25')](_0x13f3ae);}}_0x1e3817({'count':_0x16a318[_0x8b7c('0x1b')],'rows':_0x16a318});});},'SmsQueues':function(_0x24a109){return new Promise(function(_0x4e8624,_0x473c17){var _0x2a3e3a=[];for(var _0x3475c2 in _0x56e02b['smsQueues']){if(_0x56e02b['smsQueues'][_0x8b7c('0x48')](_0x3475c2)){var _0x4e7f41=_0x56e02b['smsQueues'][_0x3475c2];var _0x11d609={'id':_0x4e7f41['id'],'available':_0x4e7f41[_0x8b7c('0x4e')],'loggedIn':_0x4e7f41[_0x8b7c('0x4f')],'name':_0x4e7f41[_0x8b7c('0x50')],'paused':_0x4e7f41['paused'],'waiting':_0x4e7f41[_0x8b7c('0x51')]};_0x2a3e3a[_0x8b7c('0x25')](_0x11d609);}}_0x4e8624({'count':_0x2a3e3a['length'],'rows':_0x2a3e3a});});},'FaxQueues':function(_0x18e9e8){return new Promise(function(_0x1a89c3,_0x57e0a6){var _0x429ebe=[];for(var _0x182632 in _0x56e02b[_0x8b7c('0x55')]){if(_0x56e02b[_0x8b7c('0x55')][_0x8b7c('0x48')](_0x182632)){var _0x5906b6=_0x56e02b['faxQueues'][_0x182632];var _0x368986={'id':_0x5906b6['id'],'available':_0x5906b6['available'],'loggedIn':_0x5906b6[_0x8b7c('0x4f')],'name':_0x5906b6[_0x8b7c('0x50')],'paused':_0x5906b6[_0x8b7c('0x53')],'waiting':_0x5906b6[_0x8b7c('0x51')]};_0x429ebe[_0x8b7c('0x25')](_0x368986);}}_0x1a89c3({'count':_0x429ebe[_0x8b7c('0x1b')],'rows':_0x429ebe});});},'WhatsappQueues':function(_0x3206f3){return new Promise(function(_0x25cd92,_0x3fd9ed){var _0x5a891a=[];for(var _0x3da940 in _0x56e02b[_0x8b7c('0x56')]){if(_0x56e02b[_0x8b7c('0x56')]['hasOwnProperty'](_0x3da940)){var _0x3a1c8f=_0x56e02b['whatsappQueues'][_0x3da940];var _0x5d3b4a={'id':_0x3a1c8f['id'],'available':_0x3a1c8f['available'],'loggedIn':_0x3a1c8f[_0x8b7c('0x4f')],'name':_0x3a1c8f[_0x8b7c('0x50')],'paused':_0x3a1c8f[_0x8b7c('0x53')],'waiting':_0x3a1c8f[_0x8b7c('0x51')]};_0x5a891a[_0x8b7c('0x25')](_0x5d3b4a);}}_0x25cd92({'count':_0x5a891a[_0x8b7c('0x1b')],'rows':_0x5a891a});});},'ChatQueuesWaitingInteractions':function(_0xba04f6){return new Promise(function(_0xc9a4a6,_0x329bd5){var _0x26e228=_[_0x8b7c('0x4c')](_0x56e02b[_0x8b7c('0x57')]);_0xc9a4a6({'count':_0x26e228[_0x8b7c('0x1b')],'rows':_0x26e228});});},'MailQueuesWaitingInteractions':function(_0x3f38b2){return new Promise(function(_0x13e718,_0x297e1f){var _0x56e623=_[_0x8b7c('0x4c')](_0x56e02b['mailQueuesWaitingInteractions']);_0x13e718({'count':_0x56e623[_0x8b7c('0x1b')],'rows':_0x56e623});});},'OpenchannelQueuesWaitingInteractions':function(_0x43bef2){return new Promise(function(_0x17db87,_0x3eef37){var _0x900b5c=_[_0x8b7c('0x4c')](_0x56e02b[_0x8b7c('0x58')]);_0x17db87({'count':_0x900b5c[_0x8b7c('0x1b')],'rows':_0x900b5c});});},'SmsQueuesWaitingInteractions':function(_0x2ad50f){return new Promise(function(_0x21e09d,_0x3b7e24){var _0x5b8d8f=_[_0x8b7c('0x4c')](_0x56e02b[_0x8b7c('0x59')]);_0x21e09d({'count':_0x5b8d8f['length'],'rows':_0x5b8d8f});});},'FaxQueuesWaitingInteractions':function(_0x966e37){return new Promise(function(_0x297224,_0x621699){var _0x39e24f=_[_0x8b7c('0x4c')](_0x56e02b['faxQueuesWaitingInteractions']);_0x297224({'count':_0x39e24f['length'],'rows':_0x39e24f});});},'WhatsappQueuesWaitingInteractions':function(_0x2687a0){return new Promise(function(_0x506ba7,_0x35694f){var _0x166d3c=_[_0x8b7c('0x4c')](_0x56e02b[_0x8b7c('0x5a')]);_0x506ba7({'count':_0x166d3c[_0x8b7c('0x1b')],'rows':_0x166d3c});});}};var _0x48c7dd=jayson['server'](_0x52cfe7)['http']();_0x48c7dd['on'](_0x8b7c('0x3b'),function(_0x2a534b){logger['error'](JSON[_0x8b7c('0x36')](_0x2a534b));return _0x5857ac(_0x2a534b);});_0x48c7dd['listen'](0x232c,_0x8b7c('0x5b'),function(){console[_0x8b7c('0x5c')](_0x8b7c('0x5d'),0x232c);return _0x19c63e(_0x8b7c('0x5e')+0x232c);});});};
\ No newline at end of file