Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index b8c2a57..57de431 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4ccb=['WhatsappAccount','save','update','emit','hasOwnProperty','exports','events','../../mysqldb'];(function(_0x18fd5c,_0x452ebb){var _0x19e42e=function(_0x9f350e){while(--_0x9f350e){_0x18fd5c['push'](_0x18fd5c['shift']());}};_0x19e42e(++_0x452ebb);}(_0x4ccb,0x196));var _0xb4cc=function(_0x257a9a,_0x315dc5){_0x257a9a=_0x257a9a-0x0;var _0x56cd34=_0x4ccb[_0x257a9a];return _0x56cd34;};'use strict';var EventEmitter=require(_0xb4cc('0x0'));var WhatsappAccount=require(_0xb4cc('0x1'))['db'][_0xb4cc('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xb4cc('0x3'),'afterUpdate':_0xb4cc('0x4'),'afterDestroy':'remove'};function emitEvent(_0x2cdc0c){return function(_0x2ae5e6,_0x23c968,_0x4cad3f){WhatsappAccountEvents[_0xb4cc('0x5')](_0x2cdc0c+':'+_0x2ae5e6['id'],_0x2ae5e6);WhatsappAccountEvents[_0xb4cc('0x5')](_0x2cdc0c,_0x2ae5e6);_0x4cad3f(null);};}for(var e in events){if(events[_0xb4cc('0x6')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module[_0xb4cc('0x7')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x9857=['events','../../mysqldb','WhatsappAccount','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','exports'];(function(_0x4ae6ef,_0xc2af80){var _0x3cbb4e=function(_0x569ad5){while(--_0x569ad5){_0x4ae6ef['push'](_0x4ae6ef['shift']());}};_0x3cbb4e(++_0xc2af80);}(_0x9857,0x1c3));var _0x7985=function(_0x516fe7,_0x1365a9){_0x516fe7=_0x516fe7-0x0;var _0x1c2f56=_0x9857[_0x516fe7];return _0x1c2f56;};'use strict';var EventEmitter=require(_0x7985('0x0'));var WhatsappAccount=require(_0x7985('0x1'))['db'][_0x7985('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x7985('0x3')](0x0);var events={'afterCreate':_0x7985('0x4'),'afterUpdate':_0x7985('0x5'),'afterDestroy':_0x7985('0x6')};function emitEvent(_0x54b960){return function(_0x4aa601,_0x5c2422,_0x1c41e9){WhatsappAccountEvents[_0x7985('0x7')](_0x54b960+':'+_0x4aa601['id'],_0x4aa601);WhatsappAccountEvents[_0x7985('0x7')](_0x54b960,_0x4aa601);_0x1c41e9(null);};}for(var e in events){if(events[_0x7985('0x8')](e)){var event=events[e];WhatsappAccount[_0x7985('0x9')](e,emitEvent(event));}}module[_0x7985('0xa')]=WhatsappAccountEvents;
\ No newline at end of file