Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / api / whatsappAccount / whatsappAccount.events.js
index 11a2ccf..6d185af 100644 (file)
@@ -1 +1 @@
-const a784_0x419a=['remove','emit','addHook','update','../../mysqldb','undefined','setMaxListeners','save','WhatsappAccount','exports'];(function(_0x54f41e,_0x419a8f){const _0x24dab1=function(_0x2424ca){while(--_0x2424ca){_0x54f41e['push'](_0x54f41e['shift']());}};_0x24dab1(++_0x419a8f);}(a784_0x419a,0xcd));const a784_0x24da=function(_0x54f41e,_0x419a8f){_0x54f41e=_0x54f41e-0x0;let _0x24dab1=a784_0x419a[_0x54f41e];return _0x24dab1;};const _0x1b0e8a=a784_0x24da;'use strict';const EventEmitter=require('events'),WhatsappAccount=require(_0x1b0e8a('0x9'))['db'][_0x1b0e8a('0x3')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x1b0e8a('0x1')](0x0);const events={'afterCreate':_0x1b0e8a('0x2'),'afterUpdate':_0x1b0e8a('0x8'),'afterDestroy':_0x1b0e8a('0x5')};function emitEvent(_0x2424ca){return function(_0x321250){const _0x22b3a2=a784_0x24da;WhatsappAccountEvents[_0x22b3a2('0x6')](_0x2424ca+':'+_0x321250['id'],_0x321250),WhatsappAccountEvents['emit'](_0x2424ca,_0x321250);};}for(const e in events){if(typeof events[e]!==_0x1b0e8a('0x0')){const event=events[e];WhatsappAccount[_0x1b0e8a('0x7')](e,emitEvent(event));}}module[_0x1b0e8a('0x4')]=WhatsappAccountEvents;
\ No newline at end of file
+const a784_0xe7f9=['events','remove','update','exports','save','WhatsappAccount','addHook','emit','setMaxListeners'];(function(_0x45ceb0,_0xe7f953){const _0x52c227=function(_0x5c9f00){while(--_0x5c9f00){_0x45ceb0['push'](_0x45ceb0['shift']());}};_0x52c227(++_0xe7f953);}(a784_0xe7f9,0x187));const a784_0x52c2=function(_0x45ceb0,_0xe7f953){_0x45ceb0=_0x45ceb0-0x0;let _0x52c227=a784_0xe7f9[_0x45ceb0];return _0x52c227;};const _0x1911d1=a784_0x52c2;'use strict';const EventEmitter=require(_0x1911d1('0x5')),WhatsappAccount=require('../../mysqldb')['db'][_0x1911d1('0x1')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x1911d1('0x4')](0x0);const events={'afterCreate':_0x1911d1('0x0'),'afterUpdate':_0x1911d1('0x7'),'afterDestroy':_0x1911d1('0x6')};function emitEvent(_0x5c9f00){return function(_0x105c25){const _0x25a5e5=a784_0x52c2;WhatsappAccountEvents[_0x25a5e5('0x3')](_0x5c9f00+':'+_0x105c25['id'],_0x105c25),WhatsappAccountEvents[_0x25a5e5('0x3')](_0x5c9f00,_0x105c25);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappAccount[_0x1911d1('0x2')](e,emitEvent(event));}}module[_0x1911d1('0x8')]=WhatsappAccountEvents;
\ No newline at end of file