Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / whatsappAccount / whatsappAccount.events.js
index d5b34bb..b7cf61f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x80a4=['../../mysqldb','WhatsappAccount','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','events'];(function(_0x2d71f5,_0x533a89){var _0x4568b5=function(_0x58c539){while(--_0x58c539){_0x2d71f5['push'](_0x2d71f5['shift']());}};_0x4568b5(++_0x533a89);}(_0x80a4,0x121));var _0x480a=function(_0x5fcb09,_0x5155bd){_0x5fcb09=_0x5fcb09-0x0;var _0x508f62=_0x80a4[_0x5fcb09];return _0x508f62;};'use strict';var EventEmitter=require(_0x480a('0x0'));var WhatsappAccount=require(_0x480a('0x1'))['db'][_0x480a('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x480a('0x3')](0x0);var events={'afterCreate':_0x480a('0x4'),'afterUpdate':_0x480a('0x5'),'afterDestroy':_0x480a('0x6')};function emitEvent(_0x1f3c80){return function(_0x123635,_0x13ba16,_0x14aa59){WhatsappAccountEvents[_0x480a('0x7')](_0x1f3c80+':'+_0x123635['id'],_0x123635);WhatsappAccountEvents[_0x480a('0x7')](_0x1f3c80,_0x123635);_0x14aa59(null);};}for(var e in events){if(events[_0x480a('0x8')](e)){var event=events[e];WhatsappAccount[_0x480a('0x9')](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents;
\ No newline at end of file
+var _0xcaac=['save','update','remove','emit','hasOwnProperty','events','../../mysqldb','WhatsappAccount','setMaxListeners'];(function(_0x4fbb15,_0x21be0c){var _0x436338=function(_0x3b5a05){while(--_0x3b5a05){_0x4fbb15['push'](_0x4fbb15['shift']());}};_0x436338(++_0x21be0c);}(_0xcaac,0x1a3));var _0xccaa=function(_0x429e7b,_0x5d6014){_0x429e7b=_0x429e7b-0x0;var _0xc8c707=_0xcaac[_0x429e7b];return _0xc8c707;};'use strict';var EventEmitter=require(_0xccaa('0x0'));var WhatsappAccount=require(_0xccaa('0x1'))['db'][_0xccaa('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0xccaa('0x3')](0x0);var events={'afterCreate':_0xccaa('0x4'),'afterUpdate':_0xccaa('0x5'),'afterDestroy':_0xccaa('0x6')};function emitEvent(_0x28cfb1){return function(_0x4f26cb,_0x2d9efa,_0x4d7269){WhatsappAccountEvents['emit'](_0x28cfb1+':'+_0x4f26cb['id'],_0x4f26cb);WhatsappAccountEvents[_0xccaa('0x7')](_0x28cfb1,_0x4f26cb);_0x4d7269(null);};}for(var e in events){if(events[_0xccaa('0x8')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents;
\ No newline at end of file