Built motion from commit 1038d87.|0.0.141
[motion.git] / server / config / ami / queue_caller.js
index 5cb3deb..a855d27 100644 (file)
@@ -1 +1 @@
-var _0xffb7=["\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x65\x78\x69\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x41\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x76\x61\x6C\x75\x65","\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(_0xffb7[0]);var ReportQueue=require(_0xffb7[2])[_0xffb7[1]];function QueueCaller(){console[_0xffb7[4]](_0xffb7[3])}QueueCaller[_0xffb7[6]][_0xffb7[5]]= function(_0xd5a2x4){_0xd5a2x4[_0xffb7[7]]= moment()[_0xffb7[9]](_0xffb7[8]);return create(_0xd5a2x4)};QueueCaller[_0xffb7[6]][_0xffb7[10]]= function(_0xd5a2x4){_0xd5a2x4[_0xffb7[11]]= moment()[_0xffb7[9]](_0xffb7[8]);return findAndUpdate(_0xd5a2x4)};QueueCaller[_0xffb7[6]][_0xffb7[12]]= function(_0xd5a2x4){_0xd5a2x4[_0xffb7[13]]= true;_0xd5a2x4[_0xffb7[14]]= moment()[_0xffb7[9]](_0xffb7[8]);return findAndUpdate(_0xd5a2x4)};QueueCaller[_0xffb7[6]][_0xffb7[15]]= function(_0xd5a2x4){_0xd5a2x4[_0xffb7[16]]= true;_0xd5a2x4[_0xffb7[17]]= moment()[_0xffb7[9]](_0xffb7[8]);return findAndUpdate(_0xd5a2x4)};QueueCaller[_0xffb7[6]][_0xffb7[18]]= function(_0xd5a2x4){_0xd5a2x4[_0xffb7[13]]= false;_0xd5a2x4[_0xffb7[14]]= null;_0xd5a2x4[_0xffb7[19]]= true;_0xd5a2x4[_0xffb7[20]]= moment()[_0xffb7[9]](_0xffb7[8]);_0xd5a2x4[_0xffb7[21]]= _0xd5a2x4[_0xffb7[23]][_0xffb7[22]]();return findAndUpdate(_0xd5a2x4)};function create(_0xd5a2x4){return ReportQueue[_0xffb7[29]](_0xd5a2x4)[_0xffb7[28]](function(_0xd5a2x7){console[_0xffb7[4]](_0xffb7[27])})[_0xffb7[26]](function(_0xd5a2x6){console[_0xffb7[25]](_0xffb7[24]+ _0xd5a2x6)})}function findAndUpdate(_0xd5a2x4){return ReportQueue[_0xffb7[34]](_0xd5a2x4,{where:{uniqueid:_0xd5a2x4[_0xffb7[33]]},individualHooks:true})[_0xffb7[28]](function(_0xd5a2x7){console[_0xffb7[32]](_0xffb7[31])})[_0xffb7[26]](function(_0xd5a2x6){console[_0xffb7[25]](_0xffb7[30]+ _0xd5a2x6)})}module[_0xffb7[35]]= QueueCaller
\ No newline at end of file
+var _0x628e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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","\x75\x6E\x69\x71\x75\x65\x69\x64","\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","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\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","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x65\x78\x69\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x41\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x76\x61\x6C\x75\x65","\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\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x65\x76\x74","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x2E\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x6E\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x2E\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x6B\x65\x79\x42\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x628e[0];const _=require(_0x628e[1]);const moment=require(_0x628e[2]);const ReportQueue=require(_0x628e[4])[_0x628e[3]];function QueueCaller(){console[_0x628e[6]](_0x628e[5])}QueueCaller[_0x628e[8]][_0x628e[7]]= function(_0xa321x5){_0xa321x5[_0x628e[9]]= moment()[_0x628e[11]](_0x628e[10]);return create(_0xa321x5)};QueueCaller[_0x628e[8]][_0x628e[12]]= function(_0xa321x5){return findAndUpdate({uniqueid:_0xa321x5[_0x628e[13]],queuecallerleaveAt:moment()[_0x628e[11]](_0x628e[10])})};QueueCaller[_0x628e[8]][_0x628e[14]]= function(_0xa321x5){_0xa321x5[_0x628e[15]]= true;_0xa321x5[_0x628e[16]]= moment()[_0x628e[11]](_0x628e[10]);_0xa321x5[_0x628e[17]]= moment()[_0x628e[11]](_0x628e[10]);return findAndUpdate(_0xa321x5)};QueueCaller[_0x628e[8]][_0x628e[18]]= function(_0xa321x5){_0xa321x5[_0x628e[19]]= true;_0xa321x5[_0x628e[20]]= moment()[_0x628e[11]](_0x628e[10]);return findAndUpdate(_0xa321x5)};QueueCaller[_0x628e[8]][_0x628e[21]]= function(_0xa321x5){_0xa321x5[_0x628e[15]]= false;_0xa321x5[_0x628e[16]]= null;_0xa321x5[_0x628e[22]]= true;_0xa321x5[_0x628e[23]]= moment()[_0x628e[11]](_0x628e[10]);_0xa321x5[_0x628e[24]]= _0xa321x5[_0x628e[26]][_0x628e[25]]();return findAndUpdate(_0xa321x5)};function create(_0xa321x5){return ReportQueue[_0x628e[32]](_0xa321x5)[_0x628e[31]](function(_0xa321x8){console[_0x628e[6]](_0x628e[30])})[_0x628e[29]](function(_0xa321x7){console[_0x628e[28]](_0x628e[27]+ _0xa321x7)})}function findAndUpdate(_0xa321x5){return ReportQueue[_0x628e[36]]({where:{uniqueid:_0xa321x5[_0x628e[13]]}})[_0x628e[31]](function(_0xa321xa){if(_0xa321xa){return _0xa321xa[_0x628e[35]](_0xa321x5)}})[_0x628e[31]](function(){console[_0x628e[6]](_0x628e[34])})[_0x628e[29]](function(_0xa321x7){console[_0x628e[28]](_0x628e[33]+ _0xa321x7)})}ReportQueue[_0x628e[41]](function(_0xa321xb,_0xa321xc){_0xa321xb[_0x628e[38]][_0x628e[37]]= _0x628e[39];process[_0x628e[40]](_0xa321xb[_0x628e[38]])});ReportQueue[_0x628e[45]](function(_0xa321xb,_0xa321xc){_0xa321xb[_0x628e[38]][_0x628e[37]]= _0x628e[42];_0xa321xb[_0x628e[38]][_0x628e[43]]= _[_0x628e[44]](_0xa321xb[_0x628e[43]]());process[_0x628e[40]](_0xa321xb[_0x628e[38]])});module[_0x628e[46]]= QueueCaller
\ No newline at end of file