X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FwhatsappAccount%2FwhatsappAccount.events.js;h=cf0918fb77921ed27dbd53dd9f7f4754b057f72a;hb=784ff39bf52a5b7c5ee0b7b10d0e51f0257b5940;hp=3648f449c9ed10e3868cd10298244f63466c9428;hpb=17b36376d3b7411763084143a03a7c6d2fc5e7b1;p=motion2.git diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index 3648f44..cf0918f 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x6ec2=['events','../../mysqldb','WhatsappAccount','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x481aa2,_0x22c438){var _0xdc93e2=function(_0x202744){while(--_0x202744){_0x481aa2['push'](_0x481aa2['shift']());}};_0xdc93e2(++_0x22c438);}(_0x6ec2,0x78));var _0x26ec=function(_0x131c4b,_0x5dff4c){_0x131c4b=_0x131c4b-0x0;var _0x28eac7=_0x6ec2[_0x131c4b];return _0x28eac7;};'use strict';var EventEmitter=require(_0x26ec('0x0'));var WhatsappAccount=require(_0x26ec('0x1'))['db'][_0x26ec('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x26ec('0x3')](0x0);var events={'afterCreate':_0x26ec('0x4'),'afterUpdate':_0x26ec('0x5'),'afterDestroy':'remove'};function emitEvent(_0x336098){return function(_0x18650a,_0x2b4225,_0x13f29c){WhatsappAccountEvents[_0x26ec('0x6')](_0x336098+':'+_0x18650a['id'],_0x18650a);WhatsappAccountEvents['emit'](_0x336098,_0x18650a);_0x13f29c(null);};}for(var e in events){if(events[_0x26ec('0x7')](e)){var event=events[e];WhatsappAccount['hook'](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents; \ No newline at end of file +var _0xd9eb=['hook','exports','events','../../mysqldb','WhatsappAccount','setMaxListeners','save','update','remove','emit'];(function(_0x50fc0d,_0x3b1a65){var _0x41f08d=function(_0x10934b){while(--_0x10934b){_0x50fc0d['push'](_0x50fc0d['shift']());}};_0x41f08d(++_0x3b1a65);}(_0xd9eb,0xca));var _0xbd9e=function(_0x26660c,_0xa474ef){_0x26660c=_0x26660c-0x0;var _0x21fb98=_0xd9eb[_0x26660c];return _0x21fb98;};'use strict';var EventEmitter=require(_0xbd9e('0x0'));var WhatsappAccount=require(_0xbd9e('0x1'))['db'][_0xbd9e('0x2')];var WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0xbd9e('0x3')](0x0);var events={'afterCreate':_0xbd9e('0x4'),'afterUpdate':_0xbd9e('0x5'),'afterDestroy':_0xbd9e('0x6')};function emitEvent(_0x8d4b08){return function(_0x2b6174,_0x1df81b,_0x365865){WhatsappAccountEvents[_0xbd9e('0x7')](_0x8d4b08+':'+_0x2b6174['id'],_0x2b6174);WhatsappAccountEvents[_0xbd9e('0x7')](_0x8d4b08,_0x2b6174);_0x365865(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];WhatsappAccount[_0xbd9e('0x8')](e,emitEvent(event));}}module[_0xbd9e('0x9')]=WhatsappAccountEvents; \ No newline at end of file