Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / chatMessage / chatMessage.events.js
index 02037d8..6c34617 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x41e2=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatMessage','setMaxListeners','save','update','remove'];(function(_0x2755fb,_0x5970f1){var _0x293f12=function(_0x4c629d){while(--_0x4c629d){_0x2755fb['push'](_0x2755fb['shift']());}};_0x293f12(++_0x5970f1);}(_0x41e2,0x138));var _0x241e=function(_0x33523b,_0x260d6b){_0x33523b=_0x33523b-0x0;var _0x18cacf=_0x41e2[_0x33523b];return _0x18cacf;};'use strict';var EventEmitter=require(_0x241e('0x0'));var ChatMessage=require(_0x241e('0x1'))['db'][_0x241e('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x241e('0x3')](0x0);var events={'afterCreate':_0x241e('0x4'),'afterUpdate':_0x241e('0x5'),'afterDestroy':_0x241e('0x6')};function emitEvent(_0xccf933){return function(_0x22a771,_0x102210,_0x327e0e){ChatMessageEvents['emit'](_0xccf933+':'+_0x22a771['id'],_0x22a771);ChatMessageEvents[_0x241e('0x7')](_0xccf933,_0x22a771);_0x327e0e(null);};}for(var e in events){if(events[_0x241e('0x8')](e)){var event=events[e];ChatMessage[_0x241e('0x9')](e,emitEvent(event));}}module[_0x241e('0xa')]=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