Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / mailAccount / mailAccount.events.js
index 230d8b4..3501ea5 100644 (file)
@@ -1 +1 @@
-const a476_0x5e23=['exports','addHook','setMaxListeners','../../mysqldb','remove','events','save'];(function(_0xbec48e,_0x16a04a){const _0x5e2323=function(_0xa1c14){while(--_0xa1c14){_0xbec48e['push'](_0xbec48e['shift']());}};_0x5e2323(++_0x16a04a);}(a476_0x5e23,0xdc));const a476_0xa1c1=function(_0xbec48e,_0x16a04a){_0xbec48e=_0xbec48e-0xac;let _0x5e2323=a476_0x5e23[_0xbec48e];return _0x5e2323;};const a476_0x4d65e9=a476_0xa1c1;'use strict';const EventEmitter=require(a476_0x4d65e9(0xae)),MailAccount=require(a476_0x4d65e9(0xac))['db']['MailAccount'],MailAccountEvents=new EventEmitter();MailAccountEvents[a476_0x4d65e9(0xb2)](0x0);const events={'afterCreate':a476_0x4d65e9(0xaf),'afterUpdate':'update','afterDestroy':a476_0x4d65e9(0xad)};function emitEvent(_0x4fd0a9){return function(_0x529654){MailAccountEvents['emit'](_0x4fd0a9+':'+_0x529654['id'],_0x529654),MailAccountEvents['emit'](_0x4fd0a9,_0x529654);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailAccount[a476_0x4d65e9(0xb1)](e,emitEvent(event));}}module[a476_0x4d65e9(0xb0)]=MailAccountEvents;
\ No newline at end of file
+const a476_0x4ca2=['exports','update','emit','MailAccount','undefined','save','addHook'];(function(_0x4aaf74,_0x29fa42){const _0x4ca218=function(_0x453b29){while(--_0x453b29){_0x4aaf74['push'](_0x4aaf74['shift']());}};_0x4ca218(++_0x29fa42);}(a476_0x4ca2,0x124));const a476_0x453b=function(_0x4aaf74,_0x29fa42){_0x4aaf74=_0x4aaf74-0x67;let _0x4ca218=a476_0x4ca2[_0x4aaf74];return _0x4ca218;};const a476_0x2d26f5=a476_0x453b;'use strict';const EventEmitter=require('events'),MailAccount=require('../../mysqldb')['db'][a476_0x2d26f5(0x6c)],MailAccountEvents=new EventEmitter();MailAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':a476_0x2d26f5(0x67),'afterUpdate':a476_0x2d26f5(0x6a),'afterDestroy':'remove'};function emitEvent(_0x348cae){return function(_0x443112){const _0xbdd458=a476_0x453b;MailAccountEvents['emit'](_0x348cae+':'+_0x443112['id'],_0x443112),MailAccountEvents[_0xbdd458(0x6b)](_0x348cae,_0x443112);};}for(const e in events){if(typeof events[e]!==a476_0x2d26f5(0x6d)){const event=events[e];MailAccount[a476_0x2d26f5(0x68)](e,emitEvent(event));}}module[a476_0x2d26f5(0x69)]=MailAccountEvents;
\ No newline at end of file