Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index d9e91ad..00dc7a6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd481=['remove','emit','hook','exports','events','WhatsappAccount','setMaxListeners','update'];(function(_0x5c6994,_0x19ad9a){var _0x1d5c84=function(_0x4a385a){while(--_0x4a385a){_0x5c6994['push'](_0x5c6994['shift']());}};_0x1d5c84(++_0x19ad9a);}(_0xd481,0x1e4));var _0x1d48=function(_0x386345,_0x52d84f){_0x386345=_0x386345-0x0;var _0x462ab1=_0xd481[_0x386345];return _0x462ab1;};'use strict';var EventEmitter=require(_0x1d48('0x0'));var WhatsappAccount=require('../../mysqldb')['db'][_0x1d48('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x1d48('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x1d48('0x3'),'afterDestroy':_0x1d48('0x4')};function emitEvent(_0x1bce72){return function(_0x59c90f,_0x35864e,_0x5aa42e){WhatsappAccountEvents[_0x1d48('0x5')](_0x1bce72+':'+_0x59c90f['id'],_0x59c90f);WhatsappAccountEvents[_0x1d48('0x5')](_0x1bce72,_0x59c90f);_0x5aa42e(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];WhatsappAccount[_0x1d48('0x6')](e,emitEvent(event));}}module[_0x1d48('0x7')]=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