Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / userProfile / userProfile.events.js
index 7e709c6..9c8e818 100644 (file)
@@ -1 +1 @@
-const a800_0x1f5a=['../../mysqldb','exports','UserProfile','update','addHook','events','remove','setMaxListeners','save','emit'];(function(_0x464035,_0x49eb2c){const _0x1f5a02=function(_0xe9f8b8){while(--_0xe9f8b8){_0x464035['push'](_0x464035['shift']());}};_0x1f5a02(++_0x49eb2c);}(a800_0x1f5a,0x90));const a800_0xe9f8=function(_0x464035,_0x49eb2c){_0x464035=_0x464035-0x145;let _0x1f5a02=a800_0x1f5a[_0x464035];return _0x1f5a02;};const a800_0x4bbb75=a800_0xe9f8;'use strict';const EventEmitter=require(a800_0x4bbb75(0x146)),UserProfile=require(a800_0x4bbb75(0x14b))['db'][a800_0x4bbb75(0x14d)],UserProfileEvents=new EventEmitter();UserProfileEvents[a800_0x4bbb75(0x148)](0x0);const events={'afterCreate':a800_0x4bbb75(0x149),'afterUpdate':a800_0x4bbb75(0x14e),'afterDestroy':a800_0x4bbb75(0x147)};function emitEvent(_0x41c2d9){return function(_0x22acce){const _0x278e6=a800_0xe9f8;UserProfileEvents[_0x278e6(0x14a)](_0x41c2d9+':'+_0x22acce['id'],_0x22acce),UserProfileEvents['emit'](_0x41c2d9,_0x22acce);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];UserProfile[a800_0x4bbb75(0x145)](e,emitEvent(event));}}module[a800_0x4bbb75(0x14c)]=UserProfileEvents;
\ No newline at end of file
+const a800_0x1b37=['addHook','remove','events','UserProfile','emit','update','setMaxListeners','../../mysqldb','exports','undefined'];(function(_0x37742d,_0x1b55fb){const _0x1b37c7=function(_0x3cb95f){while(--_0x3cb95f){_0x37742d['push'](_0x37742d['shift']());}};_0x1b37c7(++_0x1b55fb);}(a800_0x1b37,0x1df));const a800_0x3cb9=function(_0x37742d,_0x1b55fb){_0x37742d=_0x37742d-0x15a;let _0x1b37c7=a800_0x1b37[_0x37742d];return _0x1b37c7;};const a800_0x2a5839=a800_0x3cb9;'use strict';const EventEmitter=require(a800_0x2a5839(0x15d)),UserProfile=require(a800_0x2a5839(0x162))['db'][a800_0x2a5839(0x15e)],UserProfileEvents=new EventEmitter();UserProfileEvents[a800_0x2a5839(0x161)](0x0);const events={'afterCreate':'save','afterUpdate':a800_0x2a5839(0x160),'afterDestroy':a800_0x2a5839(0x15c)};function emitEvent(_0x4559dc){return function(_0x495b8c){const _0x4d30c0=a800_0x3cb9;UserProfileEvents[_0x4d30c0(0x15f)](_0x4559dc+':'+_0x495b8c['id'],_0x495b8c),UserProfileEvents[_0x4d30c0(0x15f)](_0x4559dc,_0x495b8c);};}for(const e in events){if(typeof events[e]!==a800_0x2a5839(0x15a)){const event=events[e];UserProfile[a800_0x2a5839(0x15b)](e,emitEvent(event));}}module[a800_0x2a5839(0x163)]=UserProfileEvents;
\ No newline at end of file