Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / chatMessage / chatMessage.events.js
index 692c5d4..ccaf037 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5a2d=['save','remove','emit','hook','exports','events','../../mysqldb','ChatMessage','setMaxListeners'];(function(_0x5a4d23,_0x45281){var _0x5108eb=function(_0x5ea989){while(--_0x5ea989){_0x5a4d23['push'](_0x5a4d23['shift']());}};_0x5108eb(++_0x45281);}(_0x5a2d,0x17f));var _0xd5a2=function(_0x4e4519,_0x392ae){_0x4e4519=_0x4e4519-0x0;var _0x340044=_0x5a2d[_0x4e4519];return _0x340044;};'use strict';var EventEmitter=require(_0xd5a2('0x0'));var ChatMessage=require(_0xd5a2('0x1'))['db'][_0xd5a2('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0xd5a2('0x3')](0x0);var events={'afterCreate':_0xd5a2('0x4'),'afterUpdate':'update','afterDestroy':_0xd5a2('0x5')};function emitEvent(_0x4008a3){return function(_0x427b21,_0x5e388b,_0x2845da){ChatMessageEvents['emit'](_0x4008a3+':'+_0x427b21['id'],_0x427b21);ChatMessageEvents[_0xd5a2('0x6')](_0x4008a3,_0x427b21);_0x2845da(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];ChatMessage[_0xd5a2('0x7')](e,emitEvent(event));}}module[_0xd5a2('0x8')]=ChatMessageEvents;
\ No newline at end of file
+var _0x6d5b=['emit','hasOwnProperty','hook','exports','../../mysqldb','ChatMessage','setMaxListeners','save','update','remove'];(function(_0x246484,_0x339979){var _0x508019=function(_0x2317e8){while(--_0x2317e8){_0x246484['push'](_0x246484['shift']());}};_0x508019(++_0x339979);}(_0x6d5b,0x19e));var _0xb6d5=function(_0x893cd2,_0x504808){_0x893cd2=_0x893cd2-0x0;var _0x5a36b5=_0x6d5b[_0x893cd2];return _0x5a36b5;};'use strict';var EventEmitter=require('events');var ChatMessage=require(_0xb6d5('0x0'))['db'][_0xb6d5('0x1')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0xb6d5('0x2')](0x0);var events={'afterCreate':_0xb6d5('0x3'),'afterUpdate':_0xb6d5('0x4'),'afterDestroy':_0xb6d5('0x5')};function emitEvent(_0x28e98a){return function(_0xa52db1,_0x1f3ea4,_0x2fae09){ChatMessageEvents['emit'](_0x28e98a+':'+_0xa52db1['id'],_0xa52db1);ChatMessageEvents[_0xb6d5('0x6')](_0x28e98a,_0xa52db1);_0x2fae09(null);};}for(var e in events){if(events[_0xb6d5('0x7')](e)){var event=events[e];ChatMessage[_0xb6d5('0x8')](e,emitEvent(event));}}module[_0xb6d5('0x9')]=ChatMessageEvents;
\ No newline at end of file