Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatWebsite / chatWebsite.events.js
index 40252ea..f9226fd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4677=['save','remove','emit','hasOwnProperty','hook','events','ChatWebsite','setMaxListeners'];(function(_0x1cfb36,_0xe3d66b){var _0x41ff23=function(_0x45332d){while(--_0x45332d){_0x1cfb36['push'](_0x1cfb36['shift']());}};_0x41ff23(++_0xe3d66b);}(_0x4677,0x155));var _0x7467=function(_0x546766,_0x3415ca){_0x546766=_0x546766-0x0;var _0x3c1b7e=_0x4677[_0x546766];return _0x3c1b7e;};'use strict';var EventEmitter=require(_0x7467('0x0'));var ChatWebsite=require('../../mysqldb')['db'][_0x7467('0x1')];var ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x7467('0x2')](0x0);var events={'afterCreate':_0x7467('0x3'),'afterUpdate':'update','afterDestroy':_0x7467('0x4')};function emitEvent(_0x228e93){return function(_0x22a57e,_0xe227ce,_0x21ce80){ChatWebsiteEvents[_0x7467('0x5')](_0x228e93+':'+_0x22a57e['id'],_0x22a57e);ChatWebsiteEvents[_0x7467('0x5')](_0x228e93,_0x22a57e);_0x21ce80(null);};}for(var e in events){if(events[_0x7467('0x6')](e)){var event=events[e];ChatWebsite[_0x7467('0x7')](e,emitEvent(event));}}module['exports']=ChatWebsiteEvents;
\ No newline at end of file
+var _0xff96=['../../mysqldb','ChatWebsite','setMaxListeners','save','update','remove','emit','hasOwnProperty','events'];(function(_0x33c941,_0x396663){var _0x1574bc=function(_0x5c7c75){while(--_0x5c7c75){_0x33c941['push'](_0x33c941['shift']());}};_0x1574bc(++_0x396663);}(_0xff96,0x179));var _0x6ff9=function(_0x5a8f34,_0x11c27b){_0x5a8f34=_0x5a8f34-0x0;var _0x497614=_0xff96[_0x5a8f34];return _0x497614;};'use strict';var EventEmitter=require(_0x6ff9('0x0'));var ChatWebsite=require(_0x6ff9('0x1'))['db'][_0x6ff9('0x2')];var ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x6ff9('0x3')](0x0);var events={'afterCreate':_0x6ff9('0x4'),'afterUpdate':_0x6ff9('0x5'),'afterDestroy':_0x6ff9('0x6')};function emitEvent(_0x1a81c5){return function(_0x3561d7,_0x207c06,_0x874737){ChatWebsiteEvents[_0x6ff9('0x7')](_0x1a81c5+':'+_0x3561d7['id'],_0x3561d7);ChatWebsiteEvents['emit'](_0x1a81c5,_0x3561d7);_0x874737(null);};}for(var e in events){if(events[_0x6ff9('0x8')](e)){var event=events[e];ChatWebsite['hook'](e,emitEvent(event));}}module['exports']=ChatWebsiteEvents;
\ No newline at end of file