Built motion from commit 6e01242c4.|1.0.20
[motion.git] / server / api / report_call / report_call.controller.js
index 62a4c14..3197930 100644 (file)
@@ -1 +1 @@
-var _0x4a03=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x69\x64","\x62\x6F\x64\x79","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x73\x68\x6F\x77","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x66\x69\x6C\x74\x65\x72","\x74\x69\x67\x65\x72\x64\x69\x61\x6C","\x74\x6F\x74\x61\x6C","\x6C\x65\x6E\x67\x74\x68","\x61\x6E\x73\x77\x65\x72\x65\x64","\x41\x4E\x53\x57\x45\x52\x45\x44","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x63\x6F\x75\x6E\x74\x42\x79","\x73\x75\x6D\x44\x75\x72\x61\x74\x69\x6F\x6E","\x62\x69\x6C\x6C\x61\x62\x6C\x65\x73\x65\x63\x6F\x6E\x64\x73","\x73\x75\x6D\x42\x79","\x61\x76\x67\x44\x75\x72\x61\x74\x69\x6F\x6E","\x72\x6F\x75\x6E\x64","\x61\x6E\x73\x77\x65\x72\x52\x61\x74\x65","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x74\x79\x70\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x63\x6F\x75\x6E\x74","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x47\x6C\x6F\x62\x61\x6C\x44\x75\x72\x61\x74\x69\x6F\x6E","\x76\x61\x6C\x75\x65","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x53\x55\x4D\x28\x64\x75\x72\x61\x74\x69\x6F\x6E\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x41\x76\x67\x44\x75\x72\x61\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x64\x75\x72\x61\x74\x69\x6F\x6E\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x41\x6E\x73\x77\x65\x72\x65\x64","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x41\x6E\x73\x77\x65\x72\x52\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x49\x46\x28\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3D\x22\x41\x4E\x53\x57\x45\x52\x45\x44\x22\x2C\x20\x31\x2C\x20\x30\x29\x29\x20\x2F\x20\x43\x4F\x55\x4E\x54\x28\x2A\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x4a03[0];var _=require(_0x4a03[1]);var logger=require(_0x4a03[3])(_0x4a03[2]);var sequelize=require(_0x4a03[5])[_0x4a03[4]];var ReportCall=require(_0x4a03[5])[_0x4a03[6]];var ReportCallHistory=require(_0x4a03[5])[_0x4a03[8]][_0x4a03[7]];var Util=require(_0x4a03[9]);var moment=require(_0x4a03[10]);function handleError(_0xe60cx9,_0xe60cxa){_0xe60cxa= _0xe60cxa|| 500;return function(_0xe60cxb){logger[_0x4a03[12]](_0xe60cxb[_0x4a03[11]]);_0xe60cx9[_0x4a03[14]](_0xe60cxa)[_0x4a03[13]](_0xe60cxb)}}function responseWithResult(_0xe60cx9,_0xe60cxa){_0xe60cxa= _0xe60cxa|| 200;return function(_0xe60cxd){if(_0xe60cxd){_0xe60cx9[_0x4a03[14]](_0xe60cxa)[_0x4a03[15]](_0xe60cxd)}}}function handleEntityNotFound(_0xe60cx9){return function(_0xe60cxd){if(!_0xe60cxd){_0xe60cx9[_0x4a03[14]](404)[_0x4a03[16]]();return null};return _0xe60cxd}}function saveUpdates(_0xe60cx10){return function(_0xe60cxd){return _0xe60cxd[_0x4a03[18]](_0xe60cx10)[_0x4a03[17]](function(_0xe60cx11){return _0xe60cx11})}}function removeEntity(_0xe60cx9){return function(_0xe60cxd){if(_0xe60cxd){return _0xe60cxd[_0x4a03[19]]()[_0x4a03[17]](function(){_0xe60cx9[_0x4a03[14]](204)[_0x4a03[16]]()})}}}exports[_0x4a03[20]]= function(_0xe60cx13,_0xe60cx9,_0xe60cx14){return ReportCall[_0x4a03[24]](Util[_0x4a03[23]](_0xe60cx13[_0x4a03[22]]))[_0x4a03[17]](function(_0xe60cx15){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]](_0xe60cx15)})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[25]]= function(_0xe60cx13,_0xe60cx9){if(_0xe60cx13[_0x4a03[27]][_0x4a03[26]]){delete _0xe60cx13[_0x4a03[27]][_0x4a03[26]]};return ReportCall[_0x4a03[30]]({where:{uniqueid:_0xe60cx13[_0x4a03[29]][_0x4a03[28]]}})[_0x4a03[17]](handleEntityNotFound(_0xe60cx9))[_0x4a03[17]](saveUpdates(_0xe60cx13[_0x4a03[27]]))[_0x4a03[17]](responseWithResult(_0xe60cx9))[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[31]]= function(_0xe60cx13,_0xe60cx9){return ReportCall[_0x4a03[30]]({where:{uniqueid:_0xe60cx13[_0x4a03[29]][_0x4a03[28]]}})[_0x4a03[17]](handleEntityNotFound(_0xe60cx9))[_0x4a03[17]](responseWithResult(_0xe60cx9))[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[32]]= function(_0xe60cx13,_0xe60cx9){return ReportCall[_0x4a03[51]]({where:{type:[_0x4a03[33],_0x4a03[35]],createdAt:{$gte:moment()[_0x4a03[49]](_0x4a03[48])}},attributes:[_0x4a03[50],_0x4a03[40],_0x4a03[43]],raw:true})[_0x4a03[17]](function(_0xe60cx16){var _0xe60cx17={};var _0xe60cx18=_[_0x4a03[34]](_0xe60cx16,{type:_0x4a03[33]});var _0xe60cx19=_[_0x4a03[34]](_0xe60cx16,{type:_0x4a03[35]});_0xe60cx17[_0x4a03[36]]= _0xe60cx18[_0x4a03[37]];_0xe60cx17[_0x4a03[35]]= _0xe60cx19[_0x4a03[37]];_0xe60cx17[_0x4a03[38]]= _[_0x4a03[41]](_0xe60cx18,_0x4a03[40])[_0x4a03[39]]|| 0;_0xe60cx17[_0x4a03[42]]= _[_0x4a03[44]](_0xe60cx18,_0x4a03[43]);if(_0xe60cx17[_0x4a03[38]]){_0xe60cx17[_0x4a03[45]]= _[_0x4a03[46]]((_[_0x4a03[44]](_0xe60cx18,_0x4a03[43])/ _0xe60cx17[_0x4a03[38]]));_0xe60cx17[_0x4a03[47]]= _[_0x4a03[46]](_0xe60cx17[_0x4a03[38]]/ _0xe60cx17[_0x4a03[36]]* 100,1)};return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]](_0xe60cx17)})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[52]]= function(_0xe60cx13,_0xe60cx9){return ReportCall[_0x4a03[53]]({where:{type:_0x4a03[33]}})[_0x4a03[17]](function(_0xe60cx16){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]]({value:_0xe60cx16})})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[54]]= function(_0xe60cx13,_0xe60cx9){return sequelize[_0x4a03[22]](_0x4a03[56],{type:sequelize[_0x4a03[58]][_0x4a03[57]]})[_0x4a03[17]](function(_0xe60cx16){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]]({value:_0xe60cx16[0][_0x4a03[55]]})})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[59]]= function(_0xe60cx13,_0xe60cx9){return sequelize[_0x4a03[22]](_0x4a03[60],{type:sequelize[_0x4a03[58]][_0x4a03[57]]})[_0x4a03[17]](function(_0xe60cx16){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]]({value:_0xe60cx16[0][_0x4a03[55]]})})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[61]]= function(_0xe60cx13,_0xe60cx9){return ReportCall[_0x4a03[53]]({where:{disposition:_0x4a03[39],type:_0x4a03[33]}})[_0x4a03[17]](function(_0xe60cx16){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]]({value:_0xe60cx16})})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[62]]= function(_0xe60cx13,_0xe60cx9){return sequelize[_0x4a03[22]](_0x4a03[63],{type:sequelize[_0x4a03[58]][_0x4a03[57]]})[_0x4a03[17]](function(_0xe60cx16){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]]({value:_0xe60cx16[0][_0x4a03[55]]})})[_0x4a03[21]](handleError(_0xe60cx9))};exports[_0x4a03[64]]= function(_0xe60cx13,_0xe60cx9){return ReportCallHistory[_0x4a03[64]]()[_0x4a03[17]](function(_0xe60cx1a){return _0xe60cx9[_0x4a03[14]](200)[_0x4a03[13]](_0xe60cx1a)})[_0x4a03[21]](handleError(_0xe60cx9))}
\ No newline at end of file
+var _0xc65c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x69\x64","\x62\x6F\x64\x79","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x73\x68\x6F\x77","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x66\x69\x6C\x74\x65\x72","\x74\x69\x67\x65\x72\x64\x69\x61\x6C","\x74\x6F\x74\x61\x6C","\x6C\x65\x6E\x67\x74\x68","\x61\x6E\x73\x77\x65\x72\x65\x64","\x41\x4E\x53\x57\x45\x52\x45\x44","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x63\x6F\x75\x6E\x74\x42\x79","\x73\x75\x6D\x44\x75\x72\x61\x74\x69\x6F\x6E","\x62\x69\x6C\x6C\x61\x62\x6C\x65\x73\x65\x63\x6F\x6E\x64\x73","\x73\x75\x6D\x42\x79","\x61\x76\x67\x44\x75\x72\x61\x74\x69\x6F\x6E","\x72\x6F\x75\x6E\x64","\x61\x6E\x73\x77\x65\x72\x52\x61\x74\x65","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x74\x79\x70\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x63\x6F\x75\x6E\x74","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x47\x6C\x6F\x62\x61\x6C\x44\x75\x72\x61\x74\x69\x6F\x6E","\x76\x61\x6C\x75\x65","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x53\x55\x4D\x28\x64\x75\x72\x61\x74\x69\x6F\x6E\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x41\x76\x67\x44\x75\x72\x61\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x64\x75\x72\x61\x74\x69\x6F\x6E\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x41\x6E\x73\x77\x65\x72\x65\x64","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64\x41\x6E\x73\x77\x65\x72\x52\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x49\x46\x28\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3D\x22\x41\x4E\x53\x57\x45\x52\x45\x44\x22\x2C\x20\x31\x2C\x20\x30\x29\x29\x20\x2F\x20\x43\x4F\x55\x4E\x54\x28\x2A\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x64\x65\x73\x63\x72\x69\x62\x65"];_0xc65c[0];var _=require(_0xc65c[1]);var logger=require(_0xc65c[3])(_0xc65c[2]);var sequelize=require(_0xc65c[5])[_0xc65c[4]];var ReportCall=require(_0xc65c[5])[_0xc65c[6]];var ReportCallHistory=require(_0xc65c[5])[_0xc65c[8]][_0xc65c[7]];var Util=require(_0xc65c[9]);var moment=require(_0xc65c[10]);function handleError(_0xe94dx9,_0xe94dxa){_0xe94dxa= _0xe94dxa|| 500;return function(_0xe94dxb){logger[_0xc65c[12]](_0xe94dxb[_0xc65c[11]]);_0xe94dx9[_0xc65c[14]](_0xe94dxa)[_0xc65c[13]](_0xe94dxb)}}function responseWithResult(_0xe94dx9,_0xe94dxa){_0xe94dxa= _0xe94dxa|| 200;return function(_0xe94dxd){if(_0xe94dxd){_0xe94dx9[_0xc65c[14]](_0xe94dxa)[_0xc65c[15]](_0xe94dxd)}}}function handleEntityNotFound(_0xe94dx9){return function(_0xe94dxd){if(!_0xe94dxd){_0xe94dx9[_0xc65c[14]](404)[_0xc65c[16]]();return null};return _0xe94dxd}}function saveUpdates(_0xe94dx10){return function(_0xe94dxd){return _0xe94dxd[_0xc65c[18]](_0xe94dx10)[_0xc65c[17]](function(_0xe94dx11){return _0xe94dx11})}}function removeEntity(_0xe94dx9){return function(_0xe94dxd){if(_0xe94dxd){return _0xe94dxd[_0xc65c[19]]()[_0xc65c[17]](function(){_0xe94dx9[_0xc65c[14]](204)[_0xc65c[16]]()})}}}exports[_0xc65c[20]]= function(_0xe94dx13,_0xe94dx9,_0xe94dx14){return ReportCall[_0xc65c[24]](Util[_0xc65c[23]](_0xe94dx13[_0xc65c[22]]))[_0xc65c[17]](function(_0xe94dx15){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]](_0xe94dx15)})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[25]]= function(_0xe94dx13,_0xe94dx9){if(_0xe94dx13[_0xc65c[27]][_0xc65c[26]]){delete _0xe94dx13[_0xc65c[27]][_0xc65c[26]]};return ReportCall[_0xc65c[30]]({where:{uniqueid:_0xe94dx13[_0xc65c[29]][_0xc65c[28]]}})[_0xc65c[17]](handleEntityNotFound(_0xe94dx9))[_0xc65c[17]](saveUpdates(_0xe94dx13[_0xc65c[27]]))[_0xc65c[17]](responseWithResult(_0xe94dx9))[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[31]]= function(_0xe94dx13,_0xe94dx9){return ReportCall[_0xc65c[30]]({where:{uniqueid:_0xe94dx13[_0xc65c[29]][_0xc65c[28]]}})[_0xc65c[17]](handleEntityNotFound(_0xe94dx9))[_0xc65c[17]](responseWithResult(_0xe94dx9))[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[32]]= function(_0xe94dx13,_0xe94dx9){return ReportCall[_0xc65c[51]]({where:{type:[_0xc65c[33],_0xc65c[35]],createdAt:{$gte:moment()[_0xc65c[49]](_0xc65c[48])}},attributes:[_0xc65c[50],_0xc65c[40],_0xc65c[43]],raw:true})[_0xc65c[17]](function(_0xe94dx16){var _0xe94dx17={};var _0xe94dx18=_[_0xc65c[34]](_0xe94dx16,{type:_0xc65c[33]});var _0xe94dx19=_[_0xc65c[34]](_0xe94dx16,{type:_0xc65c[35]});_0xe94dx17[_0xc65c[36]]= _0xe94dx18[_0xc65c[37]];_0xe94dx17[_0xc65c[35]]= _0xe94dx19[_0xc65c[37]];_0xe94dx17[_0xc65c[38]]= _[_0xc65c[41]](_0xe94dx18,_0xc65c[40])[_0xc65c[39]]|| 0;_0xe94dx17[_0xc65c[42]]= _[_0xc65c[44]](_0xe94dx18,_0xc65c[43]);if(_0xe94dx17[_0xc65c[38]]){_0xe94dx17[_0xc65c[45]]= _[_0xc65c[46]]((_[_0xc65c[44]](_0xe94dx18,_0xc65c[43])/ _0xe94dx17[_0xc65c[38]]));_0xe94dx17[_0xc65c[47]]= _[_0xc65c[46]](_0xe94dx17[_0xc65c[38]]/ _0xe94dx17[_0xc65c[36]]* 100,1)};return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]](_0xe94dx17)})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[52]]= function(_0xe94dx13,_0xe94dx9){return ReportCall[_0xc65c[53]]({where:{type:_0xc65c[33]}})[_0xc65c[17]](function(_0xe94dx16){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]]({value:_0xe94dx16})})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[54]]= function(_0xe94dx13,_0xe94dx9){return sequelize[_0xc65c[22]](_0xc65c[56],{type:sequelize[_0xc65c[58]][_0xc65c[57]]})[_0xc65c[17]](function(_0xe94dx16){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]]({value:_0xe94dx16[0][_0xc65c[55]]})})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[59]]= function(_0xe94dx13,_0xe94dx9){return sequelize[_0xc65c[22]](_0xc65c[60],{type:sequelize[_0xc65c[58]][_0xc65c[57]]})[_0xc65c[17]](function(_0xe94dx16){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]]({value:_0xe94dx16[0][_0xc65c[55]]})})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[61]]= function(_0xe94dx13,_0xe94dx9){return ReportCall[_0xc65c[53]]({where:{disposition:_0xc65c[39],type:_0xc65c[33]}})[_0xc65c[17]](function(_0xe94dx16){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]]({value:_0xe94dx16})})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[62]]= function(_0xe94dx13,_0xe94dx9){return sequelize[_0xc65c[22]](_0xc65c[63],{type:sequelize[_0xc65c[58]][_0xc65c[57]]})[_0xc65c[17]](function(_0xe94dx16){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]]({value:_0xe94dx16[0][_0xc65c[55]]})})[_0xc65c[21]](handleError(_0xe94dx9))};exports[_0xc65c[64]]= function(_0xe94dx13,_0xe94dx9){return ReportCallHistory[_0xc65c[64]]()[_0xc65c[17]](function(_0xe94dx1a){return _0xe94dx9[_0xc65c[14]](200)[_0xc65c[13]](_0xe94dx1a)})[_0xc65c[21]](handleError(_0xe94dx9))}
\ No newline at end of file