Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / mailAccount / mailAccount.events.js
index 3a55bde..721229f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x17c9=['events','../../mysqldb','MailAccount','setMaxListeners','save','emit','hasOwnProperty','exports'];(function(_0x9618c0,_0x4aa509){var _0x2acfcc=function(_0x2f9d14){while(--_0x2f9d14){_0x9618c0['push'](_0x9618c0['shift']());}};_0x2acfcc(++_0x4aa509);}(_0x17c9,0xc0));var _0x917c=function(_0x2dadb9,_0x42cfe6){_0x2dadb9=_0x2dadb9-0x0;var _0x2f0097=_0x17c9[_0x2dadb9];return _0x2f0097;};'use strict';var EventEmitter=require(_0x917c('0x0'));var MailAccount=require(_0x917c('0x1'))['db'][_0x917c('0x2')];var MailAccountEvents=new EventEmitter();MailAccountEvents[_0x917c('0x3')](0x0);var events={'afterCreate':_0x917c('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x5b6079){return function(_0x4f9e6b,_0x32446b,_0x472bd9){MailAccountEvents['emit'](_0x5b6079+':'+_0x4f9e6b['id'],_0x4f9e6b);MailAccountEvents[_0x917c('0x5')](_0x5b6079,_0x4f9e6b);_0x472bd9(null);};}for(var e in events){if(events[_0x917c('0x6')](e)){var event=events[e];MailAccount['hook'](e,emitEvent(event));}}module[_0x917c('0x7')]=MailAccountEvents;
\ No newline at end of file
+var _0x684b=['setMaxListeners','update','remove','emit','hasOwnProperty','hook','exports','events','MailAccount'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x684b,0x1a5));var _0xb684=function(_0x2bb9db,_0x5c997c){_0x2bb9db=_0x2bb9db-0x0;var _0x2a2e20=_0x684b[_0x2bb9db];return _0x2a2e20;};'use strict';var EventEmitter=require(_0xb684('0x0'));var MailAccount=require('../../mysqldb')['db'][_0xb684('0x1')];var MailAccountEvents=new EventEmitter();MailAccountEvents[_0xb684('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xb684('0x3'),'afterDestroy':_0xb684('0x4')};function emitEvent(_0x208615){return function(_0x217699,_0x4fb0ea,_0x11d8d7){MailAccountEvents['emit'](_0x208615+':'+_0x217699['id'],_0x217699);MailAccountEvents[_0xb684('0x5')](_0x208615,_0x217699);_0x11d8d7(null);};}for(var e in events){if(events[_0xb684('0x6')](e)){var event=events[e];MailAccount[_0xb684('0x7')](e,emitEvent(event));}}module[_0xb684('0x8')]=MailAccountEvents;
\ No newline at end of file