Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / chatGroup / chatGroup.events.js
index 57ad8e9..53f7a1d 100644 (file)
@@ -1 +1 @@
-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
+const a73_0x39c2=['undefined','update','exports','emit','../../mysqldb','save','setMaxListeners','addHook','events'];(function(_0x3e9557,_0x478568){const _0x39c25d=function(_0x3cffe2){while(--_0x3cffe2){_0x3e9557['push'](_0x3e9557['shift']());}};_0x39c25d(++_0x478568);}(a73_0x39c2,0x8a));const a73_0x3cff=function(_0x3e9557,_0x478568){_0x3e9557=_0x3e9557-0x17b;let _0x39c25d=a73_0x39c2[_0x3e9557];return _0x39c25d;};const a73_0x49c531=a73_0x3cff;'use strict';const EventEmitter=require(a73_0x49c531(0x180)),ChatGroup=require(a73_0x49c531(0x17c))['db']['ChatGroup'],ChatGroupEvents=new EventEmitter();ChatGroupEvents[a73_0x49c531(0x17e)](0x0);const events={'afterCreate':a73_0x49c531(0x17d),'afterUpdate':a73_0x49c531(0x182),'afterDestroy':'remove'};function emitEvent(_0x4cae28){return function(_0x540293){const _0x39ab52=a73_0x3cff;ChatGroupEvents[_0x39ab52(0x17b)](_0x4cae28+':'+_0x540293['id'],_0x540293),ChatGroupEvents[_0x39ab52(0x17b)](_0x4cae28,_0x540293);};}for(const e in events){if(typeof events[e]!==a73_0x49c531(0x181)){const event=events[e];ChatGroup[a73_0x49c531(0x17f)](e,emitEvent(event));}}module[a73_0x49c531(0x183)]=ChatGroupEvents;
\ No newline at end of file