Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / userProfile / userProfile.events.js
index fa97d66..abb65cc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3d3e=['UserProfile','setMaxListeners','save','update','emit','hook','../../mysqldb'];(function(_0x2aca5e,_0x2ef58a){var _0x5e35ce=function(_0x249a71){while(--_0x249a71){_0x2aca5e['push'](_0x2aca5e['shift']());}};_0x5e35ce(++_0x2ef58a);}(_0x3d3e,0xbc));var _0xe3d3=function(_0x3c9ec0,_0x42f0d3){_0x3c9ec0=_0x3c9ec0-0x0;var _0x5d4926=_0x3d3e[_0x3c9ec0];return _0x5d4926;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xe3d3('0x0'))['db'][_0xe3d3('0x1')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xe3d3('0x2')](0x0);var events={'afterCreate':_0xe3d3('0x3'),'afterUpdate':_0xe3d3('0x4'),'afterDestroy':'remove'};function emitEvent(_0xdaf729){return function(_0x3662d4,_0x3052dd,_0x2d52c8){UserProfileEvents[_0xe3d3('0x5')](_0xdaf729+':'+_0x3662d4['id'],_0x3662d4);UserProfileEvents[_0xe3d3('0x5')](_0xdaf729,_0x3662d4);_0x2d52c8(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0xe3d3('0x6')](e,emitEvent(event));}}module['exports']=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