Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index c1c3860..76a471a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc2c7=['update','remove','emit','hasOwnProperty','../../mysqldb','WhatsappAccount','setMaxListeners','save'];(function(_0x764e20,_0x5df727){var _0x346355=function(_0xa36225){while(--_0xa36225){_0x764e20['push'](_0x764e20['shift']());}};_0x346355(++_0x5df727);}(_0xc2c7,0x134));var _0x7c2c=function(_0x4d1bb9,_0xb082f4){_0x4d1bb9=_0x4d1bb9-0x0;var _0x192fda=_0xc2c7[_0x4d1bb9];return _0x192fda;};'use strict';var EventEmitter=require('events');var WhatsappAccount=require(_0x7c2c('0x0'))['db'][_0x7c2c('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x7c2c('0x2')](0x0);var events={'afterCreate':_0x7c2c('0x3'),'afterUpdate':_0x7c2c('0x4'),'afterDestroy':_0x7c2c('0x5')};function emitEvent(_0x472eae){return function(_0x116f8a,_0x4bbc14,_0x59f346){WhatsappAccountEvents[_0x7c2c('0x6')](_0x472eae+':'+_0x116f8a['id'],_0x116f8a);WhatsappAccountEvents[_0x7c2c('0x6')](_0x472eae,_0x116f8a);_0x59f346(null);};}for(var e in events){if(events[_0x7c2c('0x7')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents;
\ No newline at end of file
+var _0xc1c6=['../../mysqldb','WhatsappAccount','save','remove','emit','hasOwnProperty','exports','events'];(function(_0x3e3d3c,_0x18a556){var _0x580889=function(_0xa53e17){while(--_0xa53e17){_0x3e3d3c['push'](_0x3e3d3c['shift']());}};_0x580889(++_0x18a556);}(_0xc1c6,0xf7));var _0x6c1c=function(_0x4ba537,_0x1e9e6f){_0x4ba537=_0x4ba537-0x0;var _0x418836=_0xc1c6[_0x4ba537];return _0x418836;};'use strict';var EventEmitter=require(_0x6c1c('0x0'));var WhatsappAccount=require(_0x6c1c('0x1'))['db'][_0x6c1c('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x6c1c('0x3'),'afterUpdate':'update','afterDestroy':_0x6c1c('0x4')};function emitEvent(_0x40ff59){return function(_0x265d2c,_0x59f799,_0x56ed6f){WhatsappAccountEvents[_0x6c1c('0x5')](_0x40ff59+':'+_0x265d2c['id'],_0x265d2c);WhatsappAccountEvents['emit'](_0x40ff59,_0x265d2c);_0x56ed6f(null);};}for(var e in events){if(events[_0x6c1c('0x6')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module[_0x6c1c('0x7')]=WhatsappAccountEvents;
\ No newline at end of file