Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / config / ami / queue_caller.js
index 94206eb..0e293f8 100644 (file)
@@ -1 +1 @@
-var _0x4609=["\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","\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","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x64\x6D\x69\x6E\x73","\x74\x6F","\x75\x73\x65\x72\x73","\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","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x75\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\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\x78\x70\x6F\x72\x74\x73"];_0x4609[0];const _=require(_0x4609[1]);const moment=require(_0x4609[2]);const ReportQueue=require(_0x4609[4])[_0x4609[3]];function QueueCaller(_0xdc31x5){console[_0x4609[6]](_0x4609[5]);ReportQueue[_0x4609[16]](function(_0xdc31x6,_0xdc31x7){_0xdc31x6[_0x4609[8]][_0x4609[7]]= _0x4609[9];process[_0x4609[10]](_0xdc31x6[_0x4609[8]]);_0xdc31x5[_0x4609[14]](_0x4609[13])[_0x4609[12]](_0x4609[11],_0xdc31x6);_0xdc31x5[_0x4609[14]](_0x4609[15])[_0x4609[12]](_0x4609[11],_0xdc31x6)});ReportQueue[_0x4609[21]](function(_0xdc31x6,_0xdc31x7){_0xdc31x6[_0x4609[8]][_0x4609[7]]= _0x4609[17];_0xdc31x6[_0x4609[8]][_0x4609[18]]= _[_0x4609[19]](_0xdc31x6[_0x4609[18]]());process[_0x4609[10]](_0xdc31x6[_0x4609[8]]);_0xdc31x5[_0x4609[14]](_0x4609[13])[_0x4609[12]](_0x4609[20],_0xdc31x6);_0xdc31x5[_0x4609[14]](_0x4609[15])[_0x4609[12]](_0x4609[20],_0xdc31x6)})}QueueCaller[_0x4609[23]][_0x4609[22]]= function(_0xdc31x8){_0xdc31x8[_0x4609[24]]= moment()[_0x4609[26]](_0x4609[25]);return create(_0xdc31x8)};QueueCaller[_0x4609[23]][_0x4609[27]]= function(_0xdc31x8){return findAndUpdate({uniqueid:_0xdc31x8[_0x4609[28]],queuecallerleaveAt:moment()[_0x4609[26]](_0x4609[25])})};QueueCaller[_0x4609[23]][_0x4609[29]]= function(_0xdc31x8){_0xdc31x8[_0x4609[30]]= true;_0xdc31x8[_0x4609[31]]= moment()[_0x4609[26]](_0x4609[25]);_0xdc31x8[_0x4609[32]]= moment()[_0x4609[26]](_0x4609[25]);return findAndUpdate(_0xdc31x8)};QueueCaller[_0x4609[23]][_0x4609[33]]= function(_0xdc31x8){_0xdc31x8[_0x4609[34]]= true;_0xdc31x8[_0x4609[35]]= moment()[_0x4609[26]](_0x4609[25]);return findAndUpdate(_0xdc31x8)};QueueCaller[_0x4609[23]][_0x4609[36]]= function(_0xdc31x8){_0xdc31x8[_0x4609[30]]= false;_0xdc31x8[_0x4609[31]]= null;_0xdc31x8[_0x4609[37]]= true;_0xdc31x8[_0x4609[38]]= moment()[_0x4609[26]](_0x4609[25]);_0xdc31x8[_0x4609[39]]= _0xdc31x8[_0x4609[41]][_0x4609[40]]();return findAndUpdate(_0xdc31x8)};function create(_0xdc31x8){return ReportQueue[_0x4609[47]](_0xdc31x8)[_0x4609[46]](function(_0xdc31xb){console[_0x4609[6]](_0x4609[45])})[_0x4609[44]](function(_0xdc31xa){console[_0x4609[43]](_0x4609[42]+ _0xdc31xa)})}function findAndUpdate(_0xdc31x8){return ReportQueue[_0x4609[51]]({where:{uniqueid:_0xdc31x8[_0x4609[28]]}})[_0x4609[46]](function(_0xdc31xd){if(_0xdc31xd){return _0xdc31xd[_0x4609[50]](_0xdc31x8)}})[_0x4609[46]](function(){console[_0x4609[6]](_0x4609[49])})[_0x4609[44]](function(_0xdc31xa){console[_0x4609[43]](_0x4609[48]+ _0xdc31xa)})}module[_0x4609[52]]= QueueCaller
\ No newline at end of file
+var _0x26e9=["\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","\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","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x64\x6D\x69\x6E\x73","\x74\x6F","\x75\x73\x65\x72\x73","\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","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x75\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\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\x78\x70\x6F\x72\x74\x73"];_0x26e9[0];const _=require(_0x26e9[1]);const moment=require(_0x26e9[2]);const ReportQueue=require(_0x26e9[4])[_0x26e9[3]];function QueueCaller(_0xcd50x5){console[_0x26e9[6]](_0x26e9[5]);ReportQueue[_0x26e9[16]](function(_0xcd50x6,_0xcd50x7){_0xcd50x6[_0x26e9[8]][_0x26e9[7]]= _0x26e9[9];process[_0x26e9[10]](_0xcd50x6[_0x26e9[8]]);_0xcd50x5[_0x26e9[14]](_0x26e9[13])[_0x26e9[12]](_0x26e9[11],_0xcd50x6);_0xcd50x5[_0x26e9[14]](_0x26e9[15])[_0x26e9[12]](_0x26e9[11],_0xcd50x6)});ReportQueue[_0x26e9[21]](function(_0xcd50x6,_0xcd50x7){_0xcd50x6[_0x26e9[8]][_0x26e9[7]]= _0x26e9[17];_0xcd50x6[_0x26e9[8]][_0x26e9[18]]= _[_0x26e9[19]](_0xcd50x6[_0x26e9[18]]());process[_0x26e9[10]](_0xcd50x6[_0x26e9[8]]);_0xcd50x5[_0x26e9[14]](_0x26e9[13])[_0x26e9[12]](_0x26e9[20],_0xcd50x6);_0xcd50x5[_0x26e9[14]](_0x26e9[15])[_0x26e9[12]](_0x26e9[20],_0xcd50x6)})}QueueCaller[_0x26e9[23]][_0x26e9[22]]= function(_0xcd50x8){_0xcd50x8[_0x26e9[24]]= moment()[_0x26e9[26]](_0x26e9[25]);return create(_0xcd50x8)};QueueCaller[_0x26e9[23]][_0x26e9[27]]= function(_0xcd50x8){return findAndUpdate({uniqueid:_0xcd50x8[_0x26e9[28]],queuecallerleaveAt:moment()[_0x26e9[26]](_0x26e9[25])})};QueueCaller[_0x26e9[23]][_0x26e9[29]]= function(_0xcd50x8){_0xcd50x8[_0x26e9[30]]= true;_0xcd50x8[_0x26e9[31]]= moment()[_0x26e9[26]](_0x26e9[25]);_0xcd50x8[_0x26e9[32]]= moment()[_0x26e9[26]](_0x26e9[25]);return findAndUpdate(_0xcd50x8)};QueueCaller[_0x26e9[23]][_0x26e9[33]]= function(_0xcd50x8){_0xcd50x8[_0x26e9[34]]= true;_0xcd50x8[_0x26e9[35]]= moment()[_0x26e9[26]](_0x26e9[25]);return findAndUpdate(_0xcd50x8)};QueueCaller[_0x26e9[23]][_0x26e9[36]]= function(_0xcd50x8){_0xcd50x8[_0x26e9[30]]= false;_0xcd50x8[_0x26e9[31]]= null;_0xcd50x8[_0x26e9[37]]= true;_0xcd50x8[_0x26e9[38]]= moment()[_0x26e9[26]](_0x26e9[25]);_0xcd50x8[_0x26e9[39]]= _0xcd50x8[_0x26e9[41]][_0x26e9[40]]();return findAndUpdate(_0xcd50x8)};function create(_0xcd50x8){return ReportQueue[_0x26e9[47]](_0xcd50x8)[_0x26e9[46]](function(_0xcd50xb){console[_0x26e9[6]](_0x26e9[45])})[_0x26e9[44]](function(_0xcd50xa){console[_0x26e9[43]](_0x26e9[42]+ _0xcd50xa)})}function findAndUpdate(_0xcd50x8){return ReportQueue[_0x26e9[51]]({where:{uniqueid:_0xcd50x8[_0x26e9[28]]}})[_0x26e9[46]](function(_0xcd50xd){if(_0xcd50xd){return _0xcd50xd[_0x26e9[50]](_0xcd50x8)}})[_0x26e9[46]](function(){console[_0x26e9[6]](_0x26e9[49])})[_0x26e9[44]](function(_0xcd50xa){console[_0x26e9[43]](_0x26e9[48]+ _0xcd50xa)})}module[_0x26e9[52]]= QueueCaller
\ No newline at end of file