Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / chatMessage / chatMessage.events.js
index 9d23441..d85454b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe492=['../../mysqldb','ChatMessage','setMaxListeners','save','update','emit','hook','exports'];(function(_0x2b48ac,_0x29442a){var _0x20ab20=function(_0x3c19ee){while(--_0x3c19ee){_0x2b48ac['push'](_0x2b48ac['shift']());}};_0x20ab20(++_0x29442a);}(_0xe492,0x170));var _0x2e49=function(_0x1faada,_0x2320a7){_0x1faada=_0x1faada-0x0;var _0x4c16a3=_0xe492[_0x1faada];return _0x4c16a3;};'use strict';var EventEmitter=require('events');var ChatMessage=require(_0x2e49('0x0'))['db'][_0x2e49('0x1')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x2e49('0x2')](0x0);var events={'afterCreate':_0x2e49('0x3'),'afterUpdate':_0x2e49('0x4'),'afterDestroy':'remove'};function emitEvent(_0x426ff1){return function(_0x20b335,_0x507989,_0xece4e5){ChatMessageEvents[_0x2e49('0x5')](_0x426ff1+':'+_0x20b335['id'],_0x20b335);ChatMessageEvents[_0x2e49('0x5')](_0x426ff1,_0x20b335);_0xece4e5(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];ChatMessage[_0x2e49('0x6')](e,emitEvent(event));}}module[_0x2e49('0x7')]=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