Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index 259f0c0..a71e1b0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1115=['save','update','remove','emit','hasOwnProperty','exports','../../mysqldb','WhatsappAccount','setMaxListeners'];(function(_0x58c390,_0x4bebca){var _0x2d8c92=function(_0x1a517d){while(--_0x1a517d){_0x58c390['push'](_0x58c390['shift']());}};_0x2d8c92(++_0x4bebca);}(_0x1115,0x1b6));var _0x5111=function(_0xd6fd00,_0x4f36be){_0xd6fd00=_0xd6fd00-0x0;var _0x5d7fdf=_0x1115[_0xd6fd00];return _0x5d7fdf;};'use strict';var EventEmitter=require('events');var WhatsappAccount=require(_0x5111('0x0'))['db'][_0x5111('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x5111('0x2')](0x0);var events={'afterCreate':_0x5111('0x3'),'afterUpdate':_0x5111('0x4'),'afterDestroy':_0x5111('0x5')};function emitEvent(_0x301d43){return function(_0x2cd14a,_0xe7b51f,_0x4b0f15){WhatsappAccountEvents['emit'](_0x301d43+':'+_0x2cd14a['id'],_0x2cd14a);WhatsappAccountEvents[_0x5111('0x6')](_0x301d43,_0x2cd14a);_0x4b0f15(null);};}for(var e in events){if(events[_0x5111('0x7')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module[_0x5111('0x8')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x1dfb=['hasOwnProperty','hook','events','../../mysqldb','WhatsappAccount','save','update','emit'];(function(_0xa4928c,_0x16b89c){var _0x27cc29=function(_0x14b819){while(--_0x14b819){_0xa4928c['push'](_0xa4928c['shift']());}};_0x27cc29(++_0x16b89c);}(_0x1dfb,0xb2));var _0xb1df=function(_0x570f7b,_0x2c090d){_0x570f7b=_0x570f7b-0x0;var _0x381766=_0x1dfb[_0x570f7b];return _0x381766;};'use strict';var EventEmitter=require(_0xb1df('0x0'));var WhatsappAccount=require(_0xb1df('0x1'))['db'][_0xb1df('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xb1df('0x3'),'afterUpdate':_0xb1df('0x4'),'afterDestroy':'remove'};function emitEvent(_0x324624){return function(_0x42b996,_0x40dd75,_0x438e16){WhatsappAccountEvents[_0xb1df('0x5')](_0x324624+':'+_0x42b996['id'],_0x42b996);WhatsappAccountEvents[_0xb1df('0x5')](_0x324624,_0x42b996);_0x438e16(null);};}for(var e in events){if(events[_0xb1df('0x6')](e)){var event=events[e];WhatsappAccount[_0xb1df('0x7')](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents;
\ No newline at end of file