Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / api / chatQueue / chatQueue.events.js
index 95c4eb2..3f15471 100644 (file)
@@ -1 +1 @@
-const a96_0x1df0=['setMaxListeners','emit','exports','events','undefined','../../mysqldb','update','addHook','remove'];(function(_0x59d16b,_0x1df02e){const _0x465aff=function(_0x52d321){while(--_0x52d321){_0x59d16b['push'](_0x59d16b['shift']());}};_0x465aff(++_0x1df02e);}(a96_0x1df0,0x150));const a96_0x465a=function(_0x59d16b,_0x1df02e){_0x59d16b=_0x59d16b-0x0;let _0x465aff=a96_0x1df0[_0x59d16b];return _0x465aff;};const _0x563f17=a96_0x465a;'use strict';const EventEmitter=require(_0x563f17('0x0')),ChatQueue=require(_0x563f17('0x2'))['db']['ChatQueue'],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x563f17('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':_0x563f17('0x3'),'afterDestroy':_0x563f17('0x5')};function emitEvent(_0x52d321){return function(_0x27d435){const _0xbfc86f=a96_0x465a;ChatQueueEvents[_0xbfc86f('0x7')](_0x52d321+':'+_0x27d435['id'],_0x27d435),ChatQueueEvents[_0xbfc86f('0x7')](_0x52d321,_0x27d435);};}for(const e in events){if(typeof events[e]!==_0x563f17('0x1')){const event=events[e];ChatQueue[_0x563f17('0x4')](e,emitEvent(event));}}module[_0x563f17('0x8')]=ChatQueueEvents;
\ No newline at end of file
+const a96_0x5669=['setMaxListeners','exports','emit','ChatQueue','remove','save','update','undefined'];(function(_0x1fee47,_0x56699a){const _0x407b77=function(_0x13b823){while(--_0x13b823){_0x1fee47['push'](_0x1fee47['shift']());}};_0x407b77(++_0x56699a);}(a96_0x5669,0x133));const a96_0x407b=function(_0x1fee47,_0x56699a){_0x1fee47=_0x1fee47-0x0;let _0x407b77=a96_0x5669[_0x1fee47];return _0x407b77;};const _0x3fea79=a96_0x407b;'use strict';const EventEmitter=require('events'),ChatQueue=require('../../mysqldb')['db'][_0x3fea79('0x0')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x3fea79('0x5')](0x0);const events={'afterCreate':_0x3fea79('0x2'),'afterUpdate':_0x3fea79('0x3'),'afterDestroy':_0x3fea79('0x1')};function emitEvent(_0x13b823){return function(_0x248058){const _0x2110a4=a96_0x407b;ChatQueueEvents[_0x2110a4('0x7')](_0x13b823+':'+_0x248058['id'],_0x248058),ChatQueueEvents[_0x2110a4('0x7')](_0x13b823,_0x248058);};}for(const e in events){if(typeof events[e]!==_0x3fea79('0x4')){const event=events[e];ChatQueue['addHook'](e,emitEvent(event));}}module[_0x3fea79('0x6')]=ChatQueueEvents;
\ No newline at end of file