Built motion from commit 70c527640.|1.0.24
[motion.git] / server / api / report_dial / report_dial.controller.js
index e8d582b..f7d5c62 100644 (file)
@@ -1 +1 @@
-var _0x4138=["\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"];_0x4138[0];var _=require(_0x4138[1]);var logger=require(_0x4138[3])(_0x4138[2]);var sequelize=require(_0x4138[5])[_0x4138[4]];var ReportDial=require(_0x4138[5])[_0x4138[6]];var ReportDialHistory=require(_0x4138[5])[_0x4138[8]][_0x4138[7]];var Util=require(_0x4138[9]);function handleError(_0xe8e0x8,_0xe8e0x9){_0xe8e0x9= _0xe8e0x9|| 500;return function(_0xe8e0xa){logger[_0x4138[11]](_0xe8e0xa[_0x4138[10]]);_0xe8e0x8[_0x4138[13]](_0xe8e0x9)[_0x4138[12]](_0xe8e0xa)}}function responseWithResult(_0xe8e0x8,_0xe8e0x9){_0xe8e0x9= _0xe8e0x9|| 200;return function(_0xe8e0xc){if(_0xe8e0xc){_0xe8e0x8[_0x4138[13]](_0xe8e0x9)[_0x4138[14]](_0xe8e0xc)}}}function handleEntityNotFound(_0xe8e0x8){return function(_0xe8e0xc){if(!_0xe8e0xc){_0xe8e0x8[_0x4138[13]](404)[_0x4138[15]]();return null};return _0xe8e0xc}}function saveUpdates(_0xe8e0xf){return function(_0xe8e0xc){return _0xe8e0xc[_0x4138[17]](_0xe8e0xf)[_0x4138[16]](function(_0xe8e0x10){return _0xe8e0x10})}}function removeEntity(_0xe8e0x8){return function(_0xe8e0xc){if(_0xe8e0xc){return _0xe8e0xc[_0x4138[18]]()[_0x4138[16]](function(){_0xe8e0x8[_0x4138[13]](204)[_0x4138[15]]()})}}}exports[_0x4138[19]]= function(_0xe8e0x12,_0xe8e0x8,_0xe8e0x13){return ReportDial[_0x4138[33]](Util[_0x4138[32]](_0xe8e0x12[_0x4138[31]]))[_0x4138[16]](function(_0xe8e0x14){if(_0xe8e0x12[_0x4138[22]][_0x4138[21]]=== _0x4138[23]){var _0xe8e0x15=[];_[_0x4138[29]](_0xe8e0x14[_0x4138[24]],function(_0xe8e0x16){if(_0xe8e0x16[_0x4138[25]]&& _0xe8e0x16[_0x4138[25]][_0x4138[26]](/\/|-/)[1]=== _0xe8e0x12[_0x4138[22]][_0x4138[27]]){_0xe8e0x15[_0x4138[28]](_0xe8e0x16)}});return {rows:_0xe8e0x15,count:_0xe8e0x15[_0x4138[30]]}};return _0xe8e0x14})[_0x4138[16]](function(_0xe8e0x14){return _0xe8e0x8[_0x4138[13]](200)[_0x4138[12]](_0xe8e0x14)})[_0x4138[20]](handleError(_0xe8e0x8))};exports[_0x4138[34]]= function(_0xe8e0x12,_0xe8e0x8){return ReportDial[_0x4138[35]](Util[_0x4138[32]](_0xe8e0x12[_0x4138[31]],{endtime:null}))[_0x4138[16]](function(_0xe8e0x14){return _0xe8e0x8[_0x4138[13]](200)[_0x4138[12]]({rows:_0xe8e0x14,count:_0xe8e0x14[_0x4138[30]]})})[_0x4138[20]](handleError(_0xe8e0x8))};exports[_0x4138[36]]= function(_0xe8e0x12,_0xe8e0x8){return ReportDialHistory[_0x4138[36]]()[_0x4138[16]](function(_0xe8e0x17){return _0xe8e0x8[_0x4138[13]](200)[_0x4138[12]](_0xe8e0x17)})[_0x4138[20]](handleError(_0xe8e0x8))}
\ No newline at end of file
+var _0x6e92=["\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"];_0x6e92[0];var _=require(_0x6e92[1]);var logger=require(_0x6e92[3])(_0x6e92[2]);var sequelize=require(_0x6e92[5])[_0x6e92[4]];var ReportDial=require(_0x6e92[5])[_0x6e92[6]];var ReportDialHistory=require(_0x6e92[5])[_0x6e92[8]][_0x6e92[7]];var Util=require(_0x6e92[9]);function handleError(_0x5ff7x8,_0x5ff7x9){_0x5ff7x9= _0x5ff7x9|| 500;return function(_0x5ff7xa){logger[_0x6e92[11]](_0x5ff7xa[_0x6e92[10]]);_0x5ff7x8[_0x6e92[13]](_0x5ff7x9)[_0x6e92[12]](_0x5ff7xa)}}function responseWithResult(_0x5ff7x8,_0x5ff7x9){_0x5ff7x9= _0x5ff7x9|| 200;return function(_0x5ff7xc){if(_0x5ff7xc){_0x5ff7x8[_0x6e92[13]](_0x5ff7x9)[_0x6e92[14]](_0x5ff7xc)}}}function handleEntityNotFound(_0x5ff7x8){return function(_0x5ff7xc){if(!_0x5ff7xc){_0x5ff7x8[_0x6e92[13]](404)[_0x6e92[15]]();return null};return _0x5ff7xc}}function saveUpdates(_0x5ff7xf){return function(_0x5ff7xc){return _0x5ff7xc[_0x6e92[17]](_0x5ff7xf)[_0x6e92[16]](function(_0x5ff7x10){return _0x5ff7x10})}}function removeEntity(_0x5ff7x8){return function(_0x5ff7xc){if(_0x5ff7xc){return _0x5ff7xc[_0x6e92[18]]()[_0x6e92[16]](function(){_0x5ff7x8[_0x6e92[13]](204)[_0x6e92[15]]()})}}}exports[_0x6e92[19]]= function(_0x5ff7x12,_0x5ff7x8,_0x5ff7x13){return ReportDial[_0x6e92[33]](Util[_0x6e92[32]](_0x5ff7x12[_0x6e92[31]]))[_0x6e92[16]](function(_0x5ff7x14){if(_0x5ff7x12[_0x6e92[22]][_0x6e92[21]]=== _0x6e92[23]){var _0x5ff7x15=[];_[_0x6e92[29]](_0x5ff7x14[_0x6e92[24]],function(_0x5ff7x16){if(_0x5ff7x16[_0x6e92[25]]&& _0x5ff7x16[_0x6e92[25]][_0x6e92[26]](/\/|-/)[1]=== _0x5ff7x12[_0x6e92[22]][_0x6e92[27]]){_0x5ff7x15[_0x6e92[28]](_0x5ff7x16)}});return {rows:_0x5ff7x15,count:_0x5ff7x15[_0x6e92[30]]}};return _0x5ff7x14})[_0x6e92[16]](function(_0x5ff7x14){return _0x5ff7x8[_0x6e92[13]](200)[_0x6e92[12]](_0x5ff7x14)})[_0x6e92[20]](handleError(_0x5ff7x8))};exports[_0x6e92[34]]= function(_0x5ff7x12,_0x5ff7x8){return ReportDial[_0x6e92[35]](Util[_0x6e92[32]](_0x5ff7x12[_0x6e92[31]],{endtime:null}))[_0x6e92[16]](function(_0x5ff7x14){return _0x5ff7x8[_0x6e92[13]](200)[_0x6e92[12]]({rows:_0x5ff7x14,count:_0x5ff7x14[_0x6e92[30]]})})[_0x6e92[20]](handleError(_0x5ff7x8))};exports[_0x6e92[36]]= function(_0x5ff7x12,_0x5ff7x8){return ReportDialHistory[_0x6e92[36]]()[_0x6e92[16]](function(_0x5ff7x17){return _0x5ff7x8[_0x6e92[13]](200)[_0x6e92[12]](_0x5ff7x17)})[_0x6e92[20]](handleError(_0x5ff7x8))}
\ No newline at end of file