Built motion from commit 0c27b27.|1.0.11
[motion.git] / server / config / routing / fidelity.js
index 97a933f..f424cb4 100644 (file)
@@ -1 +1 @@
-var _0x97ee=["\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","\x64\x69\x61\x6C\x70\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64","\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"];_0x97ee[0];const _=require(_0x97ee[1]);const config=require(_0x97ee[2]);const structure=require(_0x97ee[3]);const cp=require(_0x97ee[4]);const util=require(_0x97ee[5]);const moment=require(_0x97ee[6]);const Agent=require(_0x97ee[8])[_0x97ee[7]];function Fidelity(_0x156ex9,_0x156exa,_0x156exb){this[_0x97ee[9]]= _0x156ex9;this[_0x97ee[10]]= _0x156exa;this[_0x97ee[11]]= _0x156exb}Fidelity[_0x97ee[13]][_0x97ee[12]]= function init(){var _0x156exd=this;var _0x156exe={where:{online:true},attributes:[_0x97ee[14],_0x97ee[15],_0x97ee[16]],raw:true};_0x156exe[_0x97ee[20]][structure[_0x97ee[19]][_0x97ee[18]][_0x156exd[_0x97ee[10]][_0x97ee[17]]]]= false;return structure[_0x97ee[29]][_0x97ee[28]][_0x156exd[_0x97ee[10]][_0x97ee[17]]][_0x97ee[41]](_0x156exd[_0x97ee[10]][_0x97ee[26]])[_0x97ee[25]](function(_0x156ex11){return _0x156ex11[_0x97ee[40]](_0x156exe)})[_0x97ee[25]](function(_0x156ex10){_0x156exd[_0x97ee[30]]= _0x156ex10;console[_0x97ee[36]](_0x156exd[_0x97ee[10]][_0x97ee[17]][_0x97ee[31]](),_0x97ee[32],_0x156exd[_0x97ee[10]][_0x97ee[26]],_0x97ee[33],_0x156exd[_0x97ee[9]][_0x97ee[34]],_0x97ee[35]);if(_0x156exd[_0x97ee[30]][_0x97ee[37]]){_0x156exd[_0x97ee[38]]();_0x156exd[_0x97ee[34]]= setTimeout(function(){_0x156exd[_0x97ee[11]]()},_0x156exd[_0x97ee[9]][_0x97ee[34]]* 1000)}else {console[_0x97ee[36]](_0x156exd[_0x97ee[10]][_0x97ee[17]][_0x97ee[31]](),_0x97ee[39],_0x156exd[_0x97ee[10]][_0x97ee[26]]);_0x156exd[_0x97ee[11]]()}})[_0x97ee[25]](function(){return structure[_0x97ee[29]][_0x97ee[28]][_0x156exd[_0x97ee[10]][_0x97ee[17]]][_0x97ee[27]]({waiting:true},{where:{id:_0x156exd[_0x97ee[10]][_0x97ee[26]]},individualHooks:true})[_0x97ee[25]](function(){console[_0x97ee[24]](_0x97ee[23])})[_0x97ee[22]](function(_0x156exf){console[_0x97ee[21]]()})})};Fidelity[_0x97ee[13]][_0x97ee[38]]= function writeReport(){var _0x156exd=this;var _0x156ex13=_[_0x97ee[46]](_0x156exd._agents,function(_0x156ex14){return _[_0x97ee[45]](_0x156exd[_0x97ee[10]],{timeslot:_0x156exd[_0x97ee[9]][_0x97ee[34]],application:_0x97ee[42],membername:_0x156ex14[_0x97ee[15]],memberid:_0x156ex14[_0x97ee[14]],calledAt:moment()[_0x97ee[44]](_0x97ee[43]),joinAt:moment()[_0x97ee[44]](_0x97ee[43]),fidelity:_0x156exd[_0x97ee[9]][_0x97ee[34]]})});return structure[_0x97ee[29]][_0x97ee[49]][_0x156exd[_0x97ee[10]][_0x97ee[17]]][_0x97ee[47]](_0x156ex13,{individualHooks:true})[_0x97ee[25]](function(){return structure[_0x97ee[29]][_0x97ee[48]][_0x156exd[_0x97ee[10]][_0x97ee[17]]][_0x97ee[47]](_0x156ex13,{individualHooks:true})})[_0x97ee[22]](function(_0x156exf){console[_0x97ee[21]](_0x156exf)})};module[_0x97ee[50]]= Fidelity
\ No newline at end of file
+var _0xe6d0=["\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"];_0xe6d0[0];const _=require(_0xe6d0[1]);const config=require(_0xe6d0[2]);const structure=require(_0xe6d0[3]);const cp=require(_0xe6d0[4]);const util=require(_0xe6d0[5]);const moment=require(_0xe6d0[6]);const Agent=require(_0xe6d0[8])[_0xe6d0[7]];function Fidelity(_0x6f69x9,_0x6f69xa,_0x6f69xb){this[_0xe6d0[9]]= _0x6f69x9;this[_0xe6d0[10]]= _0x6f69xa;this[_0xe6d0[11]]= _0x6f69xb}Fidelity[_0xe6d0[13]][_0xe6d0[12]]= function init(){var _0x6f69xd=this;var _0x6f69xe={where:{online:true},attributes:[_0xe6d0[14],_0xe6d0[15],_0xe6d0[16]],raw:true};_0x6f69xe[_0xe6d0[20]][structure[_0xe6d0[19]][_0xe6d0[18]][_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]]]]= false;return structure[_0xe6d0[29]][_0xe6d0[28]][_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]]][_0xe6d0[41]](_0x6f69xd[_0xe6d0[10]][_0xe6d0[26]])[_0xe6d0[25]](function(_0x6f69x11){return _0x6f69x11[_0xe6d0[40]](_0x6f69xe)})[_0xe6d0[25]](function(_0x6f69x10){_0x6f69xd[_0xe6d0[30]]= _0x6f69x10;console[_0xe6d0[36]](_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]][_0xe6d0[31]](),_0xe6d0[32],_0x6f69xd[_0xe6d0[10]][_0xe6d0[26]],_0xe6d0[33],_0x6f69xd[_0xe6d0[9]][_0xe6d0[34]],_0xe6d0[35]);if(_0x6f69xd[_0xe6d0[30]][_0xe6d0[37]]){_0x6f69xd[_0xe6d0[38]]();_0x6f69xd[_0xe6d0[34]]= setTimeout(function(){_0x6f69xd[_0xe6d0[11]]()},_0x6f69xd[_0xe6d0[9]][_0xe6d0[34]]* 1000)}else {console[_0xe6d0[36]](_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]][_0xe6d0[31]](),_0xe6d0[39],_0x6f69xd[_0xe6d0[10]][_0xe6d0[26]]);_0x6f69xd[_0xe6d0[11]]()}})[_0xe6d0[25]](function(){return structure[_0xe6d0[29]][_0xe6d0[28]][_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]]][_0xe6d0[27]]({waiting:true},{where:{id:_0x6f69xd[_0xe6d0[10]][_0xe6d0[26]]},individualHooks:true})[_0xe6d0[25]](function(){console[_0xe6d0[24]](_0xe6d0[23])})[_0xe6d0[22]](function(_0x6f69xf){console[_0xe6d0[21]]()})})};Fidelity[_0xe6d0[13]][_0xe6d0[38]]= function writeReport(){var _0x6f69xd=this;var _0x6f69x13=_[_0xe6d0[46]](_0x6f69xd._agents,function(_0x6f69x14){return _[_0xe6d0[45]](_0x6f69xd[_0xe6d0[10]],{timeslot:_0x6f69xd[_0xe6d0[9]][_0xe6d0[34]],application:_0xe6d0[42],membername:_0x6f69x14[_0xe6d0[15]],memberid:_0x6f69x14[_0xe6d0[14]],calledAt:moment()[_0xe6d0[44]](_0xe6d0[43]),joinAt:moment()[_0xe6d0[44]](_0xe6d0[43]),fidelity:_0x6f69xd[_0xe6d0[9]][_0xe6d0[34]]})});return structure[_0xe6d0[29]][_0xe6d0[49]][_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]]][_0xe6d0[47]](_0x6f69x13,{individualHooks:true})[_0xe6d0[25]](function(){return structure[_0xe6d0[29]][_0xe6d0[48]][_0x6f69xd[_0xe6d0[10]][_0xe6d0[17]]][_0xe6d0[47]](_0x6f69x13,{individualHooks:true})})[_0xe6d0[22]](function(_0x6f69xf){console[_0xe6d0[21]](_0x6f69xf)})};module[_0xe6d0[50]]= Fidelity
\ No newline at end of file