Built motion from commit 52c8a02d.|2.6.29
[motion2.git] / server / api / mailQueue / mailQueue.events.js
index 97255c6..c0cbb06 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9342=['save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','setMaxListeners'];(function(_0x216799,_0x44b817){var _0x3661c3=function(_0x28f85e){while(--_0x28f85e){_0x216799['push'](_0x216799['shift']());}};_0x3661c3(++_0x44b817);}(_0x9342,0xed));var _0x2934=function(_0x346de8,_0x2dd340){_0x346de8=_0x346de8-0x0;var _0x126100=_0x9342[_0x346de8];return _0x126100;};'use strict';var EventEmitter=require(_0x2934('0x0'));var MailQueue=require(_0x2934('0x1'))['db']['MailQueue'];var MailQueueEvents=new EventEmitter();MailQueueEvents[_0x2934('0x2')](0x0);var events={'afterCreate':_0x2934('0x3'),'afterUpdate':_0x2934('0x4'),'afterDestroy':_0x2934('0x5')};function emitEvent(_0x58f9e7){return function(_0x3fc500,_0x59a0d5,_0x55de02){MailQueueEvents[_0x2934('0x6')](_0x58f9e7+':'+_0x3fc500['id'],_0x3fc500);MailQueueEvents[_0x2934('0x6')](_0x58f9e7,_0x3fc500);_0x55de02(null);};}for(var e in events){if(events[_0x2934('0x7')](e)){var event=events[e];MailQueue[_0x2934('0x8')](e,emitEvent(event));}}module[_0x2934('0x9')]=MailQueueEvents;
\ No newline at end of file
+var _0xfa3c=['../../mysqldb','setMaxListeners','save','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x22f75e,_0x4a9e06){var _0x1f6ab3=function(_0x1479d4){while(--_0x1479d4){_0x22f75e['push'](_0x22f75e['shift']());}};_0x1f6ab3(++_0x4a9e06);}(_0xfa3c,0x74));var _0xcfa3=function(_0x399d76,_0xdc4493){_0x399d76=_0x399d76-0x0;var _0x3b19a1=_0xfa3c[_0x399d76];return _0x3b19a1;};'use strict';var EventEmitter=require(_0xcfa3('0x0'));var MailQueue=require(_0xcfa3('0x1'))['db']['MailQueue'];var MailQueueEvents=new EventEmitter();MailQueueEvents[_0xcfa3('0x2')](0x0);var events={'afterCreate':_0xcfa3('0x3'),'afterUpdate':'update','afterDestroy':_0xcfa3('0x4')};function emitEvent(_0x2bc6c0){return function(_0x523f3e,_0x232d73,_0x265a9c){MailQueueEvents['emit'](_0x2bc6c0+':'+_0x523f3e['id'],_0x523f3e);MailQueueEvents[_0xcfa3('0x5')](_0x2bc6c0,_0x523f3e);_0x265a9c(null);};}for(var e in events){if(events[_0xcfa3('0x6')](e)){var event=events[e];MailQueue[_0xcfa3('0x7')](e,emitEvent(event));}}module[_0xcfa3('0x8')]=MailQueueEvents;
\ No newline at end of file