Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index e6717b4..9727dd5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8ace=['remove','emit','hasOwnProperty','exports','events','../../mysqldb','WhatsappAccount','setMaxListeners','save','update'];(function(_0xd8ed88,_0x98b06d){var _0x37833c=function(_0xc784e1){while(--_0xc784e1){_0xd8ed88['push'](_0xd8ed88['shift']());}};_0x37833c(++_0x98b06d);}(_0x8ace,0x1bc));var _0xe8ac=function(_0x32e2f6,_0x11e862){_0x32e2f6=_0x32e2f6-0x0;var _0x109fa7=_0x8ace[_0x32e2f6];return _0x109fa7;};'use strict';var EventEmitter=require(_0xe8ac('0x0'));var WhatsappAccount=require(_0xe8ac('0x1'))['db'][_0xe8ac('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0xe8ac('0x3')](0x0);var events={'afterCreate':_0xe8ac('0x4'),'afterUpdate':_0xe8ac('0x5'),'afterDestroy':_0xe8ac('0x6')};function emitEvent(_0x274d7d){return function(_0x114351,_0xf6af00,_0x199794){WhatsappAccountEvents[_0xe8ac('0x7')](_0x274d7d+':'+_0x114351['id'],_0x114351);WhatsappAccountEvents[_0xe8ac('0x7')](_0x274d7d,_0x114351);_0x199794(null);};}for(var e in events){if(events[_0xe8ac('0x8')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module[_0xe8ac('0x9')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x7880=['../../mysqldb','WhatsappAccount','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports'];(function(_0x36e3ab,_0x5af3a1){var _0x178894=function(_0x531b6d){while(--_0x531b6d){_0x36e3ab['push'](_0x36e3ab['shift']());}};_0x178894(++_0x5af3a1);}(_0x7880,0x1f4));var _0x0788=function(_0x4454e7,_0x2e916a){_0x4454e7=_0x4454e7-0x0;var _0x4c2a56=_0x7880[_0x4454e7];return _0x4c2a56;};'use strict';var EventEmitter=require('events');var WhatsappAccount=require(_0x0788('0x0'))['db'][_0x0788('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x0788('0x2')](0x0);var events={'afterCreate':_0x0788('0x3'),'afterUpdate':_0x0788('0x4'),'afterDestroy':_0x0788('0x5')};function emitEvent(_0x5c29f7){return function(_0x3925a6,_0x1e0814,_0x317885){WhatsappAccountEvents[_0x0788('0x6')](_0x5c29f7+':'+_0x3925a6['id'],_0x3925a6);WhatsappAccountEvents[_0x0788('0x6')](_0x5c29f7,_0x3925a6);_0x317885(null);};}for(var e in events){if(events[_0x0788('0x7')](e)){var event=events[e];WhatsappAccount[_0x0788('0x8')](e,emitEvent(event));}}module[_0x0788('0x9')]=WhatsappAccountEvents;
\ No newline at end of file