Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / chatQueue / chatQueue.events.js
index 0d3d97e..e6d6a55 100644 (file)
@@ -1 +1 @@
-const a96_0x5aae=['remove','emit','save','events','setMaxListeners','addHook','../../mysqldb','ChatQueue'];(function(_0x594c2c,_0x5aae51){const _0x1cc764=function(_0x5d2996){while(--_0x5d2996){_0x594c2c['push'](_0x594c2c['shift']());}};_0x1cc764(++_0x5aae51);}(a96_0x5aae,0x13a));const a96_0x1cc7=function(_0x594c2c,_0x5aae51){_0x594c2c=_0x594c2c-0x0;let _0x1cc764=a96_0x5aae[_0x594c2c];return _0x1cc764;};const _0x309c25=a96_0x1cc7;'use strict';const EventEmitter=require(_0x309c25('0x1')),ChatQueue=require(_0x309c25('0x4'))['db'][_0x309c25('0x5')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x309c25('0x2')](0x0);const events={'afterCreate':_0x309c25('0x0'),'afterUpdate':'update','afterDestroy':_0x309c25('0x6')};function emitEvent(_0x5d2996){return function(_0x3034cd){const _0x281887=a96_0x1cc7;ChatQueueEvents[_0x281887('0x7')](_0x5d2996+':'+_0x3034cd['id'],_0x3034cd),ChatQueueEvents[_0x281887('0x7')](_0x5d2996,_0x3034cd);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatQueue[_0x309c25('0x3')](e,emitEvent(event));}}module['exports']=ChatQueueEvents;
\ No newline at end of file
+const a96_0x33bb=['../../mysqldb','save','setMaxListeners','update','emit','addHook'];(function(_0x276bb,_0x33bb3d){const _0x15ca74=function(_0x22f975){while(--_0x22f975){_0x276bb['push'](_0x276bb['shift']());}};_0x15ca74(++_0x33bb3d);}(a96_0x33bb,0x1a4));const a96_0x15ca=function(_0x276bb,_0x33bb3d){_0x276bb=_0x276bb-0x0;let _0x15ca74=a96_0x33bb[_0x276bb];return _0x15ca74;};const _0x48c3db=a96_0x15ca;'use strict';const EventEmitter=require('events'),ChatQueue=require(_0x48c3db('0x0'))['db']['ChatQueue'],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x48c3db('0x2')](0x0);const events={'afterCreate':_0x48c3db('0x1'),'afterUpdate':_0x48c3db('0x3'),'afterDestroy':'remove'};function emitEvent(_0x22f975){return function(_0x5c6fc9){const _0x1dd69d=a96_0x15ca;ChatQueueEvents[_0x1dd69d('0x4')](_0x22f975+':'+_0x5c6fc9['id'],_0x5c6fc9),ChatQueueEvents['emit'](_0x22f975,_0x5c6fc9);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatQueue[_0x48c3db('0x5')](e,emitEvent(event));}}module['exports']=ChatQueueEvents;
\ No newline at end of file