Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / userProfile / userProfile.events.js
index 9a8ae69..0adbaaf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8c2f=['hook','events','../../mysqldb','UserProfile','setMaxListeners','update','remove','emit'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x8c2f,0x1c9));var _0xf8c2=function(_0x39665a,_0xc729df){_0x39665a=_0x39665a-0x0;var _0x173185=_0x8c2f[_0x39665a];return _0x173185;};'use strict';var EventEmitter=require(_0xf8c2('0x0'));var UserProfile=require(_0xf8c2('0x1'))['db'][_0xf8c2('0x2')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xf8c2('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0xf8c2('0x4'),'afterDestroy':_0xf8c2('0x5')};function emitEvent(_0x8e6ca3){return function(_0x60f247,_0x5e7439,_0x2d9ac1){UserProfileEvents[_0xf8c2('0x6')](_0x8e6ca3+':'+_0x60f247['id'],_0x60f247);UserProfileEvents[_0xf8c2('0x6')](_0x8e6ca3,_0x60f247);_0x2d9ac1(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0xf8c2('0x7')](e,emitEvent(event));}}module['exports']=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