Built motion from commit (unavailable).|2.5.24
[motion2.git] / server / api / userProfile / userProfile.events.js
index 791b82e..5ca3ed2 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 _0xdfda=['remove','hasOwnProperty','exports','events','../../mysqldb','setMaxListeners','save','update'];(function(_0x55f549,_0x4f90ac){var _0x589a78=function(_0x4b2cc3){while(--_0x4b2cc3){_0x55f549['push'](_0x55f549['shift']());}};_0x589a78(++_0x4f90ac);}(_0xdfda,0x103));var _0xadfd=function(_0x5563bb,_0x3dd8b4){_0x5563bb=_0x5563bb-0x0;var _0x1e0cef=_0xdfda[_0x5563bb];return _0x1e0cef;};'use strict';var EventEmitter=require(_0xadfd('0x0'));var UserProfile=require(_0xadfd('0x1'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xadfd('0x2')](0x0);var events={'afterCreate':_0xadfd('0x3'),'afterUpdate':_0xadfd('0x4'),'afterDestroy':_0xadfd('0x5')};function emitEvent(_0x114afc){return function(_0xf49045,_0x3648e1,_0x2b34e7){UserProfileEvents['emit'](_0x114afc+':'+_0xf49045['id'],_0xf49045);UserProfileEvents['emit'](_0x114afc,_0xf49045);_0x2b34e7(null);};}for(var e in events){if(events[_0xadfd('0x6')](e)){var event=events[e];UserProfile['hook'](e,emitEvent(event));}}module[_0xadfd('0x7')]=UserProfileEvents;
\ No newline at end of file