Built motion from commit 22bc4a4.|0.0.19
[motion.git] / server / config / ami / queue_caller.js
1 var _0xe789=["\x6D\x6F\x6D\x65\x6E\x74","\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6A\x6F\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\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","\x6C\x65\x61\x76\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x41\x74","\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x41\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x5D\x20\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x5D\x20\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x20\x75\x70\x64\x61\x74\x65\x64","\x69\x6E\x66\x6F","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xe789[0]);function QueueCaller(){console[_0xe789[2]](_0xe789[1])}QueueCaller[_0xe789[4]][_0xe789[3]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[5]]=moment()[_0xe789[7]](_0xe789[6]);create(_0xc1cfx3);};QueueCaller[_0xe789[4]][_0xe789[8]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[9]]=moment()[_0xe789[7]](_0xe789[6]);findAndUpdate(_0xc1cfx3);};QueueCaller[_0xe789[4]][_0xe789[10]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[11]]=true;_0xc1cfx3[_0xe789[12]]=moment()[_0xe789[7]](_0xe789[6]);findAndUpdate(_0xc1cfx3);};QueueCaller[_0xe789[4]][_0xe789[13]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[14]]=moment()[_0xe789[7]](_0xe789[6]);findAndUpdate(_0xc1cfx3);};function create(_0xc1cfx3){var _0xc1cfx5=require(_0xe789[16])[_0xe789[15]];_0xc1cfx5[_0xe789[22]](_0xc1cfx3)[_0xe789[21]](function(_0xc1cfx5){console[_0xe789[2]](_0xe789[20])})[_0xe789[19]](function(_0xc1cfx6){console[_0xe789[18]](_0xe789[17]+_0xc1cfx6)});}function findAndUpdate(_0xc1cfx3){var _0xc1cfx5=require(_0xe789[16])[_0xe789[15]];_0xc1cfx5[_0xe789[27]](_0xc1cfx3,{where:{uniqueid:_0xc1cfx3[_0xe789[26]]},individualHooks:true})[_0xe789[21]](function(_0xc1cfx5){console[_0xe789[25]](_0xe789[24])})[_0xe789[19]](function(_0xc1cfx6){console[_0xe789[18]](_0xe789[23]+_0xc1cfx6)});}module[_0xe789[28]]=QueueCaller;