Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index d7b9258..3d02cd0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaf1b=['hasOwnProperty','exports','events','../../mysqldb','WhatsappAccount','setMaxListeners','save','update','remove','emit'];(function(_0x14e001,_0x569bf){var _0x2c09da=function(_0x2efab1){while(--_0x2efab1){_0x14e001['push'](_0x14e001['shift']());}};_0x2c09da(++_0x569bf);}(_0xaf1b,0x11a));var _0xbaf1=function(_0x13afd6,_0x35633d){_0x13afd6=_0x13afd6-0x0;var _0x56c3b2=_0xaf1b[_0x13afd6];return _0x56c3b2;};'use strict';var EventEmitter=require(_0xbaf1('0x0'));var WhatsappAccount=require(_0xbaf1('0x1'))['db'][_0xbaf1('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0xbaf1('0x3')](0x0);var events={'afterCreate':_0xbaf1('0x4'),'afterUpdate':_0xbaf1('0x5'),'afterDestroy':_0xbaf1('0x6')};function emitEvent(_0xdf4a1b){return function(_0x461ffb,_0x3fe8f0,_0x156a67){WhatsappAccountEvents[_0xbaf1('0x7')](_0xdf4a1b+':'+_0x461ffb['id'],_0x461ffb);WhatsappAccountEvents[_0xbaf1('0x7')](_0xdf4a1b,_0x461ffb);_0x156a67(null);};}for(var e in events){if(events[_0xbaf1('0x8')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module[_0xbaf1('0x9')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x1017=['exports','../../mysqldb','WhatsappAccount','setMaxListeners','save','update','remove','hasOwnProperty','hook'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x1017,0xc7));var _0x7101=function(_0x13deb5,_0x34d407){_0x13deb5=_0x13deb5-0x0;var _0x164ced=_0x1017[_0x13deb5];return _0x164ced;};'use strict';var EventEmitter=require('events');var WhatsappAccount=require(_0x7101('0x0'))['db'][_0x7101('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x7101('0x2')](0x0);var events={'afterCreate':_0x7101('0x3'),'afterUpdate':_0x7101('0x4'),'afterDestroy':_0x7101('0x5')};function emitEvent(_0x212227){return function(_0x5d754f,_0x5522c8,_0x155367){WhatsappAccountEvents['emit'](_0x212227+':'+_0x5d754f['id'],_0x5d754f);WhatsappAccountEvents['emit'](_0x212227,_0x5d754f);_0x155367(null);};}for(var e in events){if(events[_0x7101('0x6')](e)){var event=events[e];WhatsappAccount[_0x7101('0x7')](e,emitEvent(event));}}module[_0x7101('0x8')]=WhatsappAccountEvents;
\ No newline at end of file