f53b13851214a9347845c5aba92f8b1b40acf97c
[motion.git] / server / config / ami / db / memberReport.js
1 var _0x9bfc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x66\x61\x78","\x73\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x64\x65\x62\x75\x67","\x74\x68\x65\x6E","\x6E\x6F\x77","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x69\x64\x20\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x54\x41\x4C\x4B\x49\x4E\x47","\x69\x6E\x62\x6F\x75\x6E\x64","\x73\x70\x6C\x69\x74","\x2D","\x63\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x74\x65\x6E","\x64\x69\x61\x6C\x73\x74\x72\x69\x6E\x67","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x63\x72\x65\x61\x74\x65","\x74\x79\x70\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x72\x65\x73\x6F\x6C\x76\x65","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x20\x2D\x20\x64\x69\x61\x6C\x65\x6E\x64","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x20\x2D\x20\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x73\x74\x61\x72\x74\x74\x69\x6D\x65","\x65\x6E\x64\x74\x69\x6D\x65","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x6F\x75\x72\x63\x65","\x50\x41\x55\x53\x45","\x72\x65\x61\x73\x6F\x6E","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x20\x2D\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65"];_0x9bfc[0];var BPromise=require(_0x9bfc[1]);var moment=require(_0x9bfc[2]);var ReportMember=require(_0x9bfc[4])[_0x9bfc[3]];var channels=[_0x9bfc[5],_0x9bfc[6],_0x9bfc[7],_0x9bfc[8],_0x9bfc[9],_0x9bfc[10]];var logger=require(_0x9bfc[12])(_0x9bfc[11]);module[_0x9bfc[13]]= function(){return {agentcomplete:function(_0xc09ax6){return function(_0xc09ax7){return ReportMember[_0x9bfc[24]]({where:{uniqueid:_0xc09ax6[_0x9bfc[22]]},order:_0x9bfc[23]})[_0x9bfc[19]](function(_0xc09ax9){if(_0xc09ax9){return _0xc09ax9[_0x9bfc[21]]({exitAt:_0xc09ax6[_0x9bfc[20]]})}})[_0x9bfc[19]](function(){logger[_0x9bfc[18]](_0x9bfc[14],_0xc09ax6[_0x9bfc[17]])})[_0x9bfc[16]](function(_0xc09ax8){logger[_0x9bfc[15]](_0x9bfc[14],_0xc09ax8)})}},agentconnect:function(_0xc09ax6){return function(_0xc09ax7){return ReportMember[_0x9bfc[37]]({channel:_0x9bfc[5],membername:_0xc09ax6[_0x9bfc[17]],interface:_0xc09ax6[_0x9bfc[26]],type:_0x9bfc[27],enterAt:_0xc09ax6[_0x9bfc[20]],data1:_0x9bfc[28],data2:_0xc09ax6[_0x9bfc[31]][_0x9bfc[29]](_0x9bfc[30])[0][_0x9bfc[29]](/\/|-/)[1]|| null,data3:_0xc09ax6[_0x9bfc[32]],data4:_0xc09ax6[_0x9bfc[33]]|| null,data5:_0xc09ax6[_0x9bfc[34]],role:_0x9bfc[35],internal:_0xc09ax6[_0x9bfc[36]]|| null,uniqueid:_0xc09ax6[_0x9bfc[22]]})[_0x9bfc[19]](function(){logger[_0x9bfc[18]](_0x9bfc[25],_0xc09ax6[_0x9bfc[17]])})[_0x9bfc[16]](function(_0xc09ax8){logger[_0x9bfc[15]](_0x9bfc[25],_0xc09ax8)})}},cdr:function(_0xc09ax6){return function(_0xc09ax7){if(_0xc09ax6[_0x9bfc[38]]!== _0x9bfc[39]){return BPromise[_0x9bfc[40]]()};return ReportMember[_0x9bfc[37]]({channel:_0x9bfc[5],membername:_0xc09ax6[_0x9bfc[31]][_0x9bfc[29]](/\/|-/)[1],interface:_0xc09ax6[_0x9bfc[31]][_0x9bfc[29]](_0x9bfc[30])[0],type:_0x9bfc[27],duration:_0xc09ax6[_0x9bfc[43]],enterAt:_0xc09ax6[_0x9bfc[44]],exitAt:_0xc09ax6[_0x9bfc[45]],data1:_0x9bfc[39],data2:_0xc09ax6[_0x9bfc[46]],data3:_0xc09ax6[_0x9bfc[47]][_0x9bfc[29]](/\/|-/)[1]|| null,role:_0x9bfc[35],internal:_0xc09ax6[_0x9bfc[48]],uniqueid:_0xc09ax6[_0x9bfc[22]]})[_0x9bfc[19]](function(){logger[_0x9bfc[18]](_0x9bfc[42],_0xc09ax6[_0x9bfc[31]][_0x9bfc[29]](/\/|-/)[1])})[_0x9bfc[16]](function(_0xc09ax8){logger[_0x9bfc[15]](_0x9bfc[41],_0xc09ax8)})}},queuememberpause:function(_0xc09ax6){return function(_0xc09ax7){var _0xc09axa=[];channels[_0x9bfc[52]](function(_0xc09axb){_0xc09axa[_0x9bfc[51]]({channel:_0xc09axb,membername:_0xc09ax6[_0x9bfc[17]],interface:_0xc09ax6[_0x9bfc[26]],type:_0x9bfc[49],enterAt:_0xc09ax6[_0x9bfc[20]],data1:_0xc09ax6[_0x9bfc[50]],data4:_0xc09ax6[_0x9bfc[50]],role:_0x9bfc[35]})});return ReportMember[_0x9bfc[54]](_0xc09axa,{raw:true,individualHooks:true})[_0x9bfc[16]](function(_0xc09ax8){logger[_0x9bfc[15]](_0x9bfc[53],_0xc09ax8)})}}}}