Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / chatMessage / chatMessage.events.js
index 5721393..d85454b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2348=['save','update','remove','emit','hasOwnProperty','hook','events','../../mysqldb','ChatMessage','setMaxListeners'];(function(_0x24da28,_0x3cf9a5){var _0x206c28=function(_0x44a217){while(--_0x44a217){_0x24da28['push'](_0x24da28['shift']());}};_0x206c28(++_0x3cf9a5);}(_0x2348,0x1d2));var _0x8234=function(_0x5f5495,_0x30d087){_0x5f5495=_0x5f5495-0x0;var _0x14d8a3=_0x2348[_0x5f5495];return _0x14d8a3;};'use strict';var EventEmitter=require(_0x8234('0x0'));var ChatMessage=require(_0x8234('0x1'))['db'][_0x8234('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x8234('0x3')](0x0);var events={'afterCreate':_0x8234('0x4'),'afterUpdate':_0x8234('0x5'),'afterDestroy':_0x8234('0x6')};function emitEvent(_0x1fe39f){return function(_0x3772f6,_0x32383e,_0x1266b1){ChatMessageEvents['emit'](_0x1fe39f+':'+_0x3772f6['id'],_0x3772f6);ChatMessageEvents[_0x8234('0x7')](_0x1fe39f,_0x3772f6);_0x1266b1(null);};}for(var e in events){if(events[_0x8234('0x8')](e)){var event=events[e];ChatMessage[_0x8234('0x9')](e,emitEvent(event));}}module['exports']=ChatMessageEvents;
\ No newline at end of file
+var _0x1d60=['save','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatMessage','setMaxListeners'];(function(_0x50b57f,_0x2f01e9){var _0x4386fd=function(_0x9aa517){while(--_0x9aa517){_0x50b57f['push'](_0x50b57f['shift']());}};_0x4386fd(++_0x2f01e9);}(_0x1d60,0x100));var _0x01d6=function(_0x11116a,_0x462932){_0x11116a=_0x11116a-0x0;var _0x35dbc7=_0x1d60[_0x11116a];return _0x35dbc7;};'use strict';var EventEmitter=require(_0x01d6('0x0'));var ChatMessage=require(_0x01d6('0x1'))['db'][_0x01d6('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x01d6('0x3')](0x0);var events={'afterCreate':_0x01d6('0x4'),'afterUpdate':_0x01d6('0x5'),'afterDestroy':'remove'};function emitEvent(_0x2a9ae6){return function(_0x3449a8,_0x1accec,_0x10aa7c){ChatMessageEvents[_0x01d6('0x6')](_0x2a9ae6+':'+_0x3449a8['id'],_0x3449a8);ChatMessageEvents[_0x01d6('0x6')](_0x2a9ae6,_0x3449a8);_0x10aa7c(null);};}for(var e in events){if(events[_0x01d6('0x7')](e)){var event=events[e];ChatMessage[_0x01d6('0x8')](e,emitEvent(event));}}module[_0x01d6('0x9')]=ChatMessageEvents;
\ No newline at end of file