3a604963a17c2f6629aa7eaf3ccb293d817a742e
[motion.git] / server / config / routing / fidelity.js
1 var _0xc963=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x73\x74\x72\x75\x63\x74\x75\x72\x65","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x70\x70","\x64\x61\x74\x61","\x6E\x65\x78\x74","\x69\x6E\x69\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x70\x61\x75\x73\x65\x73","\x6C\x61\x62\x65\x6C\x73","\x77\x68\x65\x72\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x46\x49\x44\x45\x4C\x49\x54\x59\x20\x41\x43\x54\x49\x4F\x4E\x20\x53\x54\x41\x52\x54\x45\x44","\x6C\x6F\x67","\x74\x68\x65\x6E","\x72\x6F\x6F\x6D\x69\x64","\x75\x70\x64\x61\x74\x65","\x72\x6F\x6F\x6D\x73","\x6D\x6F\x64\x65\x6C\x73","\x5F\x61\x67\x65\x6E\x74\x73","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x41\x50\x50\x20\x46\x49\x44\x45\x4C\x49\x54\x59\x20\x49\x4E\x54\x45\x52\x41\x43\x54\x49\x4F\x4E\x3A","\x54\x49\x4D\x45\x4F\x55\x54","\x74\x69\x6D\x65\x6F\x75\x74","\x53\x45\x43","\x69\x6E\x66\x6F","\x6C\x65\x6E\x67\x74\x68","\x77\x72\x69\x74\x65\x52\x65\x70\x6F\x72\x74","\x41\x50\x50\x20\x46\x49\x44\x45\x4C\x49\x54\x59\x20\x53\x4B\x49\x50\x20\x49\x4E\x54\x45\x52\x41\x43\x54\x49\x4F\x4E\x3A","\x67\x65\x74\x55\x73\x65\x72\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x66\x69\x64\x65\x6C\x69\x74\x79","\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","\x6D\x65\x72\x67\x65","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x73","\x73\x65\x73\x73\x69\x6F\x6E\x73","\x65\x78\x70\x6F\x72\x74\x73"];_0xc963[0];const _=require(_0xc963[1]);const config=require(_0xc963[2]);const structure=require(_0xc963[3]);const cp=require(_0xc963[4]);const util=require(_0xc963[5]);const moment=require(_0xc963[6]);const Agent=require(_0xc963[8])[_0xc963[7]];function Fidelity(_0xef85x9,_0xef85xa,_0xef85xb){this[_0xc963[9]]= _0xef85x9;this[_0xc963[10]]= _0xef85xa;this[_0xc963[11]]= _0xef85xb}Fidelity[_0xc963[13]][_0xc963[12]]= function init(){var _0xef85xd=this;var _0xef85xe={where:{online:true},attributes:[_0xc963[14],_0xc963[15],_0xc963[16]],raw:true};_0xef85xe[_0xc963[20]][structure[_0xc963[19]][_0xc963[18]][_0xef85xd[_0xc963[10]][_0xc963[17]]]]= false;return structure[_0xc963[29]][_0xc963[28]][_0xef85xd[_0xc963[10]][_0xc963[17]]][_0xc963[41]](_0xef85xd[_0xc963[10]][_0xc963[26]])[_0xc963[25]](function(_0xef85x11){return _0xef85x11[_0xc963[40]](_0xef85xe)})[_0xc963[25]](function(_0xef85x10){_0xef85xd[_0xc963[30]]= _0xef85x10;console[_0xc963[36]](_0xef85xd[_0xc963[10]][_0xc963[17]][_0xc963[31]](),_0xc963[32],_0xef85xd[_0xc963[10]][_0xc963[26]],_0xc963[33],_0xef85xd[_0xc963[9]][_0xc963[34]],_0xc963[35]);if(_0xef85xd[_0xc963[30]][_0xc963[37]]){_0xef85xd[_0xc963[38]]();_0xef85xd[_0xc963[34]]= setTimeout(function(){_0xef85xd[_0xc963[11]]()},_0xef85xd[_0xc963[9]][_0xc963[34]]* 1000)}else {console[_0xc963[36]](_0xef85xd[_0xc963[10]][_0xc963[17]][_0xc963[31]](),_0xc963[39],_0xef85xd[_0xc963[10]][_0xc963[26]]);_0xef85xd[_0xc963[11]]()}})[_0xc963[25]](function(){return structure[_0xc963[29]][_0xc963[28]][_0xef85xd[_0xc963[10]][_0xc963[17]]][_0xc963[27]]({waiting:true},{where:{id:_0xef85xd[_0xc963[10]][_0xc963[26]]},individualHooks:true})[_0xc963[25]](function(){console[_0xc963[24]](_0xc963[23])})[_0xc963[22]](function(_0xef85xf){console[_0xc963[21]]()})})};Fidelity[_0xc963[13]][_0xc963[38]]= function writeReport(){var _0xef85xd=this;var _0xef85x13=_[_0xc963[46]](_0xef85xd._agents,function(_0xef85x14){return _[_0xc963[45]](_0xef85xd[_0xc963[10]],{timeslot:_0xef85xd[_0xc963[9]][_0xc963[34]],application:_0xc963[42],membername:_0xef85x14[_0xc963[15]],memberid:_0xef85x14[_0xc963[14]],calledAt:moment()[_0xc963[44]](_0xc963[43]),joinAt:moment()[_0xc963[44]](_0xc963[43]),fidelity:_0xef85xd[_0xc963[9]][_0xc963[34]]})});return structure[_0xc963[29]][_0xc963[49]][_0xef85xd[_0xc963[10]][_0xc963[17]]][_0xc963[47]](_0xef85x13,{individualHooks:true})[_0xc963[25]](function(){return structure[_0xc963[29]][_0xc963[48]][_0xef85xd[_0xc963[10]][_0xc963[17]]][_0xc963[47]](_0xef85x13,{individualHooks:true})})[_0xc963[22]](function(_0xef85xf){console[_0xc963[21]](_0xef85xf)})};module[_0xc963[50]]= Fidelity