Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / mailAccount / mailAccount.events.js
index 3a55bde..300df1b 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 _0xa817=['hook','exports','events','../../mysqldb','MailAccount','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x5519a9,_0x1c5147){var _0x32f2cc=function(_0x52ed58){while(--_0x52ed58){_0x5519a9['push'](_0x5519a9['shift']());}};_0x32f2cc(++_0x1c5147);}(_0xa817,0x7b));var _0x7a81=function(_0x594eca,_0x21ee26){_0x594eca=_0x594eca-0x0;var _0x51f843=_0xa817[_0x594eca];return _0x51f843;};'use strict';var EventEmitter=require(_0x7a81('0x0'));var MailAccount=require(_0x7a81('0x1'))['db'][_0x7a81('0x2')];var MailAccountEvents=new EventEmitter();MailAccountEvents[_0x7a81('0x3')](0x0);var events={'afterCreate':_0x7a81('0x4'),'afterUpdate':_0x7a81('0x5'),'afterDestroy':_0x7a81('0x6')};function emitEvent(_0x91ac8){return function(_0x32f6ff,_0x4b5d54,_0x23551a){MailAccountEvents[_0x7a81('0x7')](_0x91ac8+':'+_0x32f6ff['id'],_0x32f6ff);MailAccountEvents['emit'](_0x91ac8,_0x32f6ff);_0x23551a(null);};}for(var e in events){if(events[_0x7a81('0x8')](e)){var event=events[e];MailAccount[_0x7a81('0x9')](e,emitEvent(event));}}module[_0x7a81('0xa')]=MailAccountEvents;
\ No newline at end of file