Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / faxAccount / faxAccount.events.js
index af8e80e..03d76d6 100644 (file)
@@ -1 +1 @@
-const a187_0x22d3=['emit','FaxAccount','save','update','events','remove','undefined','../../mysqldb','exports','addHook','setMaxListeners'];(function(_0x508e5b,_0x22d3b9){const _0x458c2b=function(_0x34e674){while(--_0x34e674){_0x508e5b['push'](_0x508e5b['shift']());}};_0x458c2b(++_0x22d3b9);}(a187_0x22d3,0x1ee));const a187_0x458c=function(_0x508e5b,_0x22d3b9){_0x508e5b=_0x508e5b-0x0;let _0x458c2b=a187_0x22d3[_0x508e5b];return _0x458c2b;};const _0x537b8f=a187_0x458c;'use strict';const EventEmitter=require(_0x537b8f('0x5')),FaxAccount=require(_0x537b8f('0x8'))['db'][_0x537b8f('0x2')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x537b8f('0x0')](0x0);const events={'afterCreate':_0x537b8f('0x3'),'afterUpdate':_0x537b8f('0x4'),'afterDestroy':_0x537b8f('0x6')};function emitEvent(_0x34e674){return function(_0x169ea9){const _0x45c610=a187_0x458c;FaxAccountEvents[_0x45c610('0x1')](_0x34e674+':'+_0x169ea9['id'],_0x169ea9),FaxAccountEvents[_0x45c610('0x1')](_0x34e674,_0x169ea9);};}for(const e in events){if(typeof events[e]!==_0x537b8f('0x7')){const event=events[e];FaxAccount[_0x537b8f('0xa')](e,emitEvent(event));}}module[_0x537b8f('0x9')]=FaxAccountEvents;
\ No newline at end of file
+const a187_0x2ac9=['remove','setMaxListeners','../../mysqldb','undefined','addHook','events','emit','FaxAccount'];(function(_0x4662d8,_0x2ac91b){const _0x19848c=function(_0x702622){while(--_0x702622){_0x4662d8['push'](_0x4662d8['shift']());}};_0x19848c(++_0x2ac91b);}(a187_0x2ac9,0x1e9));const a187_0x1984=function(_0x4662d8,_0x2ac91b){_0x4662d8=_0x4662d8-0x0;let _0x19848c=a187_0x2ac9[_0x4662d8];return _0x19848c;};const _0x3bce39=a187_0x1984;'use strict';const EventEmitter=require(_0x3bce39('0x4')),FaxAccount=require(_0x3bce39('0x1'))['db'][_0x3bce39('0x6')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x3bce39('0x0')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x3bce39('0x7')};function emitEvent(_0x702622){return function(_0x2f421){const _0x1eb6de=a187_0x1984;FaxAccountEvents[_0x1eb6de('0x5')](_0x702622+':'+_0x2f421['id'],_0x2f421),FaxAccountEvents[_0x1eb6de('0x5')](_0x702622,_0x2f421);};}for(const e in events){if(typeof events[e]!==_0x3bce39('0x2')){const event=events[e];FaxAccount[_0x3bce39('0x3')](e,emitEvent(event));}}module['exports']=FaxAccountEvents;
\ No newline at end of file