Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index 6fe5275..7842759 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6a55=['hasOwnProperty','hook','exports','events','save','emit'];(function(_0x581907,_0xb46e54){var _0x47cf4b=function(_0x106b68){while(--_0x106b68){_0x581907['push'](_0x581907['shift']());}};_0x47cf4b(++_0xb46e54);}(_0x6a55,0xdb));var _0x56a5=function(_0x274f14,_0x27dd7f){_0x274f14=_0x274f14-0x0;var _0x13b97e=_0x6a55[_0x274f14];return _0x13b97e;};'use strict';var EventEmitter=require(_0x56a5('0x0'));var WhatsappAccount=require('../../mysqldb')['db']['WhatsappAccount'];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x56a5('0x1'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x116199){return function(_0x5e5a32,_0x3ff76a,_0x5171fa){WhatsappAccountEvents[_0x56a5('0x2')](_0x116199+':'+_0x5e5a32['id'],_0x5e5a32);WhatsappAccountEvents[_0x56a5('0x2')](_0x116199,_0x5e5a32);_0x5171fa(null);};}for(var e in events){if(events[_0x56a5('0x3')](e)){var event=events[e];WhatsappAccount[_0x56a5('0x4')](e,emitEvent(event));}}module[_0x56a5('0x5')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x9e94=['update','remove','emit','hasOwnProperty','events','WhatsappAccount','setMaxListeners'];(function(_0xccc579,_0x3def9a){var _0x33d5ae=function(_0x43bbd6){while(--_0x43bbd6){_0xccc579['push'](_0xccc579['shift']());}};_0x33d5ae(++_0x3def9a);}(_0x9e94,0x14d));var _0x49e9=function(_0x1d6d63,_0x4e4976){_0x1d6d63=_0x1d6d63-0x0;var _0x471552=_0x9e94[_0x1d6d63];return _0x471552;};'use strict';var EventEmitter=require(_0x49e9('0x0'));var WhatsappAccount=require('../../mysqldb')['db'][_0x49e9('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x49e9('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x49e9('0x3'),'afterDestroy':_0x49e9('0x4')};function emitEvent(_0x2c9182){return function(_0x466276,_0x47a9d8,_0x3f08a1){WhatsappAccountEvents[_0x49e9('0x5')](_0x2c9182+':'+_0x466276['id'],_0x466276);WhatsappAccountEvents['emit'](_0x2c9182,_0x466276);_0x3f08a1(null);};}for(var e in events){if(events[_0x49e9('0x6')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents;
\ No newline at end of file