Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / whatsappQueue / whatsappQueue.events.js
index 66b022c..f39ea38 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x91de=['WhatsappQueue','setMaxListeners','save','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x558128,_0x149f37){var _0x10e830=function(_0x567ea6){while(--_0x567ea6){_0x558128['push'](_0x558128['shift']());}};_0x10e830(++_0x149f37);}(_0x91de,0x18e));var _0xe91d=function(_0x56ccf3,_0x37c34b){_0x56ccf3=_0x56ccf3-0x0;var _0x24677a=_0x91de[_0x56ccf3];return _0x24677a;};'use strict';var EventEmitter=require(_0xe91d('0x0'));var WhatsappQueue=require(_0xe91d('0x1'))['db'][_0xe91d('0x2')];var WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0xe91d('0x3')](0x0);var events={'afterCreate':_0xe91d('0x4'),'afterUpdate':'update','afterDestroy':_0xe91d('0x5')};function emitEvent(_0x30c8c4){return function(_0x4bee49,_0x2f20b2,_0x56313b){WhatsappQueueEvents[_0xe91d('0x6')](_0x30c8c4+':'+_0x4bee49['id'],_0x4bee49);WhatsappQueueEvents[_0xe91d('0x6')](_0x30c8c4,_0x4bee49);_0x56313b(null);};}for(var e in events){if(events[_0xe91d('0x7')](e)){var event=events[e];WhatsappQueue[_0xe91d('0x8')](e,emitEvent(event));}}module[_0xe91d('0x9')]=WhatsappQueueEvents;
\ No newline at end of file
+var _0x4fca=['emit','hasOwnProperty','hook','../../mysqldb','WhatsappQueue','save'];(function(_0x2fa4ee,_0x3e1dea){var _0x11b8aa=function(_0x47d194){while(--_0x47d194){_0x2fa4ee['push'](_0x2fa4ee['shift']());}};_0x11b8aa(++_0x3e1dea);}(_0x4fca,0x93));var _0xa4fc=function(_0x8e78af,_0x11f4cd){_0x8e78af=_0x8e78af-0x0;var _0x314435=_0x4fca[_0x8e78af];return _0x314435;};'use strict';var EventEmitter=require('events');var WhatsappQueue=require(_0xa4fc('0x0'))['db'][_0xa4fc('0x1')];var WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xa4fc('0x2'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x24f8cb){return function(_0x223b64,_0x315ded,_0x104596){WhatsappQueueEvents[_0xa4fc('0x3')](_0x24f8cb+':'+_0x223b64['id'],_0x223b64);WhatsappQueueEvents['emit'](_0x24f8cb,_0x223b64);_0x104596(null);};}for(var e in events){if(events[_0xa4fc('0x4')](e)){var event=events[e];WhatsappQueue[_0xa4fc('0x5')](e,emitEvent(event));}}module['exports']=WhatsappQueueEvents;
\ No newline at end of file