Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / chatOfflineMessage / chatOfflineMessage.events.js
index c076773..5a1461b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a75=['hasOwnProperty','hook','exports','events','../../mysqldb','setMaxListeners','save','remove','emit'];(function(_0x550084,_0x3d94af){var _0x2d1e17=function(_0x1173fd){while(--_0x1173fd){_0x550084['push'](_0x550084['shift']());}};_0x2d1e17(++_0x3d94af);}(_0x7a75,0x18f));var _0x57a7=function(_0x5f469f,_0x11f007){_0x5f469f=_0x5f469f-0x0;var _0x57ea64=_0x7a75[_0x5f469f];return _0x57ea64;};'use strict';var EventEmitter=require(_0x57a7('0x0'));var ChatOfflineMessage=require(_0x57a7('0x1'))['db']['ChatOfflineMessage'];var ChatOfflineMessageEvents=new EventEmitter();ChatOfflineMessageEvents[_0x57a7('0x2')](0x0);var events={'afterCreate':_0x57a7('0x3'),'afterUpdate':'update','afterDestroy':_0x57a7('0x4')};function emitEvent(_0x50892b){return function(_0x360600,_0x5e2d41,_0x2864ba){ChatOfflineMessageEvents[_0x57a7('0x5')](_0x50892b+':'+_0x360600['id'],_0x360600);ChatOfflineMessageEvents[_0x57a7('0x5')](_0x50892b,_0x360600);_0x2864ba(null);};}for(var e in events){if(events[_0x57a7('0x6')](e)){var event=events[e];ChatOfflineMessage[_0x57a7('0x7')](e,emitEvent(event));}}module[_0x57a7('0x8')]=ChatOfflineMessageEvents;
\ No newline at end of file
+var _0x8aeb=['hasOwnProperty','exports','events','../../mysqldb','ChatOfflineMessage','setMaxListeners','save','update','remove','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8aeb,0x1ce));var _0xb8ae=function(_0x2493f7,_0x49c670){_0x2493f7=_0x2493f7-0x0;var _0x594ab2=_0x8aeb[_0x2493f7];return _0x594ab2;};'use strict';var EventEmitter=require(_0xb8ae('0x0'));var ChatOfflineMessage=require(_0xb8ae('0x1'))['db'][_0xb8ae('0x2')];var ChatOfflineMessageEvents=new EventEmitter();ChatOfflineMessageEvents[_0xb8ae('0x3')](0x0);var events={'afterCreate':_0xb8ae('0x4'),'afterUpdate':_0xb8ae('0x5'),'afterDestroy':_0xb8ae('0x6')};function emitEvent(_0x116091){return function(_0x4ffb04,_0x56c03d,_0x397620){ChatOfflineMessageEvents[_0xb8ae('0x7')](_0x116091+':'+_0x4ffb04['id'],_0x4ffb04);ChatOfflineMessageEvents['emit'](_0x116091,_0x4ffb04);_0x397620(null);};}for(var e in events){if(events[_0xb8ae('0x8')](e)){var event=events[e];ChatOfflineMessage['hook'](e,emitEvent(event));}}module[_0xb8ae('0x9')]=ChatOfflineMessageEvents;
\ No newline at end of file