6401a154b0bd1d5bdb0d099566560c6557f60e03
[motion.git] / server / config / ami / db / memberReport.js
1 var _0x3144=["\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","\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","\x6C\x6F\x67","\x74\x68\x65\x6E","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x54\x41\x4C\x4B\x49\x4E\x47","\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","\x2E","\x73\x70\x6C\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x6E\x69\x78","\x69\x6E\x62\x6F\x75\x6E\x64","\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"];_0x3144[0];var BPromise=require(_0x3144[1]);var moment=require(_0x3144[2]);var ReportMember=require(_0x3144[4])[_0x3144[3]];var channels=[_0x3144[5],_0x3144[6],_0x3144[7],_0x3144[8],_0x3144[9],_0x3144[10]];module[_0x3144[11]]= function(){return {agentcomplete:function(_0x690fx5){return function(_0x690fx6){return ReportMember[_0x3144[34]]({channel:_0x3144[5],membername:_0x690fx5[_0x3144[15]],interface:_0x690fx5[_0x3144[18]],type:_0x3144[19],enterAt:moment[_0x3144[25]](_0x690fx5[_0x3144[24]][_0x3144[23]](_0x3144[22])[0])[_0x3144[21]](_0x3144[20]),exitAt:moment()[_0x3144[21]](_0x3144[20]),data1:_0x3144[26],data2:_0x690fx5[_0x3144[28]][_0x3144[23]](_0x3144[27])[0][_0x3144[23]](/\/|-/)[1]|| null,data3:_0x690fx5[_0x3144[29]],data4:_0x690fx5[_0x3144[30]]|| null,data5:_0x690fx5[_0x3144[31]],role:_0x3144[32],internal:_0x690fx5[_0x3144[33]],uniqueid:_0x690fx5[_0x3144[24]]})[_0x3144[17]](function(){console[_0x3144[16]](_0x3144[12],_0x690fx5[_0x3144[15]])})[_0x3144[14]](function(_0x690fx7){console[_0x3144[13]](_0x3144[12],_0x690fx7)})}},cdr:function(_0x690fx5){return function(_0x690fx6){if(_0x690fx5[_0x3144[35]]!== _0x3144[36]){return BPromise[_0x3144[37]]()};return ReportMember[_0x3144[34]]({channel:_0x3144[5],membername:_0x690fx5[_0x3144[28]][_0x3144[23]](/\/|-/)[1],interface:_0x690fx5[_0x3144[28]][_0x3144[23]](_0x3144[27])[0],type:_0x3144[19],duration:_0x690fx5[_0x3144[40]],enterAt:_0x690fx5[_0x3144[41]],exitAt:_0x690fx5[_0x3144[42]],data1:_0x3144[36],data2:_0x690fx5[_0x3144[43]],data3:_0x690fx5[_0x3144[44]][_0x3144[23]](/\/|-/)[1]|| null,role:_0x3144[32],internal:_0x690fx5[_0x3144[45]],uniqueid:_0x690fx5[_0x3144[24]]})[_0x3144[17]](function(){console[_0x3144[16]](_0x3144[39],_0x690fx5[_0x3144[28]][_0x3144[23]](/\/|-/)[1])})[_0x3144[14]](function(_0x690fx7){console[_0x3144[13]](_0x3144[38],_0x690fx7)})}},queuememberpause:function(_0x690fx5){return function(_0x690fx6){var _0x690fx8=[];channels[_0x3144[49]](function(_0x690fx9){_0x690fx8[_0x3144[48]]({channel:_0x690fx9,membername:_0x690fx5[_0x3144[15]],interface:_0x690fx5[_0x3144[18]],type:_0x3144[46],enterAt:moment()[_0x3144[21]](_0x3144[20]),data1:_0x690fx5[_0x3144[47]],data4:_0x690fx5[_0x3144[47]],role:_0x3144[32]})});return ReportMember[_0x3144[51]](_0x690fx8,{raw:true,individualHooks:true})[_0x3144[14]](function(_0x690fx7){console[_0x3144[13]](_0x3144[50],_0x690fx7)})}}}}