Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / api / report_dial / report_dial.controller.js
index f0e0671..7de4029 100644 (file)
@@ -1 +1 @@
-var _0x2faf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\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\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\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","\x6C\x6F\x67","\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","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x72\x6F\x77\x73","\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x70\x6C\x69\x74","\x6E\x61\x6D\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6C\x65\x6E\x67\x74\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","\x61\x63\x74\x69\x76\x65\x43\x61\x6C\x6C\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x2faf[0];var _=require(_0x2faf[1]);var sequelize=require(_0x2faf[3])[_0x2faf[2]];var ReportDial=require(_0x2faf[3])[_0x2faf[4]];var ReportDialHistory=require(_0x2faf[3])[_0x2faf[6]][_0x2faf[5]];var Util=require(_0x2faf[7]);function handleError(_0x76bfx7,_0x76bfx8){_0x76bfx8= _0x76bfx8|| 500;return function(_0x76bfx9){console[_0x2faf[8]](_0x76bfx9);_0x76bfx7[_0x2faf[10]](_0x76bfx8)[_0x2faf[9]](_0x76bfx9)}}function responseWithResult(_0x76bfx7,_0x76bfx8){_0x76bfx8= _0x76bfx8|| 200;return function(_0x76bfxb){if(_0x76bfxb){_0x76bfx7[_0x2faf[10]](_0x76bfx8)[_0x2faf[11]](_0x76bfxb)}}}function handleEntityNotFound(_0x76bfx7){return function(_0x76bfxb){if(!_0x76bfxb){_0x76bfx7[_0x2faf[10]](404)[_0x2faf[12]]();return null};return _0x76bfxb}}function saveUpdates(_0x76bfxe){return function(_0x76bfxb){return _0x76bfxb[_0x2faf[14]](_0x76bfxe)[_0x2faf[13]](function(_0x76bfxf){return _0x76bfxf})}}function removeEntity(_0x76bfx7){return function(_0x76bfxb){if(_0x76bfxb){return _0x76bfxb[_0x2faf[15]]()[_0x2faf[13]](function(){_0x76bfx7[_0x2faf[10]](204)[_0x2faf[12]]()})}}}exports[_0x2faf[16]]= function(_0x76bfx11,_0x76bfx7,_0x76bfx12){return ReportDial[_0x2faf[30]](Util[_0x2faf[29]](_0x76bfx11[_0x2faf[28]]))[_0x2faf[13]](function(_0x76bfx13){if(_0x76bfx11[_0x2faf[19]][_0x2faf[18]]=== _0x2faf[20]){var _0x76bfx14=[];_[_0x2faf[26]](_0x76bfx13[_0x2faf[21]],function(_0x76bfx15){if(_0x76bfx15[_0x2faf[22]]&& _0x76bfx15[_0x2faf[22]][_0x2faf[23]](/\/|-/)[1]=== _0x76bfx11[_0x2faf[19]][_0x2faf[24]]){_0x76bfx14[_0x2faf[25]](_0x76bfx15)}});return {rows:_0x76bfx14,count:_0x76bfx14[_0x2faf[27]]}};return _0x76bfx13})[_0x2faf[13]](function(_0x76bfx13){return _0x76bfx7[_0x2faf[10]](200)[_0x2faf[9]](_0x76bfx13)})[_0x2faf[17]](handleError(_0x76bfx7))};exports[_0x2faf[31]]= function(_0x76bfx11,_0x76bfx7){return ReportDial[_0x2faf[32]](Util[_0x2faf[29]](_0x76bfx11[_0x2faf[28]],{endtime:null}))[_0x2faf[13]](function(_0x76bfx13){return _0x76bfx7[_0x2faf[10]](200)[_0x2faf[9]]({rows:_0x76bfx13,count:_0x76bfx13[_0x2faf[27]]})})[_0x2faf[17]](handleError(_0x76bfx7))};exports[_0x2faf[33]]= function(_0x76bfx11,_0x76bfx7){return ReportDialHistory[_0x2faf[33]]()[_0x2faf[13]](function(_0x76bfx16){return _0x76bfx7[_0x2faf[10]](200)[_0x2faf[9]](_0x76bfx16)})[_0x2faf[17]](handleError(_0x76bfx7))}
\ No newline at end of file
+var _0x3bd5=["\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\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\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","\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","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x72\x6F\x77\x73","\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x70\x6C\x69\x74","\x6E\x61\x6D\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6C\x65\x6E\x67\x74\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","\x61\x63\x74\x69\x76\x65\x43\x61\x6C\x6C\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x3bd5[0];var _=require(_0x3bd5[1]);var logger=require(_0x3bd5[3])(_0x3bd5[2]);var sequelize=require(_0x3bd5[5])[_0x3bd5[4]];var ReportDial=require(_0x3bd5[5])[_0x3bd5[6]];var ReportDialHistory=require(_0x3bd5[5])[_0x3bd5[8]][_0x3bd5[7]];var Util=require(_0x3bd5[9]);function handleError(_0xcecfx8,_0xcecfx9){_0xcecfx9= _0xcecfx9|| 500;return function(_0xcecfxa){logger[_0x3bd5[11]](_0xcecfxa[_0x3bd5[10]]);_0xcecfx8[_0x3bd5[13]](_0xcecfx9)[_0x3bd5[12]](_0xcecfxa)}}function responseWithResult(_0xcecfx8,_0xcecfx9){_0xcecfx9= _0xcecfx9|| 200;return function(_0xcecfxc){if(_0xcecfxc){_0xcecfx8[_0x3bd5[13]](_0xcecfx9)[_0x3bd5[14]](_0xcecfxc)}}}function handleEntityNotFound(_0xcecfx8){return function(_0xcecfxc){if(!_0xcecfxc){_0xcecfx8[_0x3bd5[13]](404)[_0x3bd5[15]]();return null};return _0xcecfxc}}function saveUpdates(_0xcecfxf){return function(_0xcecfxc){return _0xcecfxc[_0x3bd5[17]](_0xcecfxf)[_0x3bd5[16]](function(_0xcecfx10){return _0xcecfx10})}}function removeEntity(_0xcecfx8){return function(_0xcecfxc){if(_0xcecfxc){return _0xcecfxc[_0x3bd5[18]]()[_0x3bd5[16]](function(){_0xcecfx8[_0x3bd5[13]](204)[_0x3bd5[15]]()})}}}exports[_0x3bd5[19]]= function(_0xcecfx12,_0xcecfx8,_0xcecfx13){return ReportDial[_0x3bd5[33]](Util[_0x3bd5[32]](_0xcecfx12[_0x3bd5[31]]))[_0x3bd5[16]](function(_0xcecfx14){if(_0xcecfx12[_0x3bd5[22]][_0x3bd5[21]]=== _0x3bd5[23]){var _0xcecfx15=[];_[_0x3bd5[29]](_0xcecfx14[_0x3bd5[24]],function(_0xcecfx16){if(_0xcecfx16[_0x3bd5[25]]&& _0xcecfx16[_0x3bd5[25]][_0x3bd5[26]](/\/|-/)[1]=== _0xcecfx12[_0x3bd5[22]][_0x3bd5[27]]){_0xcecfx15[_0x3bd5[28]](_0xcecfx16)}});return {rows:_0xcecfx15,count:_0xcecfx15[_0x3bd5[30]]}};return _0xcecfx14})[_0x3bd5[16]](function(_0xcecfx14){return _0xcecfx8[_0x3bd5[13]](200)[_0x3bd5[12]](_0xcecfx14)})[_0x3bd5[20]](handleError(_0xcecfx8))};exports[_0x3bd5[34]]= function(_0xcecfx12,_0xcecfx8){return ReportDial[_0x3bd5[35]](Util[_0x3bd5[32]](_0xcecfx12[_0x3bd5[31]],{endtime:null}))[_0x3bd5[16]](function(_0xcecfx14){return _0xcecfx8[_0x3bd5[13]](200)[_0x3bd5[12]]({rows:_0xcecfx14,count:_0xcecfx14[_0x3bd5[30]]})})[_0x3bd5[20]](handleError(_0xcecfx8))};exports[_0x3bd5[36]]= function(_0xcecfx12,_0xcecfx8){return ReportDialHistory[_0x3bd5[36]]()[_0x3bd5[16]](function(_0xcecfx17){return _0xcecfx8[_0x3bd5[13]](200)[_0x3bd5[12]](_0xcecfx17)})[_0x3bd5[20]](handleError(_0xcecfx8))}
\ No newline at end of file