Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.events.js
index e0a8a05..fa0687e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa952=['../../mysqldb','ChatInternalMessage','setMaxListeners','save','remove','emit','hasOwnProperty','hook','events'];(function(_0x708c47,_0x6eaa1f){var _0x52a470=function(_0x14a750){while(--_0x14a750){_0x708c47['push'](_0x708c47['shift']());}};_0x52a470(++_0x6eaa1f);}(_0xa952,0x98));var _0x2a95=function(_0x17c261,_0x33a5a0){_0x17c261=_0x17c261-0x0;var _0x412183=_0xa952[_0x17c261];return _0x412183;};'use strict';var EventEmitter=require(_0x2a95('0x0'));var ChatInternalMessage=require(_0x2a95('0x1'))['db'][_0x2a95('0x2')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x2a95('0x3')](0x0);var events={'afterCreate':_0x2a95('0x4'),'afterUpdate':'update','afterDestroy':_0x2a95('0x5')};function emitEvent(_0x53b3ba){return function(_0x584997,_0x378c88,_0x330387){ChatInternalMessageEvents[_0x2a95('0x6')](_0x53b3ba+':'+_0x584997['id'],_0x584997);ChatInternalMessageEvents[_0x2a95('0x6')](_0x53b3ba,_0x584997);_0x330387(null);};}for(var e in events){if(events[_0x2a95('0x7')](e)){var event=events[e];ChatInternalMessage[_0x2a95('0x8')](e,emitEvent(event));}}module['exports']=ChatInternalMessageEvents;
\ No newline at end of file
+var _0x77de=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatInternalMessage','setMaxListeners','update','remove'];(function(_0x1203f,_0x554bbc){var _0x365f0a=function(_0x3531d0){while(--_0x3531d0){_0x1203f['push'](_0x1203f['shift']());}};_0x365f0a(++_0x554bbc);}(_0x77de,0x1d0));var _0xe77d=function(_0x2a0738,_0x3c0bc5){_0x2a0738=_0x2a0738-0x0;var _0x159679=_0x77de[_0x2a0738];return _0x159679;};'use strict';var EventEmitter=require(_0xe77d('0x0'));var ChatInternalMessage=require(_0xe77d('0x1'))['db'][_0xe77d('0x2')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0xe77d('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0xe77d('0x4'),'afterDestroy':_0xe77d('0x5')};function emitEvent(_0x3b2767){return function(_0x35b2a6,_0x161cd7,_0x4878ab){ChatInternalMessageEvents['emit'](_0x3b2767+':'+_0x35b2a6['id'],_0x35b2a6);ChatInternalMessageEvents[_0xe77d('0x6')](_0x3b2767,_0x35b2a6);_0x4878ab(null);};}for(var e in events){if(events[_0xe77d('0x7')](e)){var event=events[e];ChatInternalMessage[_0xe77d('0x8')](e,emitEvent(event));}}module[_0xe77d('0x9')]=ChatInternalMessageEvents;
\ No newline at end of file