Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.events.js
index 321b13d..8babac9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x92bc=['remove','emit','exports','events','../../mysqldb','ChatInternalMessage','update'];(function(_0x21aec3,_0x5c97e9){var _0x288bbc=function(_0x2283fe){while(--_0x2283fe){_0x21aec3['push'](_0x21aec3['shift']());}};_0x288bbc(++_0x5c97e9);}(_0x92bc,0x106));var _0xc92b=function(_0x355ade,_0x2d777c){_0x355ade=_0x355ade-0x0;var _0x587b96=_0x92bc[_0x355ade];return _0x587b96;};'use strict';var EventEmitter=require(_0xc92b('0x0'));var ChatInternalMessage=require(_0xc92b('0x1'))['db'][_0xc92b('0x2')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xc92b('0x3'),'afterDestroy':_0xc92b('0x4')};function emitEvent(_0x35903f){return function(_0x1d7812,_0x56c979,_0x2dcfaa){ChatInternalMessageEvents[_0xc92b('0x5')](_0x35903f+':'+_0x1d7812['id'],_0x1d7812);ChatInternalMessageEvents[_0xc92b('0x5')](_0x35903f,_0x1d7812);_0x2dcfaa(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];ChatInternalMessage['hook'](e,emitEvent(event));}}module[_0xc92b('0x6')]=ChatInternalMessageEvents;
\ No newline at end of file
+var _0xa76e=['hasOwnProperty','exports','../../mysqldb','ChatInternalMessage','update','emit'];(function(_0x96d000,_0x1830c3){var _0xc96352=function(_0x525197){while(--_0x525197){_0x96d000['push'](_0x96d000['shift']());}};_0xc96352(++_0x1830c3);}(_0xa76e,0xfe));var _0xea76=function(_0x43b06b,_0x1929c7){_0x43b06b=_0x43b06b-0x0;var _0x2c555b=_0xa76e[_0x43b06b];return _0x2c555b;};'use strict';var EventEmitter=require('events');var ChatInternalMessage=require(_0xea76('0x0'))['db'][_0xea76('0x1')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xea76('0x2'),'afterDestroy':'remove'};function emitEvent(_0x1d5309){return function(_0x368f89,_0xd37efd,_0x4ed094){ChatInternalMessageEvents[_0xea76('0x3')](_0x1d5309+':'+_0x368f89['id'],_0x368f89);ChatInternalMessageEvents['emit'](_0x1d5309,_0x368f89);_0x4ed094(null);};}for(var e in events){if(events[_0xea76('0x4')](e)){var event=events[e];ChatInternalMessage['hook'](e,emitEvent(event));}}module[_0xea76('0x5')]=ChatInternalMessageEvents;
\ No newline at end of file