Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / userProfile / userProfile.events.js
index 791b82e..8f52d2a 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 _0x4ccc=['setMaxListeners','update','remove','emit','hasOwnProperty','../../mysqldb'];(function(_0x35da42,_0x5c2610){var _0x370035=function(_0x546db5){while(--_0x546db5){_0x35da42['push'](_0x35da42['shift']());}};_0x370035(++_0x5c2610);}(_0x4ccc,0x19d));var _0xc4cc=function(_0x458ecc,_0x51d25){_0x458ecc=_0x458ecc-0x0;var _0x2dab38=_0x4ccc[_0x458ecc];return _0x2dab38;};'use strict';var EventEmitter=require('events');var UserProfile=require(_0xc4cc('0x0'))['db']['UserProfile'];var UserProfileEvents=new EventEmitter();UserProfileEvents[_0xc4cc('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':_0xc4cc('0x2'),'afterDestroy':_0xc4cc('0x3')};function emitEvent(_0xa4f570){return function(_0x2ab575,_0x17d567,_0x118719){UserProfileEvents[_0xc4cc('0x4')](_0xa4f570+':'+_0x2ab575['id'],_0x2ab575);UserProfileEvents[_0xc4cc('0x4')](_0xa4f570,_0x2ab575);_0x118719(null);};}for(var e in events){if(events[_0xc4cc('0x5')](e)){var event=events[e];UserProfile['hook'](e,emitEvent(event));}}module['exports']=UserProfileEvents;
\ No newline at end of file