Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / mailMessage / mailMessage.events.js
index 9d74721..0ebb3dc 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 _0x2b5c=['hook','exports','events','../../mysqldb','MailMessage','setMaxListeners','emit','hasOwnProperty'];(function(_0x412631,_0x542fe9){var _0x4c210c=function(_0xd5e5da){while(--_0xd5e5da){_0x412631['push'](_0x412631['shift']());}};_0x4c210c(++_0x542fe9);}(_0x2b5c,0x10a));var _0xc2b5=function(_0x4a22df,_0x2b7698){_0x4a22df=_0x4a22df-0x0;var _0x25b34f=_0x2b5c[_0x4a22df];return _0x25b34f;};'use strict';var EventEmitter=require(_0xc2b5('0x0'));var MailMessage=require(_0xc2b5('0x1'))['db'][_0xc2b5('0x2')];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0xc2b5('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x45074c){return function(_0x334538,_0x5eb282,_0x4527af){MailMessageEvents[_0xc2b5('0x4')](_0x45074c+':'+_0x334538['id'],_0x334538);MailMessageEvents[_0xc2b5('0x4')](_0x45074c,_0x334538);_0x4527af(null);};}for(var e in events){if(events[_0xc2b5('0x5')](e)){var event=events[e];MailMessage[_0xc2b5('0x6')](e,emitEvent(event));}}module[_0xc2b5('0x7')]=MailMessageEvents;
\ No newline at end of file