Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / userProfile / userProfile.events.js
index 791b82e..ac31b5c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa681=['hook','exports','events','../../mysqldb','save','update','remove','emit','hasOwnProperty'];(function(_0x52067d,_0x25ba55){var _0x278376=function(_0x5c6bd9){while(--_0x5c6bd9){_0x52067d['push'](_0x52067d['shift']());}};_0x278376(++_0x25ba55);}(_0xa681,0x1b2));var _0x1a68=function(_0x5d3b04,_0x452f3a){_0x5d3b04=_0x5d3b04-0x0;var _0x1910c9=_0xa681[_0x5d3b04];return _0x1910c9;};'use strict';var EventEmitter=require(_0x1a68('0x0'));var UserProfile=require(_0x1a68('0x1'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x1a68('0x2'),'afterUpdate':_0x1a68('0x3'),'afterDestroy':_0x1a68('0x4')};function emitEvent(_0x2abd1a){return function(_0x2bc35c,_0x24b0a7,_0x4739c1){UserProfileEvents[_0x1a68('0x5')](_0x2abd1a+':'+_0x2bc35c['id'],_0x2bc35c);UserProfileEvents[_0x1a68('0x5')](_0x2abd1a,_0x2bc35c);_0x4739c1(null);};}for(var e in events){if(events[_0x1a68('0x6')](e)){var event=events[e];UserProfile[_0x1a68('0x7')](e,emitEvent(event));}}module[_0x1a68('0x8')]=UserProfileEvents;
\ No newline at end of file
+var _0x202a=['update','hasOwnProperty','../../mysqldb','UserProfile','setMaxListeners'];(function(_0x1cc8fe,_0x105328){var _0x230054=function(_0x1a1b56){while(--_0x1a1b56){_0x1cc8fe['push'](_0x1cc8fe['shift']());}};_0x230054(++_0x105328);}(_0x202a,0xc0));var _0xa202=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x202a[_0x321bb2];return _0x9c12ed;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xa202('0x0'))['db'][_0xa202('0x1')];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xa202('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xa202('0x3'),'afterDestroy':'remove'};function emitEvent(_0x4878f5){return function(_0x595945,_0x32f8b7,_0x1ce932){UserProfileEvents['emit'](_0x4878f5+':'+_0x595945['id'],_0x595945);UserProfileEvents['emit'](_0x4878f5,_0x595945);_0x1ce932(null);};}for(var e in events){if(events[_0xa202('0x4')](e)){var event=events[e];UserProfile['hook'](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file