Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / mailMessage / mailMessage.events.js
index f42f947..84609d1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb18c=['update','remove','emit','hasOwnProperty','hook','exports','events','MailMessage','setMaxListeners','save'];(function(_0x267621,_0xb64691){var _0x1180e3=function(_0x157ae3){while(--_0x157ae3){_0x267621['push'](_0x267621['shift']());}};_0x1180e3(++_0xb64691);}(_0xb18c,0xf6));var _0xcb18=function(_0x35ee50,_0xf759c6){_0x35ee50=_0x35ee50-0x0;var _0x49e07c=_0xb18c[_0x35ee50];return _0x49e07c;};'use strict';var EventEmitter=require(_0xcb18('0x0'));var MailMessage=require('../../mysqldb')['db'][_0xcb18('0x1')];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0xcb18('0x2')](0x0);var events={'afterCreate':_0xcb18('0x3'),'afterUpdate':_0xcb18('0x4'),'afterDestroy':_0xcb18('0x5')};function emitEvent(_0x2d87ab){return function(_0x1a0427,_0x5d7e64,_0x4ed5e8){MailMessageEvents[_0xcb18('0x6')](_0x2d87ab+':'+_0x1a0427['id'],_0x1a0427);MailMessageEvents[_0xcb18('0x6')](_0x2d87ab,_0x1a0427);_0x4ed5e8(null);};}for(var e in events){if(events[_0xcb18('0x7')](e)){var event=events[e];MailMessage[_0xcb18('0x8')](e,emitEvent(event));}}module[_0xcb18('0x9')]=MailMessageEvents;
\ No newline at end of file
+var _0x9363=['emit','hasOwnProperty','hook','exports','setMaxListeners','save','update','remove'];(function(_0x5d2a31,_0x4920fb){var _0x577a7e=function(_0x164c39){while(--_0x164c39){_0x5d2a31['push'](_0x5d2a31['shift']());}};_0x577a7e(++_0x4920fb);}(_0x9363,0xdc));var _0x3936=function(_0x1529a3,_0x529f63){_0x1529a3=_0x1529a3-0x0;var _0x1a0d4b=_0x9363[_0x1529a3];return _0x1a0d4b;};'use strict';var EventEmitter=require('events');var MailMessage=require('../../mysqldb')['db']['MailMessage'];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0x3936('0x0')](0x0);var events={'afterCreate':_0x3936('0x1'),'afterUpdate':_0x3936('0x2'),'afterDestroy':_0x3936('0x3')};function emitEvent(_0xb2748f){return function(_0x466fc7,_0x5761cc,_0x210b20){MailMessageEvents[_0x3936('0x4')](_0xb2748f+':'+_0x466fc7['id'],_0x466fc7);MailMessageEvents[_0x3936('0x4')](_0xb2748f,_0x466fc7);_0x210b20(null);};}for(var e in events){if(events[_0x3936('0x5')](e)){var event=events[e];MailMessage[_0x3936('0x6')](e,emitEvent(event));}}module[_0x3936('0x7')]=MailMessageEvents;
\ No newline at end of file