Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index 5578212..f0d8a60 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x685c=['../../mysqldb','WhatsappAccount','save','update','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x44d32f,_0x50898d){var _0x1fa392=function(_0x22b51e){while(--_0x22b51e){_0x44d32f['push'](_0x44d32f['shift']());}};_0x1fa392(++_0x50898d);}(_0x685c,0x17b));var _0xc685=function(_0x4611e7,_0x3fb3bb){_0x4611e7=_0x4611e7-0x0;var _0x3e3a22=_0x685c[_0x4611e7];return _0x3e3a22;};'use strict';var EventEmitter=require(_0xc685('0x0'));var WhatsappAccount=require(_0xc685('0x1'))['db'][_0xc685('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xc685('0x3'),'afterUpdate':_0xc685('0x4'),'afterDestroy':_0xc685('0x5')};function emitEvent(_0x3fd975){return function(_0x51226f,_0x454072,_0x3d8f95){WhatsappAccountEvents[_0xc685('0x6')](_0x3fd975+':'+_0x51226f['id'],_0x51226f);WhatsappAccountEvents[_0xc685('0x6')](_0x3fd975,_0x51226f);_0x3d8f95(null);};}for(var e in events){if(events[_0xc685('0x7')](e)){var event=events[e];WhatsappAccount[_0xc685('0x8')](e,emitEvent(event));}}module[_0xc685('0x9')]=WhatsappAccountEvents;
\ No newline at end of file
+var _0x6b62=['update','remove','emit','hasOwnProperty','hook','exports','../../mysqldb','WhatsappAccount','save'];(function(_0x5ea8fb,_0xc46f1c){var _0xc97803=function(_0x394c3e){while(--_0x394c3e){_0x5ea8fb['push'](_0x5ea8fb['shift']());}};_0xc97803(++_0xc46f1c);}(_0x6b62,0xf0));var _0x26b6=function(_0x452814,_0x2c4a23){_0x452814=_0x452814-0x0;var _0x335f41=_0x6b62[_0x452814];return _0x335f41;};'use strict';var EventEmitter=require('events');var WhatsappAccount=require(_0x26b6('0x0'))['db'][_0x26b6('0x1')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x26b6('0x2'),'afterUpdate':_0x26b6('0x3'),'afterDestroy':_0x26b6('0x4')};function emitEvent(_0x1c8838){return function(_0x21db5a,_0x115c64,_0x3bdac8){WhatsappAccountEvents[_0x26b6('0x5')](_0x1c8838+':'+_0x21db5a['id'],_0x21db5a);WhatsappAccountEvents[_0x26b6('0x5')](_0x1c8838,_0x21db5a);_0x3bdac8(null);};}for(var e in events){if(events[_0x26b6('0x6')](e)){var event=events[e];WhatsappAccount[_0x26b6('0x7')](e,emitEvent(event));}}module[_0x26b6('0x8')]=WhatsappAccountEvents;
\ No newline at end of file