Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / whatsappMessage / whatsappMessage.events.js
index 7c1a38b..1fd7337 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a54=['WhatsappMessage','save','update','emit','hasOwnProperty','exports','events','../../mysqldb'];(function(_0x9d1e8a,_0x5508f0){var _0x3b6500=function(_0x59380f){while(--_0x59380f){_0x9d1e8a['push'](_0x9d1e8a['shift']());}};_0x3b6500(++_0x5508f0);}(_0x7a54,0x106));var _0x47a5=function(_0x28af13,_0x72bc5f){_0x28af13=_0x28af13-0x0;var _0x266591=_0x7a54[_0x28af13];return _0x266591;};'use strict';var EventEmitter=require(_0x47a5('0x0'));var WhatsappMessage=require(_0x47a5('0x1'))['db'][_0x47a5('0x2')];var WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x47a5('0x3'),'afterUpdate':_0x47a5('0x4'),'afterDestroy':'remove'};function emitEvent(_0x5f7f12){return function(_0x11bf85,_0x2a1a7e,_0x3717e1){WhatsappMessageEvents[_0x47a5('0x5')](_0x5f7f12+':'+_0x11bf85['id'],_0x11bf85);WhatsappMessageEvents['emit'](_0x5f7f12,_0x11bf85);_0x3717e1(null);};}for(var e in events){if(events[_0x47a5('0x6')](e)){var event=events[e];WhatsappMessage['hook'](e,emitEvent(event));}}module[_0x47a5('0x7')]=WhatsappMessageEvents;
\ No newline at end of file
+var _0xb10b=['hasOwnProperty','hook','events','WhatsappMessage','setMaxListeners','save','remove','emit'];(function(_0x8ec365,_0x5f46e3){var _0x509b12=function(_0x1da9e9){while(--_0x1da9e9){_0x8ec365['push'](_0x8ec365['shift']());}};_0x509b12(++_0x5f46e3);}(_0xb10b,0x12a));var _0xbb10=function(_0x286354,_0x128be5){_0x286354=_0x286354-0x0;var _0x30fe4d=_0xb10b[_0x286354];return _0x30fe4d;};'use strict';var EventEmitter=require(_0xbb10('0x0'));var WhatsappMessage=require('../../mysqldb')['db'][_0xbb10('0x1')];var WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0xbb10('0x2')](0x0);var events={'afterCreate':_0xbb10('0x3'),'afterUpdate':'update','afterDestroy':_0xbb10('0x4')};function emitEvent(_0x9bbed){return function(_0x460981,_0x22320e,_0x49baf4){WhatsappMessageEvents[_0xbb10('0x5')](_0x9bbed+':'+_0x460981['id'],_0x460981);WhatsappMessageEvents['emit'](_0x9bbed,_0x460981);_0x49baf4(null);};}for(var e in events){if(events[_0xbb10('0x6')](e)){var event=events[e];WhatsappMessage[_0xbb10('0x7')](e,emitEvent(event));}}module['exports']=WhatsappMessageEvents;
\ No newline at end of file