Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / userProfile / userProfile.events.js
index 5425fcf..8b395c6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc48=['events','../../mysqldb','UserProfile','setMaxListeners','update','remove','hook'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xbc48,0x111));var _0x8bc4=function(_0x61eeb4,_0x32115c){_0x61eeb4=_0x61eeb4-0x0;var _0x2ce907=_0xbc48[_0x61eeb4];return _0x2ce907;};'use strict';var EventEmitter=require(_0x8bc4('0x0'));var UserProfile=require(_0x8bc4('0x1'))['db'][_0x8bc4('0x2')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0x8bc4('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x8bc4('0x4'),'afterDestroy':_0x8bc4('0x5')};function emitEvent(_0x3efe3a){return function(_0x5971fb,_0x5468ea,_0x2f83e9){UserProfileEvents['emit'](_0x3efe3a+':'+_0x5971fb['id'],_0x5971fb);UserProfileEvents['emit'](_0x3efe3a,_0x5971fb);_0x2f83e9(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];UserProfile[_0x8bc4('0x6')](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file
+var _0x77d4=['update','remove','emit','hasOwnProperty','hook','../../mysqldb','setMaxListeners'];(function(_0x142c85,_0x56e09d){var _0x2cf70e=function(_0x1a6998){while(--_0x1a6998){_0x142c85['push'](_0x142c85['shift']());}};_0x2cf70e(++_0x56e09d);}(_0x77d4,0x108));var _0x477d=function(_0x1a15ed,_0x269dc4){_0x1a15ed=_0x1a15ed-0x0;var _0x386030=_0x77d4[_0x1a15ed];return _0x386030;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0x477d('0x0'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0x477d('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':_0x477d('0x2'),'afterDestroy':_0x477d('0x3')};function emitEvent(_0x53637c){return function(_0x53e1b8,_0x16213f,_0xf3cde0){UserProfileEvents[_0x477d('0x4')](_0x53637c+':'+_0x53e1b8['id'],_0x53e1b8);UserProfileEvents[_0x477d('0x4')](_0x53637c,_0x53e1b8);_0xf3cde0(null);};}for(var e in events){if(events[_0x477d('0x5')](e)){var event=events[e];UserProfile[_0x477d('0x6')](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file