Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / chatMessage / chatMessage.events.js
index 42e9faf..696af5d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x46e6=['ChatMessage','setMaxListeners','save','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x1f33fd,_0xb0ced9){var _0x496cfc=function(_0x3f8002){while(--_0x3f8002){_0x1f33fd['push'](_0x1f33fd['shift']());}};_0x496cfc(++_0xb0ced9);}(_0x46e6,0xa8));var _0x646e=function(_0x50c911,_0x528dbe){_0x50c911=_0x50c911-0x0;var _0x444a94=_0x46e6[_0x50c911];return _0x444a94;};'use strict';var EventEmitter=require(_0x646e('0x0'));var ChatMessage=require(_0x646e('0x1'))['db'][_0x646e('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x646e('0x3')](0x0);var events={'afterCreate':_0x646e('0x4'),'afterUpdate':_0x646e('0x5'),'afterDestroy':'remove'};function emitEvent(_0x55ebbf){return function(_0x73ab76,_0x546391,_0x222ff3){ChatMessageEvents[_0x646e('0x6')](_0x55ebbf+':'+_0x73ab76['id'],_0x73ab76);ChatMessageEvents[_0x646e('0x6')](_0x55ebbf,_0x73ab76);_0x222ff3(null);};}for(var e in events){if(events[_0x646e('0x7')](e)){var event=events[e];ChatMessage[_0x646e('0x8')](e,emitEvent(event));}}module[_0x646e('0x9')]=ChatMessageEvents;
\ No newline at end of file
+var _0x6a99=['emit','hook','events','../../mysqldb','ChatMessage','setMaxListeners','remove'];(function(_0x39bc7a,_0x39d97c){var _0x5de904=function(_0x2bc74c){while(--_0x2bc74c){_0x39bc7a['push'](_0x39bc7a['shift']());}};_0x5de904(++_0x39d97c);}(_0x6a99,0x105));var _0x96a9=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x6a99[_0x321bb2];return _0x9c12ed;};'use strict';var EventEmitter=require(_0x96a9('0x0'));var ChatMessage=require(_0x96a9('0x1'))['db'][_0x96a9('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x96a9('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x96a9('0x4')};function emitEvent(_0x301aae){return function(_0x4a5427,_0x324154,_0x5d82aa){ChatMessageEvents[_0x96a9('0x5')](_0x301aae+':'+_0x4a5427['id'],_0x4a5427);ChatMessageEvents[_0x96a9('0x5')](_0x301aae,_0x4a5427);_0x5d82aa(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];ChatMessage[_0x96a9('0x6')](e,emitEvent(event));}}module['exports']=ChatMessageEvents;
\ No newline at end of file