Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / api / chatGroup / chatGroup.events.js
index 0ba2d50..57ad8e9 100644 (file)
@@ -1 +1 @@
-const a60_0x2e2f=['undefined','addHook','exports','update','setMaxListeners','../../mysqldb','save','emit'];(function(_0x1682ec,_0x2e2fc6){const _0x55c73c=function(_0x58b50a){while(--_0x58b50a){_0x1682ec['push'](_0x1682ec['shift']());}};_0x55c73c(++_0x2e2fc6);}(a60_0x2e2f,0xbd));const a60_0x55c7=function(_0x1682ec,_0x2e2fc6){_0x1682ec=_0x1682ec-0x0;let _0x55c73c=a60_0x2e2f[_0x1682ec];return _0x55c73c;};const _0x19fdec=a60_0x55c7;'use strict';const EventEmitter=require('events'),ChatGroup=require(_0x19fdec('0x0'))['db']['ChatGroup'],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x19fdec('0x7')](0x0);const events={'afterCreate':_0x19fdec('0x1'),'afterUpdate':_0x19fdec('0x6'),'afterDestroy':'remove'};function emitEvent(_0x58b50a){return function(_0x6e3abd){const _0x1db07f=a60_0x55c7;ChatGroupEvents['emit'](_0x58b50a+':'+_0x6e3abd['id'],_0x6e3abd),ChatGroupEvents[_0x1db07f('0x2')](_0x58b50a,_0x6e3abd);};}for(const e in events){if(typeof events[e]!==_0x19fdec('0x3')){const event=events[e];ChatGroup[_0x19fdec('0x4')](e,emitEvent(event));}}module[_0x19fdec('0x5')]=ChatGroupEvents;
\ No newline at end of file
+const a73_0x5e73=['addHook','../../mysqldb','events','update','emit','remove','undefined','ChatGroup'];(function(_0x2ecdc1,_0x408ac0){const _0x5e7318=function(_0x38e301){while(--_0x38e301){_0x2ecdc1['push'](_0x2ecdc1['shift']());}};_0x5e7318(++_0x408ac0);}(a73_0x5e73,0x150));const a73_0x38e3=function(_0x2ecdc1,_0x408ac0){_0x2ecdc1=_0x2ecdc1-0x14f;let _0x5e7318=a73_0x5e73[_0x2ecdc1];return _0x5e7318;};const a73_0x5ddf24=a73_0x38e3;'use strict';const EventEmitter=require(a73_0x5ddf24(0x151)),ChatGroup=require(a73_0x5ddf24(0x150))['db'][a73_0x5ddf24(0x156)],ChatGroupEvents=new EventEmitter();ChatGroupEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a73_0x5ddf24(0x152),'afterDestroy':a73_0x5ddf24(0x154)};function emitEvent(_0x3c4da1){return function(_0x3448e9){const _0x19f2cc=a73_0x38e3;ChatGroupEvents[_0x19f2cc(0x153)](_0x3c4da1+':'+_0x3448e9['id'],_0x3448e9),ChatGroupEvents[_0x19f2cc(0x153)](_0x3c4da1,_0x3448e9);};}for(const e in events){if(typeof events[e]!==a73_0x5ddf24(0x155)){const event=events[e];ChatGroup[a73_0x5ddf24(0x14f)](e,emitEvent(event));}}module['exports']=ChatGroupEvents;
\ No newline at end of file