6f40945500d66beb7f74ef342b71b788ec0ef93a
[motion.git] / server / api / user / user.socket.js
1 var _0xb07f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x75\x73\x65\x72\x2E\x65\x76\x65\x6E\x74\x73","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x75\x73\x65\x72\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x64\x6D\x69\x6E","\x65\x6D\x69\x74","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0xb07f[0];const UserEvents=require(_0xb07f[1]);var events=[_0xb07f[2],_0xb07f[3]];exports[_0xb07f[4]]= function(_0xe903x3){for(var _0xe903x4=0,_0xe903x5=events[_0xb07f[5]];_0xe903x4< _0xe903x5;_0xe903x4++){var _0xe903x6=events[_0xe903x4];var _0xe903x7=createListener(_0xb07f[6]+ _0xe903x6,_0xe903x3);UserEvents[_0xb07f[7]](_0xe903x6,_0xe903x7);_0xe903x3[_0xb07f[7]](_0xb07f[8],removeListener(_0xe903x6,_0xe903x7))}};function createListener(_0xe903x6,_0xe903x3){return function(_0xe903x9){if(_0xe903x9[_0xb07f[9]]=== _0xb07f[10]|| _0xe903x9[_0xb07f[9]]=== _0xb07f[11]){_0xe903x3[_0xb07f[12]](_0xe903x6,_0xe903x9)}}}function removeListener(_0xe903x6,_0xe903x7){return function(){UserEvents[_0xb07f[13]](_0xe903x6,_0xe903x7)}}