Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / userProfile / userProfile.events.js
index 9a8ae69..e7a6f69 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 _0x781d=['hasOwnProperty','exports','events','../../mysqldb','save','update','remove','emit'];(function(_0x1a7846,_0x59723e){var _0x48049=function(_0x203ff6){while(--_0x203ff6){_0x1a7846['push'](_0x1a7846['shift']());}};_0x48049(++_0x59723e);}(_0x781d,0x14a));var _0xd781=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x781d[_0x1facfa];return _0x9ec701;};'use strict';var EventEmitter=require(_0xd781('0x0'));var UserProfile=require(_0xd781('0x1'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xd781('0x2'),'afterUpdate':_0xd781('0x3'),'afterDestroy':_0xd781('0x4')};function emitEvent(_0x1a9f94){return function(_0xfd915d,_0x42258e,_0x446534){UserProfileEvents[_0xd781('0x5')](_0x1a9f94+':'+_0xfd915d['id'],_0xfd915d);UserProfileEvents[_0xd781('0x5')](_0x1a9f94,_0xfd915d);_0x446534(null);};}for(var e in events){if(events[_0xd781('0x6')](e)){var event=events[e];UserProfile['hook'](e,emitEvent(event));}}module[_0xd781('0x7')]=UserProfileEvents;
\ No newline at end of file