Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / mailMessage / mailMessage.events.js
index ec6d3fa..afca908 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0bbe=['setMaxListeners','update','remove','emit','hook','../../mysqldb','MailMessage'];(function(_0x4702ee,_0xaf6a45){var _0x62ca7d=function(_0x5b3af7){while(--_0x5b3af7){_0x4702ee['push'](_0x4702ee['shift']());}};_0x62ca7d(++_0xaf6a45);}(_0x0bbe,0xb4));var _0xe0bb=function(_0x5a70c0,_0x3eac7e){_0x5a70c0=_0x5a70c0-0x0;var _0x46e0c1=_0x0bbe[_0x5a70c0];return _0x46e0c1;};'use strict';var EventEmitter=require('events');var MailMessage=require(_0xe0bb('0x0'))['db'][_0xe0bb('0x1')];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0xe0bb('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xe0bb('0x3'),'afterDestroy':_0xe0bb('0x4')};function emitEvent(_0x53c821){return function(_0x2b9290,_0x3191a9,_0x251ea2){MailMessageEvents[_0xe0bb('0x5')](_0x53c821+':'+_0x2b9290['id'],_0x2b9290);MailMessageEvents[_0xe0bb('0x5')](_0x53c821,_0x2b9290);_0x251ea2(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];MailMessage[_0xe0bb('0x6')](e,emitEvent(event));}}module['exports']=MailMessageEvents;
\ No newline at end of file
+var _0x63c4=['update','remove','hook','exports','events','../../mysqldb','setMaxListeners','save'];(function(_0x4c445a,_0x4ee80f){var _0x2f611c=function(_0x4f3699){while(--_0x4f3699){_0x4c445a['push'](_0x4c445a['shift']());}};_0x2f611c(++_0x4ee80f);}(_0x63c4,0x134));var _0x463c=function(_0x1325d9,_0x5222ed){_0x1325d9=_0x1325d9-0x0;var _0x4f4e4a=_0x63c4[_0x1325d9];return _0x4f4e4a;};'use strict';var EventEmitter=require(_0x463c('0x0'));var MailMessage=require(_0x463c('0x1'))['db']['MailMessage'];var MailMessageEvents=new EventEmitter();MailMessageEvents[_0x463c('0x2')](0x0);var events={'afterCreate':_0x463c('0x3'),'afterUpdate':_0x463c('0x4'),'afterDestroy':_0x463c('0x5')};function emitEvent(_0x32db58){return function(_0x57037f,_0x141f89,_0x3826c0){MailMessageEvents['emit'](_0x32db58+':'+_0x57037f['id'],_0x57037f);MailMessageEvents['emit'](_0x32db58,_0x57037f);_0x3826c0(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];MailMessage[_0x463c('0x6')](e,emitEvent(event));}}module[_0x463c('0x7')]=MailMessageEvents;
\ No newline at end of file