Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / mailMessage / mailMessage.events.js
index 9d74721..9999a30 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0844=['MailMessage','setMaxListeners','save','emit','hasOwnProperty','../../mysqldb'];(function(_0x1dc4c5,_0x16d742){var _0x58211f=function(_0x7ae82c){while(--_0x7ae82c){_0x1dc4c5['push'](_0x1dc4c5['shift']());}};_0x58211f(++_0x16d742);}(_0x0844,0x17f));var _0x4084=function(_0xd4325d,_0x9fd161){_0xd4325d=_0xd4325d-0x0;var _0xc2a383=_0x0844[_0xd4325d];return _0xc2a383;};'use strict';var EventEmitter=require('events');var MailMessage=require(_0x4084('0x0'))['db'][_0x4084('0x1')];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0x4084('0x2')](0x0);var events={'afterCreate':_0x4084('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x5b6a02){return function(_0x3ab8f7,_0x41bb18,_0x1bee67){MailMessageEvents['emit'](_0x5b6a02+':'+_0x3ab8f7['id'],_0x3ab8f7);MailMessageEvents[_0x4084('0x4')](_0x5b6a02,_0x3ab8f7);_0x1bee67(null);};}for(var e in events){if(events[_0x4084('0x5')](e)){var event=events[e];MailMessage['hook'](e,emitEvent(event));}}module['exports']=MailMessageEvents;
\ No newline at end of file
+var _0x8da7=['update','remove','emit','hasOwnProperty','hook','exports','../../mysqldb','MailMessage','setMaxListeners','save'];(function(_0x190b95,_0xfbfcc9){var _0x4d5c92=function(_0x3a00ea){while(--_0x3a00ea){_0x190b95['push'](_0x190b95['shift']());}};_0x4d5c92(++_0xfbfcc9);}(_0x8da7,0xc4));var _0x78da=function(_0x573be2,_0x5e4bd0){_0x573be2=_0x573be2-0x0;var _0x378751=_0x8da7[_0x573be2];return _0x378751;};'use strict';var EventEmitter=require('events');var MailMessage=require(_0x78da('0x0'))['db'][_0x78da('0x1')];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0x78da('0x2')](0x0);var events={'afterCreate':_0x78da('0x3'),'afterUpdate':_0x78da('0x4'),'afterDestroy':_0x78da('0x5')};function emitEvent(_0x209ab){return function(_0x29463c,_0x53c76c,_0x21fb32){MailMessageEvents['emit'](_0x209ab+':'+_0x29463c['id'],_0x29463c);MailMessageEvents[_0x78da('0x6')](_0x209ab,_0x29463c);_0x21fb32(null);};}for(var e in events){if(events[_0x78da('0x7')](e)){var event=events[e];MailMessage[_0x78da('0x8')](e,emitEvent(event));}}module[_0x78da('0x9')]=MailMessageEvents;
\ No newline at end of file