Built motion from commit 5ae821c.|0.0.127
[motion.git] / server / config / ami / queue_member.js
1 var _0x9582=["\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x64\x64\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67\x67\x65\x64","\x6C\x6F\x67\x67\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x70\x61\x75\x73\x65","\x70\x61\x75\x73\x65\x64\x41\x74","\x70\x61\x75\x73\x65\x64","\x70\x65\x6E\x61\x6C\x74\x79","\x72\x65\x6D\x6F\x76\x65\x64","\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x73\x74\x61\x74\x75\x73","\x5B\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x5D\x20\x75\x70\x64\x61\x74\x65\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x5D\x20\x75\x70\x64\x61\x74\x65\x20\x6D\x65\x6D\x62\x65\x72","\x74\x68\x65\x6E","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0x9582[0]);var UserHasVoiceQueue=require(_0x9582[2])[_0x9582[1]];function QueueMember(){console[_0x9582[4]](_0x9582[3])}QueueMember[_0x9582[6]][_0x9582[5]]= function(_0xaabfx4){_0xaabfx4[_0x9582[7]]= true;_0xaabfx4[_0x9582[8]]= moment()[_0x9582[10]](_0x9582[9]);return findAndUpdate(_0xaabfx4)};QueueMember[_0x9582[6]][_0x9582[11]]= function(_0xaabfx4){_0xaabfx4[_0x9582[12]]= (parseInt(_0xaabfx4[_0x9582[13]],10))?moment()[_0x9582[10]](_0x9582[9]):null;return findAndUpdate(_0xaabfx4)};QueueMember[_0x9582[6]][_0x9582[14]]= function(_0xaabfx4){return findAndUpdate(_0xaabfx4)};QueueMember[_0x9582[6]][_0x9582[15]]= function(_0xaabfx4){_0xaabfx4[_0x9582[7]]= false;_0xaabfx4[_0x9582[8]]= null;return findAndUpdate(_0xaabfx4)};QueueMember[_0x9582[6]][_0x9582[16]]= function(_0xaabfx4){return findAndUpdate(_0xaabfx4)};QueueMember[_0x9582[6]][_0x9582[17]]= function(_0xaabfx4){return findAndUpdate(_0xaabfx4)};function findAndUpdate(_0xaabfx4,_0xaabfx6){return UserHasVoiceQueue[_0x9582[25]](_0xaabfx4,{where:{queue:_0xaabfx4[_0x9582[23]],membername:_0xaabfx4[_0x9582[24]]},individualHooks:true})[_0x9582[22]](function(_0xaabfx8){console[_0x9582[4]](_0x9582[21])})[_0x9582[20]](function(_0xaabfx7){console[_0x9582[19]](_0x9582[18]+ _0xaabfx7)})}module[_0x9582[26]]= QueueMember