Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / api / whatsappQueue / whatsappQueue.events.js
index 2c41587..422a8e4 100644 (file)
@@ -1 +1 @@
-const a809_0x4651=['emit','WhatsappQueue','update','addHook','../../mysqldb','setMaxListeners','events'];(function(_0xae0923,_0x4651af){const _0x6a576f=function(_0x1516f5){while(--_0x1516f5){_0xae0923['push'](_0xae0923['shift']());}};_0x6a576f(++_0x4651af);}(a809_0x4651,0x6d));const a809_0x6a57=function(_0xae0923,_0x4651af){_0xae0923=_0xae0923-0x0;let _0x6a576f=a809_0x4651[_0xae0923];return _0x6a576f;};const _0x96296e=a809_0x6a57;'use strict';const EventEmitter=require(_0x96296e('0x2')),WhatsappQueue=require(_0x96296e('0x0'))['db'][_0x96296e('0x4')],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x96296e('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x96296e('0x5'),'afterDestroy':'remove'};function emitEvent(_0x1516f5){return function(_0x3fe99e){const _0x130c7f=a809_0x6a57;WhatsappQueueEvents[_0x130c7f('0x3')](_0x1516f5+':'+_0x3fe99e['id'],_0x3fe99e),WhatsappQueueEvents[_0x130c7f('0x3')](_0x1516f5,_0x3fe99e);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue[_0x96296e('0x6')](e,emitEvent(event));}}module['exports']=WhatsappQueueEvents;
\ No newline at end of file
+const a809_0x4bdf=['emit','save','remove','addHook','update','exports','WhatsappQueue'];(function(_0x6b50e3,_0x4bdf96){const _0x3ebf97=function(_0x35e7c3){while(--_0x35e7c3){_0x6b50e3['push'](_0x6b50e3['shift']());}};_0x3ebf97(++_0x4bdf96);}(a809_0x4bdf,0x1a4));const a809_0x3ebf=function(_0x6b50e3,_0x4bdf96){_0x6b50e3=_0x6b50e3-0x0;let _0x3ebf97=a809_0x4bdf[_0x6b50e3];return _0x3ebf97;};const _0x4f4e00=a809_0x3ebf;'use strict';const EventEmitter=require('events'),WhatsappQueue=require('../../mysqldb')['db'][_0x4f4e00('0x6')],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x4f4e00('0x1'),'afterUpdate':_0x4f4e00('0x4'),'afterDestroy':_0x4f4e00('0x2')};function emitEvent(_0x35e7c3){return function(_0xbbc8e6){const _0xa777f8=a809_0x3ebf;WhatsappQueueEvents[_0xa777f8('0x0')](_0x35e7c3+':'+_0xbbc8e6['id'],_0xbbc8e6),WhatsappQueueEvents[_0xa777f8('0x0')](_0x35e7c3,_0xbbc8e6);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue[_0x4f4e00('0x3')](e,emitEvent(event));}}module[_0x4f4e00('0x5')]=WhatsappQueueEvents;
\ No newline at end of file