Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / userProfile / userProfile.events.js
index 6696301..abb65cc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x16ce=['exports','../../mysqldb','UserProfile','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook'];(function(_0x3aff33,_0x16cb91){var _0x9e3356=function(_0x3ad616){while(--_0x3ad616){_0x3aff33['push'](_0x3aff33['shift']());}};_0x9e3356(++_0x16cb91);}(_0x16ce,0xfb));var _0xe16c=function(_0x50dd6e,_0x193585){_0x50dd6e=_0x50dd6e-0x0;var _0x5611c2=_0x16ce[_0x50dd6e];return _0x5611c2;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xe16c('0x0'))['db'][_0xe16c('0x1')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xe16c('0x2')](0x0);var events={'afterCreate':_0xe16c('0x3'),'afterUpdate':_0xe16c('0x4'),'afterDestroy':_0xe16c('0x5')};function emitEvent(_0x546ed6){return function(_0x55c37e,_0x4a5fc8,_0x884769){UserProfileEvents['emit'](_0x546ed6+':'+_0x55c37e['id'],_0x55c37e);UserProfileEvents[_0xe16c('0x6')](_0x546ed6,_0x55c37e);_0x884769(null);};}for(var e in events){if(events[_0xe16c('0x7')](e)){var event=events[e];UserProfile[_0xe16c('0x8')](e,emitEvent(event));}}module[_0xe16c('0x9')]=UserProfileEvents;
\ No newline at end of file