Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / api / openchannelInteraction / openchannelInteraction.events.js
index 4a7c595..9bd0804 100644 (file)
@@ -1 +1 @@
-'use strict';const a578_0x4fe3=['97mOAoLO','map','567137mcwISz','1541108DGTKnN','addHook','@mysqldb','211647unnVJc','update','625898OuRjiq','1102RWpcDi','OpenchannelInteraction','length','Users','events','7HuOlFh','68017MpZixD','unreadMessages','remove','setDataValue','save','197530MmdXJb','4ygINbm','findAll','then','OpenchannelMessage','setMaxListeners','emit','undefined'];const a578_0x15be=function(_0x4a635d,_0x2b1ee5){_0x4a635d=_0x4a635d-0x149;let _0x4fe3cd=a578_0x4fe3[_0x4a635d];return _0x4fe3cd;};const a578_0x25052d=a578_0x15be;(function(_0x324877,_0x2aa155){const _0x2b7db0=a578_0x15be;while(!![]){try{const _0x57d2aa=parseInt(_0x2b7db0(0x151))*-parseInt(_0x2b7db0(0x152))+parseInt(_0x2b7db0(0x14b))+parseInt(_0x2b7db0(0x149))+-parseInt(_0x2b7db0(0x157))*parseInt(_0x2b7db0(0x158))+-parseInt(_0x2b7db0(0x15f))*-parseInt(_0x2b7db0(0x14c))+-parseInt(_0x2b7db0(0x161))+parseInt(_0x2b7db0(0x162));if(_0x57d2aa===_0x2aa155)break;else _0x324877['push'](_0x324877['shift']());}catch(_0x4f7794){_0x324877['push'](_0x324877['shift']());}}}(a578_0x4fe3,0x9f38b));const EventEmitter=require(a578_0x25052d(0x150)),OpenchannelInteraction=require(a578_0x25052d(0x164))['db'][a578_0x25052d(0x14d)],OpenchannelMessage=require(a578_0x25052d(0x164))['db'][a578_0x25052d(0x15b)],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[a578_0x25052d(0x15c)](0x0);const events={'afterCreate':a578_0x25052d(0x156),'afterUpdate':a578_0x25052d(0x14a),'afterDestroy':a578_0x25052d(0x154)};function emitEvent(_0x2a53a0){return function(_0x356955){const _0x23e588=a578_0x15be;_0x356955['getUsers']({'attributes':['id'],'raw':!![]})[_0x23e588(0x15a)](function(_0x1f0b44){const _0x321b1=_0x23e588;return _0x356955['setDataValue'](_0x321b1(0x14f),_0x1f0b44[_0x321b1(0x160)](function(_0x90d744){return{'id':_0x90d744['id']};})),OpenchannelMessage[_0x321b1(0x159)]({'where':{'OpenchannelInteractionId':_0x356955['id'],'direction':'in','read':![]},'raw':!![]});})[_0x23e588(0x15a)](function(_0x1e8945){const _0xca0dd2=_0x23e588;_0x356955[_0xca0dd2(0x155)](_0xca0dd2(0x153),_0x1e8945[_0xca0dd2(0x14e)]),OpenchannelInteractionEvents[_0xca0dd2(0x15d)](_0x2a53a0+':'+_0x356955['id'],_0x356955),OpenchannelInteractionEvents[_0xca0dd2(0x15d)](_0x2a53a0,_0x356955);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==a578_0x25052d(0x15e)){const event=events[e];OpenchannelInteraction[a578_0x25052d(0x163)](e,emitEvent(event));}}module['exports']=OpenchannelInteractionEvents;
\ No newline at end of file
+'use strict';const a570_0x17f9=['733uPhPMQ','Users','emit','OpenchannelInteraction','findAll','getUsers','catch','save','events','5SntyCa','unreadMessages','433395rEhqgh','72883vELSbY','@mysqldb','then','179935bHIXbv','undefined','remove','406czdRiX','setDataValue','285567uFsNsZ','655121FwRPyH','addHook','update','1029qSVnIa','OpenchannelMessage','length','491iMhhNL'];const a570_0xe24b=function(_0x32b773,_0x54d75b){_0x32b773=_0x32b773-0x87;let _0x17f912=a570_0x17f9[_0x32b773];return _0x17f912;};const a570_0x5a8706=a570_0xe24b;(function(_0x1e212c,_0x3ebced){const _0x21a721=a570_0xe24b;while(!![]){try{const _0x47dca1=-parseInt(_0x21a721(0x8c))+-parseInt(_0x21a721(0x9f))+parseInt(_0x21a721(0x93))*parseInt(_0x21a721(0x90))+parseInt(_0x21a721(0x8d))+parseInt(_0x21a721(0x8a))*-parseInt(_0x21a721(0x94))+-parseInt(_0x21a721(0xa0))*-parseInt(_0x21a721(0x9d))+-parseInt(_0x21a721(0x87));if(_0x47dca1===_0x3ebced)break;else _0x1e212c['push'](_0x1e212c['shift']());}catch(_0x11d747){_0x1e212c['push'](_0x1e212c['shift']());}}}(a570_0x17f9,0x50258));const EventEmitter=require(a570_0x5a8706(0x9c)),OpenchannelInteraction=require('@mysqldb')['db'][a570_0x5a8706(0x97)],OpenchannelMessage=require(a570_0x5a8706(0xa1))['db'][a570_0x5a8706(0x91)],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':a570_0x5a8706(0x9b),'afterUpdate':a570_0x5a8706(0x8f),'afterDestroy':a570_0x5a8706(0x89)};function emitEvent(_0x4ac12c){return function(_0x26ef91){const _0x3b6e7b=a570_0xe24b;_0x26ef91[_0x3b6e7b(0x99)]({'attributes':['id'],'raw':!![]})[_0x3b6e7b(0xa2)](function(_0x8213e5){const _0x359858=_0x3b6e7b;return _0x26ef91[_0x359858(0x8b)](_0x359858(0x95),_0x8213e5['map'](function(_0x29be43){return{'id':_0x29be43['id']};})),OpenchannelMessage[_0x359858(0x98)]({'where':{'OpenchannelInteractionId':_0x26ef91['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3b6e7b(0xa2)](function(_0x4efae8){const _0x28772e=_0x3b6e7b;_0x26ef91['setDataValue'](_0x28772e(0x9e),_0x4efae8[_0x28772e(0x92)]),OpenchannelInteractionEvents[_0x28772e(0x96)](_0x4ac12c+':'+_0x26ef91['id'],_0x26ef91),OpenchannelInteractionEvents['emit'](_0x4ac12c,_0x26ef91);})[_0x3b6e7b(0x9a)](()=>{});};}for(const e in events){if(typeof events[e]!==a570_0x5a8706(0x88)){const event=events[e];OpenchannelInteraction[a570_0x5a8706(0x8e)](e,emitEvent(event));}}module['exports']=OpenchannelInteractionEvents;
\ No newline at end of file