Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index b8c2a57..0396584 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 _0x7d74=['save','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x10764e,_0x41c460){var _0x3948cf=function(_0x4d4de7){while(--_0x4d4de7){_0x10764e['push'](_0x10764e['shift']());}};_0x3948cf(++_0x41c460);}(_0x7d74,0x84));var _0x47d7=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0x7d74[_0x21a9d9];return _0x46adce;};'use strict';var EventEmitter=require(_0x47d7('0x0'));var WhatsappAccount=require('../../mysqldb')['db']['WhatsappAccount'];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x47d7('0x1'),'afterUpdate':'update','afterDestroy':_0x47d7('0x2')};function emitEvent(_0x58d08e){return function(_0x22eeed,_0x4b4751,_0x197df){WhatsappAccountEvents[_0x47d7('0x3')](_0x58d08e+':'+_0x22eeed['id'],_0x22eeed);WhatsappAccountEvents[_0x47d7('0x3')](_0x58d08e,_0x22eeed);_0x197df(null);};}for(var e in events){if(events[_0x47d7('0x4')](e)){var event=events[e];WhatsappAccount[_0x47d7('0x5')](e,emitEvent(event));}}module[_0x47d7('0x6')]=WhatsappAccountEvents;
\ No newline at end of file