Built motion from commit dff3aec7b.|1.0.31
[motion.git] / server / api / report_call / report_call.controller.js
index 303306b..e23301b 100644 (file)
@@ -1 +1 @@
-var _0xc6da=["\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"];_0xc6da[0];var _=require(_0xc6da[1]);var logger=require(_0xc6da[3])(_0xc6da[2]);var sequelize=require(_0xc6da[5])[_0xc6da[4]];var ReportCall=require(_0xc6da[5])[_0xc6da[6]];var ReportCallHistory=require(_0xc6da[5])[_0xc6da[8]][_0xc6da[7]];var Util=require(_0xc6da[9]);var moment=require(_0xc6da[10]);function handleError(_0x5418x9,_0x5418xa){_0x5418xa= _0x5418xa|| 500;return function(_0x5418xb){logger[_0xc6da[12]](_0x5418xb[_0xc6da[11]]);_0x5418x9[_0xc6da[14]](_0x5418xa)[_0xc6da[13]](_0x5418xb)}}function responseWithResult(_0x5418x9,_0x5418xa){_0x5418xa= _0x5418xa|| 200;return function(_0x5418xd){if(_0x5418xd){_0x5418x9[_0xc6da[14]](_0x5418xa)[_0xc6da[15]](_0x5418xd)}}}function handleEntityNotFound(_0x5418x9){return function(_0x5418xd){if(!_0x5418xd){_0x5418x9[_0xc6da[14]](404)[_0xc6da[16]]();return null};return _0x5418xd}}function saveUpdates(_0x5418x10){return function(_0x5418xd){return _0x5418xd[_0xc6da[18]](_0x5418x10)[_0xc6da[17]](function(_0x5418x11){return _0x5418x11})}}function removeEntity(_0x5418x9){return function(_0x5418xd){if(_0x5418xd){return _0x5418xd[_0xc6da[19]]()[_0xc6da[17]](function(){_0x5418x9[_0xc6da[14]](204)[_0xc6da[16]]()})}}}exports[_0xc6da[20]]= function(_0x5418x13,_0x5418x9,_0x5418x14){return ReportCall[_0xc6da[24]](Util[_0xc6da[23]](_0x5418x13[_0xc6da[22]]))[_0xc6da[17]](function(_0x5418x15){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]](_0x5418x15)})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[25]]= function(_0x5418x13,_0x5418x9){if(_0x5418x13[_0xc6da[27]][_0xc6da[26]]){delete _0x5418x13[_0xc6da[27]][_0xc6da[26]]};return ReportCall[_0xc6da[30]]({where:{uniqueid:_0x5418x13[_0xc6da[29]][_0xc6da[28]]}})[_0xc6da[17]](handleEntityNotFound(_0x5418x9))[_0xc6da[17]](saveUpdates(_0x5418x13[_0xc6da[27]]))[_0xc6da[17]](responseWithResult(_0x5418x9))[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[31]]= function(_0x5418x13,_0x5418x9){return ReportCall[_0xc6da[30]]({where:{uniqueid:_0x5418x13[_0xc6da[29]][_0xc6da[28]]}})[_0xc6da[17]](handleEntityNotFound(_0x5418x9))[_0xc6da[17]](responseWithResult(_0x5418x9))[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[32]]= function(_0x5418x13,_0x5418x9){return ReportCall[_0xc6da[51]]({where:{type:[_0xc6da[33],_0xc6da[35]],createdAt:{$gte:moment()[_0xc6da[49]](_0xc6da[48])}},attributes:[_0xc6da[50],_0xc6da[40],_0xc6da[43]],raw:true})[_0xc6da[17]](function(_0x5418x16){var _0x5418x17={};var _0x5418x18=_[_0xc6da[34]](_0x5418x16,{type:_0xc6da[33]});var _0x5418x19=_[_0xc6da[34]](_0x5418x16,{type:_0xc6da[35]});_0x5418x17[_0xc6da[36]]= _0x5418x18[_0xc6da[37]];_0x5418x17[_0xc6da[35]]= _0x5418x19[_0xc6da[37]];_0x5418x17[_0xc6da[38]]= _[_0xc6da[41]](_0x5418x18,_0xc6da[40])[_0xc6da[39]]|| 0;_0x5418x17[_0xc6da[42]]= _[_0xc6da[44]](_0x5418x18,_0xc6da[43]);_0x5418x17[_0xc6da[45]]= _0x5418x17[_0xc6da[38]]?_[_0xc6da[46]]((_[_0xc6da[44]](_0x5418x18,_0xc6da[43])/ _0x5418x17[_0xc6da[38]])):0;_0x5418x17[_0xc6da[47]]= _0x5418x17[_0xc6da[38]]?_[_0xc6da[46]](_0x5418x17[_0xc6da[38]]/ _0x5418x17[_0xc6da[36]]* 100,1):0;return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]](_0x5418x17)})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[52]]= function(_0x5418x13,_0x5418x9){return ReportCall[_0xc6da[53]]({where:{type:_0xc6da[33]}})[_0xc6da[17]](function(_0x5418x16){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]]({value:_0x5418x16})})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[54]]= function(_0x5418x13,_0x5418x9){return sequelize[_0xc6da[22]](_0xc6da[56],{type:sequelize[_0xc6da[58]][_0xc6da[57]]})[_0xc6da[17]](function(_0x5418x16){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]]({value:_0x5418x16[0][_0xc6da[55]]})})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[59]]= function(_0x5418x13,_0x5418x9){return sequelize[_0xc6da[22]](_0xc6da[60],{type:sequelize[_0xc6da[58]][_0xc6da[57]]})[_0xc6da[17]](function(_0x5418x16){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]]({value:_0x5418x16[0][_0xc6da[55]]})})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[61]]= function(_0x5418x13,_0x5418x9){return ReportCall[_0xc6da[53]]({where:{disposition:_0xc6da[39],type:_0xc6da[33]}})[_0xc6da[17]](function(_0x5418x16){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]]({value:_0x5418x16})})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[62]]= function(_0x5418x13,_0x5418x9){return sequelize[_0xc6da[22]](_0xc6da[63],{type:sequelize[_0xc6da[58]][_0xc6da[57]]})[_0xc6da[17]](function(_0x5418x16){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]]({value:_0x5418x16[0][_0xc6da[55]]})})[_0xc6da[21]](handleError(_0x5418x9))};exports[_0xc6da[64]]= function(_0x5418x13,_0x5418x9){return ReportCallHistory[_0xc6da[64]]()[_0xc6da[17]](function(_0x5418x1a){return _0x5418x9[_0xc6da[14]](200)[_0xc6da[13]](_0x5418x1a)})[_0xc6da[21]](handleError(_0x5418x9))}
\ No newline at end of file
+var _0xe3d9=["\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"];_0xe3d9[0];var _=require(_0xe3d9[1]);var logger=require(_0xe3d9[3])(_0xe3d9[2]);var sequelize=require(_0xe3d9[5])[_0xe3d9[4]];var ReportCall=require(_0xe3d9[5])[_0xe3d9[6]];var ReportCallHistory=require(_0xe3d9[5])[_0xe3d9[8]][_0xe3d9[7]];var Util=require(_0xe3d9[9]);var moment=require(_0xe3d9[10]);function handleError(_0xc552x9,_0xc552xa){_0xc552xa= _0xc552xa|| 500;return function(_0xc552xb){logger[_0xe3d9[12]](_0xc552xb[_0xe3d9[11]]);_0xc552x9[_0xe3d9[14]](_0xc552xa)[_0xe3d9[13]](_0xc552xb)}}function responseWithResult(_0xc552x9,_0xc552xa){_0xc552xa= _0xc552xa|| 200;return function(_0xc552xd){if(_0xc552xd){_0xc552x9[_0xe3d9[14]](_0xc552xa)[_0xe3d9[15]](_0xc552xd)}}}function handleEntityNotFound(_0xc552x9){return function(_0xc552xd){if(!_0xc552xd){_0xc552x9[_0xe3d9[14]](404)[_0xe3d9[16]]();return null};return _0xc552xd}}function saveUpdates(_0xc552x10){return function(_0xc552xd){return _0xc552xd[_0xe3d9[18]](_0xc552x10)[_0xe3d9[17]](function(_0xc552x11){return _0xc552x11})}}function removeEntity(_0xc552x9){return function(_0xc552xd){if(_0xc552xd){return _0xc552xd[_0xe3d9[19]]()[_0xe3d9[17]](function(){_0xc552x9[_0xe3d9[14]](204)[_0xe3d9[16]]()})}}}exports[_0xe3d9[20]]= function(_0xc552x13,_0xc552x9,_0xc552x14){return ReportCall[_0xe3d9[24]](Util[_0xe3d9[23]](_0xc552x13[_0xe3d9[22]]))[_0xe3d9[17]](function(_0xc552x15){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]](_0xc552x15)})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[25]]= function(_0xc552x13,_0xc552x9){if(_0xc552x13[_0xe3d9[27]][_0xe3d9[26]]){delete _0xc552x13[_0xe3d9[27]][_0xe3d9[26]]};return ReportCall[_0xe3d9[30]]({where:{uniqueid:_0xc552x13[_0xe3d9[29]][_0xe3d9[28]]}})[_0xe3d9[17]](handleEntityNotFound(_0xc552x9))[_0xe3d9[17]](saveUpdates(_0xc552x13[_0xe3d9[27]]))[_0xe3d9[17]](responseWithResult(_0xc552x9))[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[31]]= function(_0xc552x13,_0xc552x9){return ReportCall[_0xe3d9[30]]({where:{uniqueid:_0xc552x13[_0xe3d9[29]][_0xe3d9[28]]}})[_0xe3d9[17]](handleEntityNotFound(_0xc552x9))[_0xe3d9[17]](responseWithResult(_0xc552x9))[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[32]]= function(_0xc552x13,_0xc552x9){return ReportCall[_0xe3d9[51]]({where:{type:[_0xe3d9[33],_0xe3d9[35]],createdAt:{$gte:moment()[_0xe3d9[49]](_0xe3d9[48])}},attributes:[_0xe3d9[50],_0xe3d9[40],_0xe3d9[43]],raw:true})[_0xe3d9[17]](function(_0xc552x16){var _0xc552x17={};var _0xc552x18=_[_0xe3d9[34]](_0xc552x16,{type:_0xe3d9[33]});var _0xc552x19=_[_0xe3d9[34]](_0xc552x16,{type:_0xe3d9[35]});_0xc552x17[_0xe3d9[36]]= _0xc552x18[_0xe3d9[37]];_0xc552x17[_0xe3d9[35]]= _0xc552x19[_0xe3d9[37]];_0xc552x17[_0xe3d9[38]]= _[_0xe3d9[41]](_0xc552x18,_0xe3d9[40])[_0xe3d9[39]]|| 0;_0xc552x17[_0xe3d9[42]]= _[_0xe3d9[44]](_0xc552x18,_0xe3d9[43]);_0xc552x17[_0xe3d9[45]]= _0xc552x17[_0xe3d9[38]]?_[_0xe3d9[46]]((_[_0xe3d9[44]](_0xc552x18,_0xe3d9[43])/ _0xc552x17[_0xe3d9[38]])):0;_0xc552x17[_0xe3d9[47]]= _0xc552x17[_0xe3d9[38]]?_[_0xe3d9[46]](_0xc552x17[_0xe3d9[38]]/ _0xc552x17[_0xe3d9[36]]* 100,1):0;return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]](_0xc552x17)})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[52]]= function(_0xc552x13,_0xc552x9){return ReportCall[_0xe3d9[53]]({where:{type:_0xe3d9[33]}})[_0xe3d9[17]](function(_0xc552x16){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]]({value:_0xc552x16})})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[54]]= function(_0xc552x13,_0xc552x9){return sequelize[_0xe3d9[22]](_0xe3d9[56],{type:sequelize[_0xe3d9[58]][_0xe3d9[57]]})[_0xe3d9[17]](function(_0xc552x16){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]]({value:_0xc552x16[0][_0xe3d9[55]]})})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[59]]= function(_0xc552x13,_0xc552x9){return sequelize[_0xe3d9[22]](_0xe3d9[60],{type:sequelize[_0xe3d9[58]][_0xe3d9[57]]})[_0xe3d9[17]](function(_0xc552x16){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]]({value:_0xc552x16[0][_0xe3d9[55]]})})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[61]]= function(_0xc552x13,_0xc552x9){return ReportCall[_0xe3d9[53]]({where:{disposition:_0xe3d9[39],type:_0xe3d9[33]}})[_0xe3d9[17]](function(_0xc552x16){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]]({value:_0xc552x16})})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[62]]= function(_0xc552x13,_0xc552x9){return sequelize[_0xe3d9[22]](_0xe3d9[63],{type:sequelize[_0xe3d9[58]][_0xe3d9[57]]})[_0xe3d9[17]](function(_0xc552x16){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]]({value:_0xc552x16[0][_0xe3d9[55]]})})[_0xe3d9[21]](handleError(_0xc552x9))};exports[_0xe3d9[64]]= function(_0xc552x13,_0xc552x9){return ReportCallHistory[_0xe3d9[64]]()[_0xe3d9[17]](function(_0xc552x1a){return _0xc552x9[_0xe3d9[14]](200)[_0xe3d9[13]](_0xc552x1a)})[_0xe3d9[21]](handleError(_0xc552x9))}
\ No newline at end of file