Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / chatMessage / chatMessage.events.js
index 84b387e..6c34617 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8efa=['update','remove','emit','hasOwnProperty','exports','ChatMessage','setMaxListeners','save'];(function(_0x55588e,_0x4e99f2){var _0x5bbf7b=function(_0x23ca73){while(--_0x23ca73){_0x55588e['push'](_0x55588e['shift']());}};_0x5bbf7b(++_0x4e99f2);}(_0x8efa,0x75));var _0xa8ef=function(_0x35cc9e,_0x5519e8){_0x35cc9e=_0x35cc9e-0x0;var _0x2fa540=_0x8efa[_0x35cc9e];return _0x2fa540;};'use strict';var EventEmitter=require('events');var ChatMessage=require('../../mysqldb')['db'][_0xa8ef('0x0')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0xa8ef('0x1')](0x0);var events={'afterCreate':_0xa8ef('0x2'),'afterUpdate':_0xa8ef('0x3'),'afterDestroy':_0xa8ef('0x4')};function emitEvent(_0x5bba29){return function(_0x4ba75a,_0x46e1d5,_0x3f98cd){ChatMessageEvents[_0xa8ef('0x5')](_0x5bba29+':'+_0x4ba75a['id'],_0x4ba75a);ChatMessageEvents[_0xa8ef('0x5')](_0x5bba29,_0x4ba75a);_0x3f98cd(null);};}for(var e in events){if(events[_0xa8ef('0x6')](e)){var event=events[e];ChatMessage['hook'](e,emitEvent(event));}}module[_0xa8ef('0x7')]=ChatMessageEvents;
\ No newline at end of file
+var _0x0bca=['setMaxListeners','save','update','remove','emit','exports','../../mysqldb','ChatMessage'];(function(_0x4965f6,_0x563d43){var _0x394854=function(_0x492048){while(--_0x492048){_0x4965f6['push'](_0x4965f6['shift']());}};_0x394854(++_0x563d43);}(_0x0bca,0x146));var _0xa0bc=function(_0x1b0165,_0x33a8c0){_0x1b0165=_0x1b0165-0x0;var _0x80ea5c=_0x0bca[_0x1b0165];return _0x80ea5c;};'use strict';var EventEmitter=require('events');var ChatMessage=require(_0xa0bc('0x0'))['db'][_0xa0bc('0x1')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0xa0bc('0x2')](0x0);var events={'afterCreate':_0xa0bc('0x3'),'afterUpdate':_0xa0bc('0x4'),'afterDestroy':_0xa0bc('0x5')};function emitEvent(_0x1ac835){return function(_0x3779de,_0x3fd24e,_0x4f2f4c){ChatMessageEvents[_0xa0bc('0x6')](_0x1ac835+':'+_0x3779de['id'],_0x3779de);ChatMessageEvents[_0xa0bc('0x6')](_0x1ac835,_0x3779de);_0x4f2f4c(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];ChatMessage['hook'](e,emitEvent(event));}}module[_0xa0bc('0x7')]=ChatMessageEvents;
\ No newline at end of file