Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index c44dc34..00dc7a6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf644=['update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','WhatsappAccount','setMaxListeners'];(function(_0x137aec,_0xe3f723){var _0x45f44a=function(_0x24c266){while(--_0x24c266){_0x137aec['push'](_0x137aec['shift']());}};_0x45f44a(++_0xe3f723);}(_0xf644,0x6a));var _0x4f64=function(_0x2c7a9e,_0x263361){_0x2c7a9e=_0x2c7a9e-0x0;var _0x5c1844=_0xf644[_0x2c7a9e];return _0x5c1844;};'use strict';var EventEmitter=require(_0x4f64('0x0'));var WhatsappAccount=require(_0x4f64('0x1'))['db'][_0x4f64('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x4f64('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x4f64('0x4'),'afterDestroy':_0x4f64('0x5')};function emitEvent(_0x1ba473){return function(_0x5acf10,_0x1600d7,_0x2286f3){WhatsappAccountEvents[_0x4f64('0x6')](_0x1ba473+':'+_0x5acf10['id'],_0x5acf10);WhatsappAccountEvents[_0x4f64('0x6')](_0x1ba473,_0x5acf10);_0x2286f3(null);};}for(var e in events){if(events[_0x4f64('0x7')](e)){var event=events[e];WhatsappAccount[_0x4f64('0x8')](e,emitEvent(event));}}module[_0x4f64('0x9')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x48d5=['save','update','remove','emit','hook','exports','events','../../mysqldb','WhatsappAccount','setMaxListeners'];(function(_0x30faee,_0x1c3794){var _0x3a90ab=function(_0x11129b){while(--_0x11129b){_0x30faee['push'](_0x30faee['shift']());}};_0x3a90ab(++_0x1c3794);}(_0x48d5,0xec));var _0x548d=function(_0x3f48e0,_0x453a44){_0x3f48e0=_0x3f48e0-0x0;var _0x2333e1=_0x48d5[_0x3f48e0];return _0x2333e1;};'use strict';var EventEmitter=require(_0x548d('0x0'));var WhatsappAccount=require(_0x548d('0x1'))['db'][_0x548d('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x548d('0x3')](0x0);var events={'afterCreate':_0x548d('0x4'),'afterUpdate':_0x548d('0x5'),'afterDestroy':_0x548d('0x6')};function emitEvent(_0x555b96){return function(_0x3adfa1,_0x1ac9cc,_0x4733b7){WhatsappAccountEvents[_0x548d('0x7')](_0x555b96+':'+_0x3adfa1['id'],_0x3adfa1);WhatsappAccountEvents['emit'](_0x555b96,_0x3adfa1);_0x4733b7(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];WhatsappAccount[_0x548d('0x8')](e,emitEvent(event));}}module[_0x548d('0x9')]=WhatsappAccountEvents;
\ No newline at end of file