Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / mailAccount / mailAccount.events.js
index b4eb16c..15115b5 100644 (file)
@@ -1 +1 @@
-const a395_0x1731=['save','remove','exports','setMaxListeners','undefined','MailAccount','emit','events','update','addHook','../../mysqldb'];(function(_0x40f44b,_0x173129){const _0x1db1e8=function(_0x40d0d7){while(--_0x40d0d7){_0x40f44b['push'](_0x40f44b['shift']());}};_0x1db1e8(++_0x173129);}(a395_0x1731,0x112));const a395_0x1db1=function(_0x40f44b,_0x173129){_0x40f44b=_0x40f44b-0x0;let _0x1db1e8=a395_0x1731[_0x40f44b];return _0x1db1e8;};const _0x496742=a395_0x1db1;'use strict';const EventEmitter=require(_0x496742('0x8')),MailAccount=require(_0x496742('0x0'))['db'][_0x496742('0x6')],MailAccountEvents=new EventEmitter();MailAccountEvents[_0x496742('0x4')](0x0);const events={'afterCreate':_0x496742('0x1'),'afterUpdate':_0x496742('0x9'),'afterDestroy':_0x496742('0x2')};function emitEvent(_0x40d0d7){return function(_0x165d19){const _0x1ebd28=a395_0x1db1;MailAccountEvents[_0x1ebd28('0x7')](_0x40d0d7+':'+_0x165d19['id'],_0x165d19),MailAccountEvents['emit'](_0x40d0d7,_0x165d19);};}for(const e in events){if(typeof events[e]!==_0x496742('0x5')){const event=events[e];MailAccount[_0x496742('0xa')](e,emitEvent(event));}}module[_0x496742('0x3')]=MailAccountEvents;
\ No newline at end of file
+const a395_0x102a=['save','exports','undefined','remove','events','addHook','emit','MailAccount'];(function(_0x573c52,_0x102a39){const _0x4282c4=function(_0x48259f){while(--_0x48259f){_0x573c52['push'](_0x573c52['shift']());}};_0x4282c4(++_0x102a39);}(a395_0x102a,0x144));const a395_0x4282=function(_0x573c52,_0x102a39){_0x573c52=_0x573c52-0x0;let _0x4282c4=a395_0x102a[_0x573c52];return _0x4282c4;};const _0x3038b6=a395_0x4282;'use strict';const EventEmitter=require(_0x3038b6('0x0')),MailAccount=require('../../mysqldb')['db'][_0x3038b6('0x3')],MailAccountEvents=new EventEmitter();MailAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x3038b6('0x4'),'afterUpdate':'update','afterDestroy':_0x3038b6('0x7')};function emitEvent(_0x48259f){return function(_0x3fd547){const _0x1e85df=a395_0x4282;MailAccountEvents['emit'](_0x48259f+':'+_0x3fd547['id'],_0x3fd547),MailAccountEvents[_0x1e85df('0x2')](_0x48259f,_0x3fd547);};}for(const e in events){if(typeof events[e]!==_0x3038b6('0x6')){const event=events[e];MailAccount[_0x3038b6('0x1')](e,emitEvent(event));}}module[_0x3038b6('0x5')]=MailAccountEvents;
\ No newline at end of file