Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / mailQueue / mailQueue.events.js
index abf9e54..6d44d9d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0d58=['emit','exports','events','../../mysqldb','MailQueue','setMaxListeners','update','remove'];(function(_0x31c3ec,_0x41a015){var _0x319164=function(_0x52c298){while(--_0x52c298){_0x31c3ec['push'](_0x31c3ec['shift']());}};_0x319164(++_0x41a015);}(_0x0d58,0x1ba));var _0x80d5=function(_0x5de532,_0x2941c4){_0x5de532=_0x5de532-0x0;var _0x4e9192=_0x0d58[_0x5de532];return _0x4e9192;};'use strict';var EventEmitter=require(_0x80d5('0x0'));var MailQueue=require(_0x80d5('0x1'))['db'][_0x80d5('0x2')];var MailQueueEvents=new EventEmitter();MailQueueEvents[_0x80d5('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x80d5('0x4'),'afterDestroy':_0x80d5('0x5')};function emitEvent(_0x146ffa){return function(_0x14ac3d,_0x5d4f94,_0x18fb68){MailQueueEvents[_0x80d5('0x6')](_0x146ffa+':'+_0x14ac3d['id'],_0x14ac3d);MailQueueEvents[_0x80d5('0x6')](_0x146ffa,_0x14ac3d);_0x18fb68(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];MailQueue['hook'](e,emitEvent(event));}}module[_0x80d5('0x7')]=MailQueueEvents;
\ No newline at end of file
+var _0x8a73=['update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','setMaxListeners','save'];(function(_0x1455d7,_0x1b1778){var _0x14ee34=function(_0x1f4ab3){while(--_0x1f4ab3){_0x1455d7['push'](_0x1455d7['shift']());}};_0x14ee34(++_0x1b1778);}(_0x8a73,0x18c));var _0x38a7=function(_0x1d89c9,_0x575a40){_0x1d89c9=_0x1d89c9-0x0;var _0x1ee0e4=_0x8a73[_0x1d89c9];return _0x1ee0e4;};'use strict';var EventEmitter=require(_0x38a7('0x0'));var MailQueue=require(_0x38a7('0x1'))['db']['MailQueue'];var MailQueueEvents=new EventEmitter();MailQueueEvents[_0x38a7('0x2')](0x0);var events={'afterCreate':_0x38a7('0x3'),'afterUpdate':_0x38a7('0x4'),'afterDestroy':_0x38a7('0x5')};function emitEvent(_0x26b47c){return function(_0x3df588,_0x56ddb1,_0x5829e1){MailQueueEvents[_0x38a7('0x6')](_0x26b47c+':'+_0x3df588['id'],_0x3df588);MailQueueEvents[_0x38a7('0x6')](_0x26b47c,_0x3df588);_0x5829e1(null);};}for(var e in events){if(events[_0x38a7('0x7')](e)){var event=events[e];MailQueue[_0x38a7('0x8')](e,emitEvent(event));}}module[_0x38a7('0x9')]=MailQueueEvents;
\ No newline at end of file