Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / userProfile / userProfile.events.js
index 5f20bd2..0adbaaf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0534=['events','../../mysqldb','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports'];(function(_0x3842ff,_0x3b7d13){var _0x3d25d9=function(_0x2ceb38){while(--_0x2ceb38){_0x3842ff['push'](_0x3842ff['shift']());}};_0x3d25d9(++_0x3b7d13);}(_0x0534,0xa0));var _0x4053=function(_0xf73c09,_0x4e424e){_0xf73c09=_0xf73c09-0x0;var _0xa8923c=_0x0534[_0xf73c09];return _0xa8923c;};'use strict';var EventEmitter=require(_0x4053('0x0'));var UserProfile=require(_0x4053('0x1'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0x4053('0x2')](0x0);var events={'afterCreate':_0x4053('0x3'),'afterUpdate':_0x4053('0x4'),'afterDestroy':_0x4053('0x5')};function emitEvent(_0x191d4e){return function(_0x9a1c6a,_0x48b4cf,_0xb77e51){UserProfileEvents[_0x4053('0x6')](_0x191d4e+':'+_0x9a1c6a['id'],_0x9a1c6a);UserProfileEvents[_0x4053('0x6')](_0x191d4e,_0x9a1c6a);_0xb77e51(null);};}for(var e in events){if(events[_0x4053('0x7')](e)){var event=events[e];UserProfile[_0x4053('0x8')](e,emitEvent(event));}}module[_0x4053('0x9')]=UserProfileEvents;
\ No newline at end of file
+var _0xde46=['UserProfile','setMaxListeners','remove','emit','hook','events','../../mysqldb'];(function(_0x1d9aa0,_0x272488){var _0x226868=function(_0x17127c){while(--_0x17127c){_0x1d9aa0['push'](_0x1d9aa0['shift']());}};_0x226868(++_0x272488);}(_0xde46,0x14e));var _0x6de4=function(_0x379a92,_0x282c59){_0x379a92=_0x379a92-0x0;var _0x45b464=_0xde46[_0x379a92];return _0x45b464;};'use strict';var EventEmitter=require(_0x6de4('0x0'));var UserProfile=require(_0x6de4('0x1'))['db'][_0x6de4('0x2')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0x6de4('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x6de4('0x4')};function emitEvent(_0x5ddab6){return function(_0x2aec40,_0x19e9a6,_0xd7f8a7){UserProfileEvents[_0x6de4('0x5')](_0x5ddab6+':'+_0x2aec40['id'],_0x2aec40);UserProfileEvents['emit'](_0x5ddab6,_0x2aec40);_0xd7f8a7(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0x6de4('0x6')](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file