Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / api / faxAccount / faxAccount.events.js
index 1fd4c3b..a0543d6 100644 (file)
@@ -1 +1 @@
-const a187_0xb6b0=['undefined','save','../../mysqldb','FaxAccount','addHook','setMaxListeners','remove','emit'];(function(_0xf369f8,_0xb6b03a){const _0x1cfb14=function(_0x260b11){while(--_0x260b11){_0xf369f8['push'](_0xf369f8['shift']());}};_0x1cfb14(++_0xb6b03a);}(a187_0xb6b0,0x15f));const a187_0x1cfb=function(_0xf369f8,_0xb6b03a){_0xf369f8=_0xf369f8-0x0;let _0x1cfb14=a187_0xb6b0[_0xf369f8];return _0x1cfb14;};const _0x172a21=a187_0x1cfb;'use strict';const EventEmitter=require('events'),FaxAccount=require(_0x172a21('0x3'))['db'][_0x172a21('0x4')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x172a21('0x6')](0x0);const events={'afterCreate':_0x172a21('0x2'),'afterUpdate':'update','afterDestroy':_0x172a21('0x7')};function emitEvent(_0x260b11){return function(_0xdcc7cd){const _0x3297a9=a187_0x1cfb;FaxAccountEvents[_0x3297a9('0x0')](_0x260b11+':'+_0xdcc7cd['id'],_0xdcc7cd),FaxAccountEvents[_0x3297a9('0x0')](_0x260b11,_0xdcc7cd);};}for(const e in events){if(typeof events[e]!==_0x172a21('0x1')){const event=events[e];FaxAccount[_0x172a21('0x5')](e,emitEvent(event));}}module['exports']=FaxAccountEvents;
\ No newline at end of file
+const a187_0x771a=['save','update','remove','../../mysqldb','undefined','addHook','exports','events','setMaxListeners','FaxAccount','emit'];(function(_0x52e06f,_0x771ae1){const _0x5138ae=function(_0x1ee005){while(--_0x1ee005){_0x52e06f['push'](_0x52e06f['shift']());}};_0x5138ae(++_0x771ae1);}(a187_0x771a,0x6f));const a187_0x5138=function(_0x52e06f,_0x771ae1){_0x52e06f=_0x52e06f-0x0;let _0x5138ae=a187_0x771a[_0x52e06f];return _0x5138ae;};const _0x5b3807=a187_0x5138;'use strict';const EventEmitter=require(_0x5b3807('0x6')),FaxAccount=require(_0x5b3807('0x2'))['db'][_0x5b3807('0x8')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x5b3807('0x7')](0x0);const events={'afterCreate':_0x5b3807('0xa'),'afterUpdate':_0x5b3807('0x0'),'afterDestroy':_0x5b3807('0x1')};function emitEvent(_0x1ee005){return function(_0x26142e){const _0x1eb0d9=a187_0x5138;FaxAccountEvents[_0x1eb0d9('0x9')](_0x1ee005+':'+_0x26142e['id'],_0x26142e),FaxAccountEvents[_0x1eb0d9('0x9')](_0x1ee005,_0x26142e);};}for(const e in events){if(typeof events[e]!==_0x5b3807('0x3')){const event=events[e];FaxAccount[_0x5b3807('0x4')](e,emitEvent(event));}}module[_0x5b3807('0x5')]=FaxAccountEvents;
\ No newline at end of file