Built motion from commit 3848e0076.|1.0.27
[motion.git] / server / api / report_dial / report_dial.controller.js
index e2a6e86..8c85d85 100644 (file)
@@ -1 +1 @@
-var _0xdaf8=["\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"];_0xdaf8[0];var _=require(_0xdaf8[1]);var logger=require(_0xdaf8[3])(_0xdaf8[2]);var sequelize=require(_0xdaf8[5])[_0xdaf8[4]];var ReportDial=require(_0xdaf8[5])[_0xdaf8[6]];var ReportDialHistory=require(_0xdaf8[5])[_0xdaf8[8]][_0xdaf8[7]];var Util=require(_0xdaf8[9]);function handleError(_0xec5fx8,_0xec5fx9){_0xec5fx9= _0xec5fx9|| 500;return function(_0xec5fxa){logger[_0xdaf8[11]](_0xec5fxa[_0xdaf8[10]]);_0xec5fx8[_0xdaf8[13]](_0xec5fx9)[_0xdaf8[12]](_0xec5fxa)}}function responseWithResult(_0xec5fx8,_0xec5fx9){_0xec5fx9= _0xec5fx9|| 200;return function(_0xec5fxc){if(_0xec5fxc){_0xec5fx8[_0xdaf8[13]](_0xec5fx9)[_0xdaf8[14]](_0xec5fxc)}}}function handleEntityNotFound(_0xec5fx8){return function(_0xec5fxc){if(!_0xec5fxc){_0xec5fx8[_0xdaf8[13]](404)[_0xdaf8[15]]();return null};return _0xec5fxc}}function saveUpdates(_0xec5fxf){return function(_0xec5fxc){return _0xec5fxc[_0xdaf8[17]](_0xec5fxf)[_0xdaf8[16]](function(_0xec5fx10){return _0xec5fx10})}}function removeEntity(_0xec5fx8){return function(_0xec5fxc){if(_0xec5fxc){return _0xec5fxc[_0xdaf8[18]]()[_0xdaf8[16]](function(){_0xec5fx8[_0xdaf8[13]](204)[_0xdaf8[15]]()})}}}exports[_0xdaf8[19]]= function(_0xec5fx12,_0xec5fx8,_0xec5fx13){return ReportDial[_0xdaf8[33]](Util[_0xdaf8[32]](_0xec5fx12[_0xdaf8[31]]))[_0xdaf8[16]](function(_0xec5fx14){if(_0xec5fx12[_0xdaf8[22]][_0xdaf8[21]]=== _0xdaf8[23]){var _0xec5fx15=[];_[_0xdaf8[29]](_0xec5fx14[_0xdaf8[24]],function(_0xec5fx16){if(_0xec5fx16[_0xdaf8[25]]&& _0xec5fx16[_0xdaf8[25]][_0xdaf8[26]](/\/|-/)[1]=== _0xec5fx12[_0xdaf8[22]][_0xdaf8[27]]){_0xec5fx15[_0xdaf8[28]](_0xec5fx16)}});return {rows:_0xec5fx15,count:_0xec5fx15[_0xdaf8[30]]}};return _0xec5fx14})[_0xdaf8[16]](function(_0xec5fx14){return _0xec5fx8[_0xdaf8[13]](200)[_0xdaf8[12]](_0xec5fx14)})[_0xdaf8[20]](handleError(_0xec5fx8))};exports[_0xdaf8[34]]= function(_0xec5fx12,_0xec5fx8){return ReportDial[_0xdaf8[35]](Util[_0xdaf8[32]](_0xec5fx12[_0xdaf8[31]],{endtime:null}))[_0xdaf8[16]](function(_0xec5fx14){return _0xec5fx8[_0xdaf8[13]](200)[_0xdaf8[12]]({rows:_0xec5fx14,count:_0xec5fx14[_0xdaf8[30]]})})[_0xdaf8[20]](handleError(_0xec5fx8))};exports[_0xdaf8[36]]= function(_0xec5fx12,_0xec5fx8){return ReportDialHistory[_0xdaf8[36]]()[_0xdaf8[16]](function(_0xec5fx17){return _0xec5fx8[_0xdaf8[13]](200)[_0xdaf8[12]](_0xec5fx17)})[_0xdaf8[20]](handleError(_0xec5fx8))}
\ No newline at end of file
+var _0xdc70=["\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"];_0xdc70[0];var _=require(_0xdc70[1]);var logger=require(_0xdc70[3])(_0xdc70[2]);var sequelize=require(_0xdc70[5])[_0xdc70[4]];var ReportDial=require(_0xdc70[5])[_0xdc70[6]];var ReportDialHistory=require(_0xdc70[5])[_0xdc70[8]][_0xdc70[7]];var Util=require(_0xdc70[9]);function handleError(_0xab93x8,_0xab93x9){_0xab93x9= _0xab93x9|| 500;return function(_0xab93xa){logger[_0xdc70[11]](_0xab93xa[_0xdc70[10]]);_0xab93x8[_0xdc70[13]](_0xab93x9)[_0xdc70[12]](_0xab93xa)}}function responseWithResult(_0xab93x8,_0xab93x9){_0xab93x9= _0xab93x9|| 200;return function(_0xab93xc){if(_0xab93xc){_0xab93x8[_0xdc70[13]](_0xab93x9)[_0xdc70[14]](_0xab93xc)}}}function handleEntityNotFound(_0xab93x8){return function(_0xab93xc){if(!_0xab93xc){_0xab93x8[_0xdc70[13]](404)[_0xdc70[15]]();return null};return _0xab93xc}}function saveUpdates(_0xab93xf){return function(_0xab93xc){return _0xab93xc[_0xdc70[17]](_0xab93xf)[_0xdc70[16]](function(_0xab93x10){return _0xab93x10})}}function removeEntity(_0xab93x8){return function(_0xab93xc){if(_0xab93xc){return _0xab93xc[_0xdc70[18]]()[_0xdc70[16]](function(){_0xab93x8[_0xdc70[13]](204)[_0xdc70[15]]()})}}}exports[_0xdc70[19]]= function(_0xab93x12,_0xab93x8,_0xab93x13){return ReportDial[_0xdc70[33]](Util[_0xdc70[32]](_0xab93x12[_0xdc70[31]]))[_0xdc70[16]](function(_0xab93x14){if(_0xab93x12[_0xdc70[22]][_0xdc70[21]]=== _0xdc70[23]){var _0xab93x15=[];_[_0xdc70[29]](_0xab93x14[_0xdc70[24]],function(_0xab93x16){if(_0xab93x16[_0xdc70[25]]&& _0xab93x16[_0xdc70[25]][_0xdc70[26]](/\/|-/)[1]=== _0xab93x12[_0xdc70[22]][_0xdc70[27]]){_0xab93x15[_0xdc70[28]](_0xab93x16)}});return {rows:_0xab93x15,count:_0xab93x15[_0xdc70[30]]}};return _0xab93x14})[_0xdc70[16]](function(_0xab93x14){return _0xab93x8[_0xdc70[13]](200)[_0xdc70[12]](_0xab93x14)})[_0xdc70[20]](handleError(_0xab93x8))};exports[_0xdc70[34]]= function(_0xab93x12,_0xab93x8){return ReportDial[_0xdc70[35]](Util[_0xdc70[32]](_0xab93x12[_0xdc70[31]],{endtime:null}))[_0xdc70[16]](function(_0xab93x14){return _0xab93x8[_0xdc70[13]](200)[_0xdc70[12]]({rows:_0xab93x14,count:_0xab93x14[_0xdc70[30]]})})[_0xdc70[20]](handleError(_0xab93x8))};exports[_0xdc70[36]]= function(_0xab93x12,_0xab93x8){return ReportDialHistory[_0xdc70[36]]()[_0xdc70[16]](function(_0xab93x17){return _0xab93x8[_0xdc70[13]](200)[_0xdc70[12]](_0xab93x17)})[_0xdc70[20]](handleError(_0xab93x8))}
\ No newline at end of file