Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / mailQueue / mailQueue.events.js
index f5eb6b0..1d83f2a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfe0a=['hook','exports','events','../../mysqldb','MailQueue','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x3de01a,_0xcc1fd4){var _0x43f31e=function(_0xf8e692){while(--_0xf8e692){_0x3de01a['push'](_0x3de01a['shift']());}};_0x43f31e(++_0xcc1fd4);}(_0xfe0a,0x1c4));var _0xafe0=function(_0x3bffe9,_0x1f4453){_0x3bffe9=_0x3bffe9-0x0;var _0x499f82=_0xfe0a[_0x3bffe9];return _0x499f82;};'use strict';var EventEmitter=require(_0xafe0('0x0'));var MailQueue=require(_0xafe0('0x1'))['db'][_0xafe0('0x2')];var MailQueueEvents=new EventEmitter();MailQueueEvents[_0xafe0('0x3')](0x0);var events={'afterCreate':_0xafe0('0x4'),'afterUpdate':_0xafe0('0x5'),'afterDestroy':'remove'};function emitEvent(_0x4304e9){return function(_0x2d3c59,_0xf3708f,_0x3c9998){MailQueueEvents[_0xafe0('0x6')](_0x4304e9+':'+_0x2d3c59['id'],_0x2d3c59);MailQueueEvents[_0xafe0('0x6')](_0x4304e9,_0x2d3c59);_0x3c9998(null);};}for(var e in events){if(events[_0xafe0('0x7')](e)){var event=events[e];MailQueue[_0xafe0('0x8')](e,emitEvent(event));}}module[_0xafe0('0x9')]=MailQueueEvents;
\ No newline at end of file
+var _0xe48d=['MailQueue','setMaxListeners','save','remove','emit','hook','exports','events','../../mysqldb'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xe48d,0x166));var _0xde48=function(_0x33c228,_0x5dd746){_0x33c228=_0x33c228-0x0;var _0x4cc4b8=_0xe48d[_0x33c228];return _0x4cc4b8;};'use strict';var EventEmitter=require(_0xde48('0x0'));var MailQueue=require(_0xde48('0x1'))['db'][_0xde48('0x2')];var MailQueueEvents=new EventEmitter();MailQueueEvents[_0xde48('0x3')](0x0);var events={'afterCreate':_0xde48('0x4'),'afterUpdate':'update','afterDestroy':_0xde48('0x5')};function emitEvent(_0x10819e){return function(_0xc616f9,_0x49dea0,_0x1eae77){MailQueueEvents[_0xde48('0x6')](_0x10819e+':'+_0xc616f9['id'],_0xc616f9);MailQueueEvents[_0xde48('0x6')](_0x10819e,_0xc616f9);_0x1eae77(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];MailQueue[_0xde48('0x7')](e,emitEvent(event));}}module[_0xde48('0x8')]=MailQueueEvents;
\ No newline at end of file