Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / api / plugin / plugin.events.js
index d5ef462..2ac1ed8 100644 (file)
@@ -1 +1 @@
-const a619_0x537b=['save','addHook','setMaxListeners','Plugin','undefined','exports','emit'];(function(_0x345e14,_0xf6dbd){const _0x537b2f=function(_0x5f3acf){while(--_0x5f3acf){_0x345e14['push'](_0x345e14['shift']());}};_0x537b2f(++_0xf6dbd);}(a619_0x537b,0xd2));const a619_0x5f3a=function(_0x345e14,_0xf6dbd){_0x345e14=_0x345e14-0x18f;let _0x537b2f=a619_0x537b[_0x345e14];return _0x537b2f;};const a619_0x3f9c82=a619_0x5f3a;'use strict';const EventEmitter=require('events'),Plugin=require('../../mysqldb')['db'][a619_0x3f9c82(0x192)],PluginEvents=new EventEmitter();PluginEvents[a619_0x3f9c82(0x191)](0x0);const events={'afterCreate':a619_0x3f9c82(0x18f),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1861d4){return function(_0x3348ec){const _0x598b08=a619_0x5f3a;PluginEvents['emit'](_0x1861d4+':'+_0x3348ec['id'],_0x3348ec),PluginEvents[_0x598b08(0x195)](_0x1861d4,_0x3348ec);};}for(const e in events){if(typeof events[e]!==a619_0x3f9c82(0x193)){const event=events[e];Plugin[a619_0x3f9c82(0x190)](e,emitEvent(event));}}module[a619_0x3f9c82(0x194)]=PluginEvents;
\ No newline at end of file
+const a619_0x5759=['save','events','emit','setMaxListeners','exports','addHook','../../mysqldb','undefined'];(function(_0x411969,_0x1ab95b){const _0x57596c=function(_0x2d5cf6){while(--_0x2d5cf6){_0x411969['push'](_0x411969['shift']());}};_0x57596c(++_0x1ab95b);}(a619_0x5759,0xf0));const a619_0x2d5c=function(_0x411969,_0x1ab95b){_0x411969=_0x411969-0x1ee;let _0x57596c=a619_0x5759[_0x411969];return _0x57596c;};const a619_0x55b0c0=a619_0x2d5c;'use strict';const EventEmitter=require(a619_0x55b0c0(0x1ef)),Plugin=require(a619_0x55b0c0(0x1f4))['db']['Plugin'],PluginEvents=new EventEmitter();PluginEvents[a619_0x55b0c0(0x1f1)](0x0);const events={'afterCreate':a619_0x55b0c0(0x1ee),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x30f0a5){return function(_0x14788c){const _0x34aa65=a619_0x2d5c;PluginEvents['emit'](_0x30f0a5+':'+_0x14788c['id'],_0x14788c),PluginEvents[_0x34aa65(0x1f0)](_0x30f0a5,_0x14788c);};}for(const e in events){if(typeof events[e]!==a619_0x55b0c0(0x1f5)){const event=events[e];Plugin[a619_0x55b0c0(0x1f3)](e,emitEvent(event));}}module[a619_0x55b0c0(0x1f2)]=PluginEvents;
\ No newline at end of file