Built motion from commit (unavailable).|2.5.9
[motion2.git] / server / api / userProfile / userProfile.events.js
index 3024794..6696301 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3e3d=['emit','hasOwnProperty','hook','exports','UserProfile','setMaxListeners','save','update','remove'];(function(_0x3826ad,_0x49a30d){var _0x17b900=function(_0x38474f){while(--_0x38474f){_0x3826ad['push'](_0x3826ad['shift']());}};_0x17b900(++_0x49a30d);}(_0x3e3d,0x13f));var _0xd3e3=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x3e3d[_0x501510];return _0x1e6ee5;};'use strict';var EventEmitter=require('events');var UserProfile=require('../../mysqldb')['db'][_0xd3e3('0x0')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xd3e3('0x1')](0x0);var events={'afterCreate':_0xd3e3('0x2'),'afterUpdate':_0xd3e3('0x3'),'afterDestroy':_0xd3e3('0x4')};function emitEvent(_0x5dcf16){return function(_0x180398,_0x21e3d7,_0x1e63da){UserProfileEvents[_0xd3e3('0x5')](_0x5dcf16+':'+_0x180398['id'],_0x180398);UserProfileEvents['emit'](_0x5dcf16,_0x180398);_0x1e63da(null);};}for(var e in events){if(events[_0xd3e3('0x6')](e)){var event=events[e];UserProfile[_0xd3e3('0x7')](e,emitEvent(event));}}module[_0xd3e3('0x8')]=UserProfileEvents;
\ No newline at end of file
+var _0x7f57=['save','update','remove','emit','hook','exports','events','../../mysqldb','UserProfile','setMaxListeners'];(function(_0x12a240,_0x40d371){var _0x166538=function(_0x345edf){while(--_0x345edf){_0x12a240['push'](_0x12a240['shift']());}};_0x166538(++_0x40d371);}(_0x7f57,0x1b4));var _0x77f5=function(_0x172747,_0x1732bd){_0x172747=_0x172747-0x0;var _0x509692=_0x7f57[_0x172747];return _0x509692;};'use strict';var EventEmitter=require(_0x77f5('0x0'));var UserProfile=require(_0x77f5('0x1'))['db'][_0x77f5('0x2')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0x77f5('0x3')](0x0);var events={'afterCreate':_0x77f5('0x4'),'afterUpdate':_0x77f5('0x5'),'afterDestroy':_0x77f5('0x6')};function emitEvent(_0x246e31){return function(_0x15afad,_0x442194,_0x32ee8d){UserProfileEvents[_0x77f5('0x7')](_0x246e31+':'+_0x15afad['id'],_0x15afad);UserProfileEvents[_0x77f5('0x7')](_0x246e31,_0x15afad);_0x32ee8d(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0x77f5('0x8')](e,emitEvent(event));}}module[_0x77f5('0x9')]=UserProfileEvents;
\ No newline at end of file