Built motion from commit 193354388.|1.0.24
[motion.git] / server / api / report_dial / report_dial.controller.js
index 858fb04..7d22546 100644 (file)
@@ -1 +1 @@
-var _0x54f1=["\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"];_0x54f1[0];var _=require(_0x54f1[1]);var logger=require(_0x54f1[3])(_0x54f1[2]);var sequelize=require(_0x54f1[5])[_0x54f1[4]];var ReportDial=require(_0x54f1[5])[_0x54f1[6]];var ReportDialHistory=require(_0x54f1[5])[_0x54f1[8]][_0x54f1[7]];var Util=require(_0x54f1[9]);function handleError(_0x2afcx8,_0x2afcx9){_0x2afcx9= _0x2afcx9|| 500;return function(_0x2afcxa){logger[_0x54f1[11]](_0x2afcxa[_0x54f1[10]]);_0x2afcx8[_0x54f1[13]](_0x2afcx9)[_0x54f1[12]](_0x2afcxa)}}function responseWithResult(_0x2afcx8,_0x2afcx9){_0x2afcx9= _0x2afcx9|| 200;return function(_0x2afcxc){if(_0x2afcxc){_0x2afcx8[_0x54f1[13]](_0x2afcx9)[_0x54f1[14]](_0x2afcxc)}}}function handleEntityNotFound(_0x2afcx8){return function(_0x2afcxc){if(!_0x2afcxc){_0x2afcx8[_0x54f1[13]](404)[_0x54f1[15]]();return null};return _0x2afcxc}}function saveUpdates(_0x2afcxf){return function(_0x2afcxc){return _0x2afcxc[_0x54f1[17]](_0x2afcxf)[_0x54f1[16]](function(_0x2afcx10){return _0x2afcx10})}}function removeEntity(_0x2afcx8){return function(_0x2afcxc){if(_0x2afcxc){return _0x2afcxc[_0x54f1[18]]()[_0x54f1[16]](function(){_0x2afcx8[_0x54f1[13]](204)[_0x54f1[15]]()})}}}exports[_0x54f1[19]]= function(_0x2afcx12,_0x2afcx8,_0x2afcx13){return ReportDial[_0x54f1[33]](Util[_0x54f1[32]](_0x2afcx12[_0x54f1[31]]))[_0x54f1[16]](function(_0x2afcx14){if(_0x2afcx12[_0x54f1[22]][_0x54f1[21]]=== _0x54f1[23]){var _0x2afcx15=[];_[_0x54f1[29]](_0x2afcx14[_0x54f1[24]],function(_0x2afcx16){if(_0x2afcx16[_0x54f1[25]]&& _0x2afcx16[_0x54f1[25]][_0x54f1[26]](/\/|-/)[1]=== _0x2afcx12[_0x54f1[22]][_0x54f1[27]]){_0x2afcx15[_0x54f1[28]](_0x2afcx16)}});return {rows:_0x2afcx15,count:_0x2afcx15[_0x54f1[30]]}};return _0x2afcx14})[_0x54f1[16]](function(_0x2afcx14){return _0x2afcx8[_0x54f1[13]](200)[_0x54f1[12]](_0x2afcx14)})[_0x54f1[20]](handleError(_0x2afcx8))};exports[_0x54f1[34]]= function(_0x2afcx12,_0x2afcx8){return ReportDial[_0x54f1[35]](Util[_0x54f1[32]](_0x2afcx12[_0x54f1[31]],{endtime:null}))[_0x54f1[16]](function(_0x2afcx14){return _0x2afcx8[_0x54f1[13]](200)[_0x54f1[12]]({rows:_0x2afcx14,count:_0x2afcx14[_0x54f1[30]]})})[_0x54f1[20]](handleError(_0x2afcx8))};exports[_0x54f1[36]]= function(_0x2afcx12,_0x2afcx8){return ReportDialHistory[_0x54f1[36]]()[_0x54f1[16]](function(_0x2afcx17){return _0x2afcx8[_0x54f1[13]](200)[_0x54f1[12]](_0x2afcx17)})[_0x54f1[20]](handleError(_0x2afcx8))}
\ No newline at end of file
+var _0x7614=["\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"];_0x7614[0];var _=require(_0x7614[1]);var logger=require(_0x7614[3])(_0x7614[2]);var sequelize=require(_0x7614[5])[_0x7614[4]];var ReportDial=require(_0x7614[5])[_0x7614[6]];var ReportDialHistory=require(_0x7614[5])[_0x7614[8]][_0x7614[7]];var Util=require(_0x7614[9]);function handleError(_0xe8e1x8,_0xe8e1x9){_0xe8e1x9= _0xe8e1x9|| 500;return function(_0xe8e1xa){logger[_0x7614[11]](_0xe8e1xa[_0x7614[10]]);_0xe8e1x8[_0x7614[13]](_0xe8e1x9)[_0x7614[12]](_0xe8e1xa)}}function responseWithResult(_0xe8e1x8,_0xe8e1x9){_0xe8e1x9= _0xe8e1x9|| 200;return function(_0xe8e1xc){if(_0xe8e1xc){_0xe8e1x8[_0x7614[13]](_0xe8e1x9)[_0x7614[14]](_0xe8e1xc)}}}function handleEntityNotFound(_0xe8e1x8){return function(_0xe8e1xc){if(!_0xe8e1xc){_0xe8e1x8[_0x7614[13]](404)[_0x7614[15]]();return null};return _0xe8e1xc}}function saveUpdates(_0xe8e1xf){return function(_0xe8e1xc){return _0xe8e1xc[_0x7614[17]](_0xe8e1xf)[_0x7614[16]](function(_0xe8e1x10){return _0xe8e1x10})}}function removeEntity(_0xe8e1x8){return function(_0xe8e1xc){if(_0xe8e1xc){return _0xe8e1xc[_0x7614[18]]()[_0x7614[16]](function(){_0xe8e1x8[_0x7614[13]](204)[_0x7614[15]]()})}}}exports[_0x7614[19]]= function(_0xe8e1x12,_0xe8e1x8,_0xe8e1x13){return ReportDial[_0x7614[33]](Util[_0x7614[32]](_0xe8e1x12[_0x7614[31]]))[_0x7614[16]](function(_0xe8e1x14){if(_0xe8e1x12[_0x7614[22]][_0x7614[21]]=== _0x7614[23]){var _0xe8e1x15=[];_[_0x7614[29]](_0xe8e1x14[_0x7614[24]],function(_0xe8e1x16){if(_0xe8e1x16[_0x7614[25]]&& _0xe8e1x16[_0x7614[25]][_0x7614[26]](/\/|-/)[1]=== _0xe8e1x12[_0x7614[22]][_0x7614[27]]){_0xe8e1x15[_0x7614[28]](_0xe8e1x16)}});return {rows:_0xe8e1x15,count:_0xe8e1x15[_0x7614[30]]}};return _0xe8e1x14})[_0x7614[16]](function(_0xe8e1x14){return _0xe8e1x8[_0x7614[13]](200)[_0x7614[12]](_0xe8e1x14)})[_0x7614[20]](handleError(_0xe8e1x8))};exports[_0x7614[34]]= function(_0xe8e1x12,_0xe8e1x8){return ReportDial[_0x7614[35]](Util[_0x7614[32]](_0xe8e1x12[_0x7614[31]],{endtime:null}))[_0x7614[16]](function(_0xe8e1x14){return _0xe8e1x8[_0x7614[13]](200)[_0x7614[12]]({rows:_0xe8e1x14,count:_0xe8e1x14[_0x7614[30]]})})[_0x7614[20]](handleError(_0xe8e1x8))};exports[_0x7614[36]]= function(_0xe8e1x12,_0xe8e1x8){return ReportDialHistory[_0x7614[36]]()[_0x7614[16]](function(_0xe8e1x17){return _0xe8e1x8[_0x7614[13]](200)[_0x7614[12]](_0xe8e1x17)})[_0x7614[20]](handleError(_0xe8e1x8))}
\ No newline at end of file