Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index 2f9a778..a71e1b0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6f1f=['hasOwnProperty','hook','exports','events','../../mysqldb','save','update','remove','emit'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x6f1f,0x1bc));var _0xf6f1=function(_0x21be2b,_0x3db162){_0x21be2b=_0x21be2b-0x0;var _0x10932e=_0x6f1f[_0x21be2b];return _0x10932e;};'use strict';var EventEmitter=require(_0xf6f1('0x0'));var WhatsappAccount=require(_0xf6f1('0x1'))['db']['WhatsappAccount'];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xf6f1('0x2'),'afterUpdate':_0xf6f1('0x3'),'afterDestroy':_0xf6f1('0x4')};function emitEvent(_0x77df6e){return function(_0x3842af,_0x4c7485,_0x2175ce){WhatsappAccountEvents['emit'](_0x77df6e+':'+_0x3842af['id'],_0x3842af);WhatsappAccountEvents[_0xf6f1('0x5')](_0x77df6e,_0x3842af);_0x2175ce(null);};}for(var e in events){if(events[_0xf6f1('0x6')](e)){var event=events[e];WhatsappAccount[_0xf6f1('0x7')](e,emitEvent(event));}}module[_0xf6f1('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