Built motion from commit 712a57186.|1.0.37
[motion.git] / server / api / report_call / report_call.controller.js
index 7e3fb3d..bf2c031 100644 (file)
@@ -1 +1 @@
-var _0x45e6=["\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"];_0x45e6[0];var _=require(_0x45e6[1]);var logger=require(_0x45e6[3])(_0x45e6[2]);var sequelize=require(_0x45e6[5])[_0x45e6[4]];var ReportCall=require(_0x45e6[5])[_0x45e6[6]];var ReportCallHistory=require(_0x45e6[5])[_0x45e6[8]][_0x45e6[7]];var Util=require(_0x45e6[9]);var moment=require(_0x45e6[10]);function handleError(_0x9ec3x9,_0x9ec3xa){_0x9ec3xa= _0x9ec3xa|| 500;return function(_0x9ec3xb){logger[_0x45e6[12]](_0x9ec3xb[_0x45e6[11]]);_0x9ec3x9[_0x45e6[14]](_0x9ec3xa)[_0x45e6[13]](_0x9ec3xb)}}function responseWithResult(_0x9ec3x9,_0x9ec3xa){_0x9ec3xa= _0x9ec3xa|| 200;return function(_0x9ec3xd){if(_0x9ec3xd){_0x9ec3x9[_0x45e6[14]](_0x9ec3xa)[_0x45e6[15]](_0x9ec3xd)}}}function handleEntityNotFound(_0x9ec3x9){return function(_0x9ec3xd){if(!_0x9ec3xd){_0x9ec3x9[_0x45e6[14]](404)[_0x45e6[16]]();return null};return _0x9ec3xd}}function saveUpdates(_0x9ec3x10){return function(_0x9ec3xd){return _0x9ec3xd[_0x45e6[18]](_0x9ec3x10)[_0x45e6[17]](function(_0x9ec3x11){return _0x9ec3x11})}}function removeEntity(_0x9ec3x9){return function(_0x9ec3xd){if(_0x9ec3xd){return _0x9ec3xd[_0x45e6[19]]()[_0x45e6[17]](function(){_0x9ec3x9[_0x45e6[14]](204)[_0x45e6[16]]()})}}}exports[_0x45e6[20]]= function(_0x9ec3x13,_0x9ec3x9,_0x9ec3x14){return ReportCall[_0x45e6[24]](Util[_0x45e6[23]](_0x9ec3x13[_0x45e6[22]]))[_0x45e6[17]](function(_0x9ec3x15){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]](_0x9ec3x15)})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[25]]= function(_0x9ec3x13,_0x9ec3x9){if(_0x9ec3x13[_0x45e6[27]][_0x45e6[26]]){delete _0x9ec3x13[_0x45e6[27]][_0x45e6[26]]};return ReportCall[_0x45e6[30]]({where:{uniqueid:_0x9ec3x13[_0x45e6[29]][_0x45e6[28]]}})[_0x45e6[17]](handleEntityNotFound(_0x9ec3x9))[_0x45e6[17]](saveUpdates(_0x9ec3x13[_0x45e6[27]]))[_0x45e6[17]](responseWithResult(_0x9ec3x9))[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[31]]= function(_0x9ec3x13,_0x9ec3x9){return ReportCall[_0x45e6[30]]({where:{uniqueid:_0x9ec3x13[_0x45e6[29]][_0x45e6[28]]}})[_0x45e6[17]](handleEntityNotFound(_0x9ec3x9))[_0x45e6[17]](responseWithResult(_0x9ec3x9))[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[32]]= function(_0x9ec3x13,_0x9ec3x9){return ReportCall[_0x45e6[51]]({where:{type:[_0x45e6[33],_0x45e6[35]],createdAt:{$gte:moment()[_0x45e6[49]](_0x45e6[48])}},attributes:[_0x45e6[50],_0x45e6[40],_0x45e6[43]],raw:true})[_0x45e6[17]](function(_0x9ec3x16){var _0x9ec3x17={};var _0x9ec3x18=_[_0x45e6[34]](_0x9ec3x16,{type:_0x45e6[33]});var _0x9ec3x19=_[_0x45e6[34]](_0x9ec3x16,{type:_0x45e6[35]});_0x9ec3x17[_0x45e6[36]]= _0x9ec3x18[_0x45e6[37]];_0x9ec3x17[_0x45e6[35]]= _0x9ec3x19[_0x45e6[37]];_0x9ec3x17[_0x45e6[38]]= _[_0x45e6[41]](_0x9ec3x18,_0x45e6[40])[_0x45e6[39]]|| 0;_0x9ec3x17[_0x45e6[42]]= _[_0x45e6[44]](_0x9ec3x18,_0x45e6[43]);_0x9ec3x17[_0x45e6[45]]= _0x9ec3x17[_0x45e6[38]]?_[_0x45e6[46]]((_[_0x45e6[44]](_0x9ec3x18,_0x45e6[43])/ _0x9ec3x17[_0x45e6[38]])):0;_0x9ec3x17[_0x45e6[47]]= _0x9ec3x17[_0x45e6[38]]?_[_0x45e6[46]](_0x9ec3x17[_0x45e6[38]]/ _0x9ec3x17[_0x45e6[36]]* 100,1):0;return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]](_0x9ec3x17)})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[52]]= function(_0x9ec3x13,_0x9ec3x9){return ReportCall[_0x45e6[53]]({where:{type:_0x45e6[33]}})[_0x45e6[17]](function(_0x9ec3x16){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]]({value:_0x9ec3x16})})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[54]]= function(_0x9ec3x13,_0x9ec3x9){return sequelize[_0x45e6[22]](_0x45e6[56],{type:sequelize[_0x45e6[58]][_0x45e6[57]]})[_0x45e6[17]](function(_0x9ec3x16){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]]({value:_0x9ec3x16[0][_0x45e6[55]]})})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[59]]= function(_0x9ec3x13,_0x9ec3x9){return sequelize[_0x45e6[22]](_0x45e6[60],{type:sequelize[_0x45e6[58]][_0x45e6[57]]})[_0x45e6[17]](function(_0x9ec3x16){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]]({value:_0x9ec3x16[0][_0x45e6[55]]})})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[61]]= function(_0x9ec3x13,_0x9ec3x9){return ReportCall[_0x45e6[53]]({where:{disposition:_0x45e6[39],type:_0x45e6[33]}})[_0x45e6[17]](function(_0x9ec3x16){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]]({value:_0x9ec3x16})})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[62]]= function(_0x9ec3x13,_0x9ec3x9){return sequelize[_0x45e6[22]](_0x45e6[63],{type:sequelize[_0x45e6[58]][_0x45e6[57]]})[_0x45e6[17]](function(_0x9ec3x16){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]]({value:_0x9ec3x16[0][_0x45e6[55]]})})[_0x45e6[21]](handleError(_0x9ec3x9))};exports[_0x45e6[64]]= function(_0x9ec3x13,_0x9ec3x9){return ReportCallHistory[_0x45e6[64]]()[_0x45e6[17]](function(_0x9ec3x1a){return _0x9ec3x9[_0x45e6[14]](200)[_0x45e6[13]](_0x9ec3x1a)})[_0x45e6[21]](handleError(_0x9ec3x9))}
\ No newline at end of file
+var _0xff9a=["\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"];_0xff9a[0];var _=require(_0xff9a[1]);var logger=require(_0xff9a[3])(_0xff9a[2]);var sequelize=require(_0xff9a[5])[_0xff9a[4]];var ReportCall=require(_0xff9a[5])[_0xff9a[6]];var ReportCallHistory=require(_0xff9a[5])[_0xff9a[8]][_0xff9a[7]];var Util=require(_0xff9a[9]);var moment=require(_0xff9a[10]);function handleError(_0x4485x9,_0x4485xa){_0x4485xa= _0x4485xa|| 500;return function(_0x4485xb){logger[_0xff9a[12]](_0x4485xb[_0xff9a[11]]);_0x4485x9[_0xff9a[14]](_0x4485xa)[_0xff9a[13]](_0x4485xb)}}function responseWithResult(_0x4485x9,_0x4485xa){_0x4485xa= _0x4485xa|| 200;return function(_0x4485xd){if(_0x4485xd){_0x4485x9[_0xff9a[14]](_0x4485xa)[_0xff9a[15]](_0x4485xd)}}}function handleEntityNotFound(_0x4485x9){return function(_0x4485xd){if(!_0x4485xd){_0x4485x9[_0xff9a[14]](404)[_0xff9a[16]]();return null};return _0x4485xd}}function saveUpdates(_0x4485x10){return function(_0x4485xd){return _0x4485xd[_0xff9a[18]](_0x4485x10)[_0xff9a[17]](function(_0x4485x11){return _0x4485x11})}}function removeEntity(_0x4485x9){return function(_0x4485xd){if(_0x4485xd){return _0x4485xd[_0xff9a[19]]()[_0xff9a[17]](function(){_0x4485x9[_0xff9a[14]](204)[_0xff9a[16]]()})}}}exports[_0xff9a[20]]= function(_0x4485x13,_0x4485x9,_0x4485x14){return ReportCall[_0xff9a[24]](Util[_0xff9a[23]](_0x4485x13[_0xff9a[22]]))[_0xff9a[17]](function(_0x4485x15){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]](_0x4485x15)})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[25]]= function(_0x4485x13,_0x4485x9){if(_0x4485x13[_0xff9a[27]][_0xff9a[26]]){delete _0x4485x13[_0xff9a[27]][_0xff9a[26]]};return ReportCall[_0xff9a[30]]({where:{uniqueid:_0x4485x13[_0xff9a[29]][_0xff9a[28]]}})[_0xff9a[17]](handleEntityNotFound(_0x4485x9))[_0xff9a[17]](saveUpdates(_0x4485x13[_0xff9a[27]]))[_0xff9a[17]](responseWithResult(_0x4485x9))[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[31]]= function(_0x4485x13,_0x4485x9){return ReportCall[_0xff9a[30]]({where:{uniqueid:_0x4485x13[_0xff9a[29]][_0xff9a[28]]}})[_0xff9a[17]](handleEntityNotFound(_0x4485x9))[_0xff9a[17]](responseWithResult(_0x4485x9))[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[32]]= function(_0x4485x13,_0x4485x9){return ReportCall[_0xff9a[51]]({where:{type:[_0xff9a[33],_0xff9a[35]],createdAt:{$gte:moment()[_0xff9a[49]](_0xff9a[48])}},attributes:[_0xff9a[50],_0xff9a[40],_0xff9a[43]],raw:true})[_0xff9a[17]](function(_0x4485x16){var _0x4485x17={};var _0x4485x18=_[_0xff9a[34]](_0x4485x16,{type:_0xff9a[33]});var _0x4485x19=_[_0xff9a[34]](_0x4485x16,{type:_0xff9a[35]});_0x4485x17[_0xff9a[36]]= _0x4485x18[_0xff9a[37]];_0x4485x17[_0xff9a[35]]= _0x4485x19[_0xff9a[37]];_0x4485x17[_0xff9a[38]]= _[_0xff9a[41]](_0x4485x18,_0xff9a[40])[_0xff9a[39]]|| 0;_0x4485x17[_0xff9a[42]]= _[_0xff9a[44]](_0x4485x18,_0xff9a[43]);_0x4485x17[_0xff9a[45]]= _0x4485x17[_0xff9a[38]]?_[_0xff9a[46]]((_[_0xff9a[44]](_0x4485x18,_0xff9a[43])/ _0x4485x17[_0xff9a[38]])):0;_0x4485x17[_0xff9a[47]]= _0x4485x17[_0xff9a[38]]?_[_0xff9a[46]](_0x4485x17[_0xff9a[38]]/ _0x4485x17[_0xff9a[36]]* 100,1):0;return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]](_0x4485x17)})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[52]]= function(_0x4485x13,_0x4485x9){return ReportCall[_0xff9a[53]]({where:{type:_0xff9a[33]}})[_0xff9a[17]](function(_0x4485x16){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]]({value:_0x4485x16})})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[54]]= function(_0x4485x13,_0x4485x9){return sequelize[_0xff9a[22]](_0xff9a[56],{type:sequelize[_0xff9a[58]][_0xff9a[57]]})[_0xff9a[17]](function(_0x4485x16){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]]({value:_0x4485x16[0][_0xff9a[55]]})})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[59]]= function(_0x4485x13,_0x4485x9){return sequelize[_0xff9a[22]](_0xff9a[60],{type:sequelize[_0xff9a[58]][_0xff9a[57]]})[_0xff9a[17]](function(_0x4485x16){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]]({value:_0x4485x16[0][_0xff9a[55]]})})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[61]]= function(_0x4485x13,_0x4485x9){return ReportCall[_0xff9a[53]]({where:{disposition:_0xff9a[39],type:_0xff9a[33]}})[_0xff9a[17]](function(_0x4485x16){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]]({value:_0x4485x16})})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[62]]= function(_0x4485x13,_0x4485x9){return sequelize[_0xff9a[22]](_0xff9a[63],{type:sequelize[_0xff9a[58]][_0xff9a[57]]})[_0xff9a[17]](function(_0x4485x16){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]]({value:_0x4485x16[0][_0xff9a[55]]})})[_0xff9a[21]](handleError(_0x4485x9))};exports[_0xff9a[64]]= function(_0x4485x13,_0x4485x9){return ReportCallHistory[_0xff9a[64]]()[_0xff9a[17]](function(_0x4485x1a){return _0x4485x9[_0xff9a[14]](200)[_0xff9a[13]](_0x4485x1a)})[_0xff9a[21]](handleError(_0x4485x9))}
\ No newline at end of file