Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / api / userProfile / userProfile.events.js
index c0ad7cc..843a990 100644 (file)
@@ -1 +1 @@
-const a668_0x373a=['save','emit','remove','exports','../../mysqldb','undefined','addHook','update','UserProfile','events'];(function(_0x95a9f2,_0x373aaa){const _0x260f5f=function(_0x7bdfcb){while(--_0x7bdfcb){_0x95a9f2['push'](_0x95a9f2['shift']());}};_0x260f5f(++_0x373aaa);}(a668_0x373a,0x1c1));const a668_0x260f=function(_0x95a9f2,_0x373aaa){_0x95a9f2=_0x95a9f2-0x0;let _0x260f5f=a668_0x373a[_0x95a9f2];return _0x260f5f;};const _0x53d44c=a668_0x260f;'use strict';const EventEmitter=require(_0x53d44c('0x0')),UserProfile=require(_0x53d44c('0x5'))['db'][_0x53d44c('0x9')],UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x53d44c('0x1'),'afterUpdate':_0x53d44c('0x8'),'afterDestroy':_0x53d44c('0x3')};function emitEvent(_0x7bdfcb){return function(_0x56e27a){const _0x15064f=a668_0x260f;UserProfileEvents[_0x15064f('0x2')](_0x7bdfcb+':'+_0x56e27a['id'],_0x56e27a),UserProfileEvents[_0x15064f('0x2')](_0x7bdfcb,_0x56e27a);};}for(const e in events){if(typeof events[e]!==_0x53d44c('0x6')){const event=events[e];UserProfile[_0x53d44c('0x7')](e,emitEvent(event));}}module[_0x53d44c('0x4')]=UserProfileEvents;
\ No newline at end of file
+const a668_0x561e=['emit','../../mysqldb','setMaxListeners','exports','save','addHook','remove','UserProfile','events','undefined'];(function(_0x58c4d9,_0x561e89){const _0x16199b=function(_0xb2c0e5){while(--_0xb2c0e5){_0x58c4d9['push'](_0x58c4d9['shift']());}};_0x16199b(++_0x561e89);}(a668_0x561e,0x146));const a668_0x1619=function(_0x58c4d9,_0x561e89){_0x58c4d9=_0x58c4d9-0x0;let _0x16199b=a668_0x561e[_0x58c4d9];return _0x16199b;};const _0x254e16=a668_0x1619;'use strict';const EventEmitter=require(_0x254e16('0x2')),UserProfile=require(_0x254e16('0x5'))['db'][_0x254e16('0x1')],UserProfileEvents=new EventEmitter();UserProfileEvents[_0x254e16('0x6')](0x0);const events={'afterCreate':_0x254e16('0x8'),'afterUpdate':'update','afterDestroy':_0x254e16('0x0')};function emitEvent(_0xb2c0e5){return function(_0x48658b){const _0x56958b=a668_0x1619;UserProfileEvents[_0x56958b('0x4')](_0xb2c0e5+':'+_0x48658b['id'],_0x48658b),UserProfileEvents['emit'](_0xb2c0e5,_0x48658b);};}for(const e in events){if(typeof events[e]!==_0x254e16('0x3')){const event=events[e];UserProfile[_0x254e16('0x9')](e,emitEvent(event));}}module[_0x254e16('0x7')]=UserProfileEvents;
\ No newline at end of file