Built motion from commit 503e72f.|0.0.143
[motion.git] / server / api / sound / sound.socket.js
1 var _0x828a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x73\x6F\x75\x6E\x64\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","\x73\x6F\x75\x6E\x64\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x65\x6D\x69\x74","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0x828a[0];const SoundEvents=require(_0x828a[1]);var events=[_0x828a[2],_0x828a[3]];exports[_0x828a[4]]= function(_0xa089x3){for(var _0xa089x4=0,_0xa089x5=events[_0x828a[5]];_0xa089x4< _0xa089x5;_0xa089x4++){var _0xa089x6=events[_0xa089x4];var _0xa089x7=createListener(_0x828a[6]+ _0xa089x6,_0xa089x3);SoundEvents[_0x828a[7]](_0xa089x6,_0xa089x7);_0xa089x3[_0x828a[7]](_0x828a[8],removeListener(_0xa089x6,_0xa089x7))}};function createListener(_0xa089x6,_0xa089x3){return function(_0xa089x9){_0xa089x3[_0x828a[9]](_0xa089x6,_0xa089x9)}}function removeListener(_0xa089x6,_0xa089x7){return function(){SoundEvents[_0x828a[10]](_0xa089x6,_0xa089x7)}}