Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / whatsappMessage / whatsappMessage.events.js
index a2f8585..51e30a7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f2f=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','WhatsappMessage','setMaxListeners','save','update'];(function(_0x5dbbe8,_0x1252bc){var _0x119d6a=function(_0xe3f52d){while(--_0xe3f52d){_0x5dbbe8['push'](_0x5dbbe8['shift']());}};_0x119d6a(++_0x1252bc);}(_0x5f2f,0x73));var _0xf5f2=function(_0x252eb6,_0x46b986){_0x252eb6=_0x252eb6-0x0;var _0x224da7=_0x5f2f[_0x252eb6];return _0x224da7;};'use strict';var EventEmitter=require(_0xf5f2('0x0'));var WhatsappMessage=require(_0xf5f2('0x1'))['db'][_0xf5f2('0x2')];var WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0xf5f2('0x3')](0x0);var events={'afterCreate':_0xf5f2('0x4'),'afterUpdate':_0xf5f2('0x5'),'afterDestroy':_0xf5f2('0x6')};function emitEvent(_0x107cf){return function(_0x501fbd,_0x4854b6,_0x1665c7){WhatsappMessageEvents[_0xf5f2('0x7')](_0x107cf+':'+_0x501fbd['id'],_0x501fbd);WhatsappMessageEvents[_0xf5f2('0x7')](_0x107cf,_0x501fbd);_0x1665c7(null);};}for(var e in events){if(events[_0xf5f2('0x8')](e)){var event=events[e];WhatsappMessage[_0xf5f2('0x9')](e,emitEvent(event));}}module[_0xf5f2('0xa')]=WhatsappMessageEvents;
\ No newline at end of file
+var _0x9158=['save','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','WhatsappMessage'];(function(_0xea3feb,_0x29a19d){var _0x4871c2=function(_0x389204){while(--_0x389204){_0xea3feb['push'](_0xea3feb['shift']());}};_0x4871c2(++_0x29a19d);}(_0x9158,0x16e));var _0x8915=function(_0x1eb906,_0x16ffff){_0x1eb906=_0x1eb906-0x0;var _0x1cc457=_0x9158[_0x1eb906];return _0x1cc457;};'use strict';var EventEmitter=require(_0x8915('0x0'));var WhatsappMessage=require(_0x8915('0x1'))['db'][_0x8915('0x2')];var WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x8915('0x3'),'afterUpdate':'update','afterDestroy':_0x8915('0x4')};function emitEvent(_0x488b04){return function(_0x525bfe,_0x151f9c,_0x41d3aa){WhatsappMessageEvents[_0x8915('0x5')](_0x488b04+':'+_0x525bfe['id'],_0x525bfe);WhatsappMessageEvents[_0x8915('0x5')](_0x488b04,_0x525bfe);_0x41d3aa(null);};}for(var e in events){if(events[_0x8915('0x6')](e)){var event=events[e];WhatsappMessage[_0x8915('0x7')](e,emitEvent(event));}}module[_0x8915('0x8')]=WhatsappMessageEvents;
\ No newline at end of file