Built motion from commit 78ef1e9a0.|1.0.36
[motion.git] / server / api / report_dial / report_dial.controller.js
index f153adb..9026cb8 100644 (file)
@@ -1 +1 @@
-var _0xf415=["\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"];_0xf415[0];var _=require(_0xf415[1]);var sequelize=require(_0xf415[3])[_0xf415[2]];var ReportDial=require(_0xf415[3])[_0xf415[4]];var ReportDialHistory=require(_0xf415[3])[_0xf415[6]][_0xf415[5]];var Util=require(_0xf415[7]);function handleError(_0xf7f5x7,_0xf7f5x8){_0xf7f5x8= _0xf7f5x8|| 500;return function(_0xf7f5x9){console[_0xf415[8]](_0xf7f5x9);_0xf7f5x7[_0xf415[10]](_0xf7f5x8)[_0xf415[9]](_0xf7f5x9)}}function responseWithResult(_0xf7f5x7,_0xf7f5x8){_0xf7f5x8= _0xf7f5x8|| 200;return function(_0xf7f5xb){if(_0xf7f5xb){_0xf7f5x7[_0xf415[10]](_0xf7f5x8)[_0xf415[11]](_0xf7f5xb)}}}function handleEntityNotFound(_0xf7f5x7){return function(_0xf7f5xb){if(!_0xf7f5xb){_0xf7f5x7[_0xf415[10]](404)[_0xf415[12]]();return null};return _0xf7f5xb}}function saveUpdates(_0xf7f5xe){return function(_0xf7f5xb){return _0xf7f5xb[_0xf415[14]](_0xf7f5xe)[_0xf415[13]](function(_0xf7f5xf){return _0xf7f5xf})}}function removeEntity(_0xf7f5x7){return function(_0xf7f5xb){if(_0xf7f5xb){return _0xf7f5xb[_0xf415[15]]()[_0xf415[13]](function(){_0xf7f5x7[_0xf415[10]](204)[_0xf415[12]]()})}}}exports[_0xf415[16]]= function(_0xf7f5x11,_0xf7f5x7,_0xf7f5x12){return ReportDial[_0xf415[30]](Util[_0xf415[29]](_0xf7f5x11[_0xf415[28]]))[_0xf415[13]](function(_0xf7f5x13){if(_0xf7f5x11[_0xf415[19]][_0xf415[18]]=== _0xf415[20]){var _0xf7f5x14=[];_[_0xf415[26]](_0xf7f5x13[_0xf415[21]],function(_0xf7f5x15){if(_0xf7f5x15[_0xf415[22]]&& _0xf7f5x15[_0xf415[22]][_0xf415[23]](/\/|-/)[1]=== _0xf7f5x11[_0xf415[19]][_0xf415[24]]){_0xf7f5x14[_0xf415[25]](_0xf7f5x15)}});return {rows:_0xf7f5x14,count:_0xf7f5x14[_0xf415[27]]}};return _0xf7f5x13})[_0xf415[13]](function(_0xf7f5x13){return _0xf7f5x7[_0xf415[10]](200)[_0xf415[9]](_0xf7f5x13)})[_0xf415[17]](handleError(_0xf7f5x7))};exports[_0xf415[31]]= function(_0xf7f5x11,_0xf7f5x7){return ReportDial[_0xf415[32]](Util[_0xf415[29]](_0xf7f5x11[_0xf415[28]],{endtime:null}))[_0xf415[13]](function(_0xf7f5x13){return _0xf7f5x7[_0xf415[10]](200)[_0xf415[9]]({rows:_0xf7f5x13,count:_0xf7f5x13[_0xf415[27]]})})[_0xf415[17]](handleError(_0xf7f5x7))};exports[_0xf415[33]]= function(_0xf7f5x11,_0xf7f5x7){return ReportDialHistory[_0xf415[33]]()[_0xf415[13]](function(_0xf7f5x16){return _0xf7f5x7[_0xf415[10]](200)[_0xf415[9]](_0xf7f5x16)})[_0xf415[17]](handleError(_0xf7f5x7))}
\ No newline at end of file
+var _0xea58=["\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"];_0xea58[0];var _=require(_0xea58[1]);var logger=require(_0xea58[3])(_0xea58[2]);var sequelize=require(_0xea58[5])[_0xea58[4]];var ReportDial=require(_0xea58[5])[_0xea58[6]];var ReportDialHistory=require(_0xea58[5])[_0xea58[8]][_0xea58[7]];var Util=require(_0xea58[9]);function handleError(_0x8a4cx8,_0x8a4cx9){_0x8a4cx9= _0x8a4cx9|| 500;return function(_0x8a4cxa){logger[_0xea58[11]](_0x8a4cxa[_0xea58[10]]);_0x8a4cx8[_0xea58[13]](_0x8a4cx9)[_0xea58[12]](_0x8a4cxa)}}function responseWithResult(_0x8a4cx8,_0x8a4cx9){_0x8a4cx9= _0x8a4cx9|| 200;return function(_0x8a4cxc){if(_0x8a4cxc){_0x8a4cx8[_0xea58[13]](_0x8a4cx9)[_0xea58[14]](_0x8a4cxc)}}}function handleEntityNotFound(_0x8a4cx8){return function(_0x8a4cxc){if(!_0x8a4cxc){_0x8a4cx8[_0xea58[13]](404)[_0xea58[15]]();return null};return _0x8a4cxc}}function saveUpdates(_0x8a4cxf){return function(_0x8a4cxc){return _0x8a4cxc[_0xea58[17]](_0x8a4cxf)[_0xea58[16]](function(_0x8a4cx10){return _0x8a4cx10})}}function removeEntity(_0x8a4cx8){return function(_0x8a4cxc){if(_0x8a4cxc){return _0x8a4cxc[_0xea58[18]]()[_0xea58[16]](function(){_0x8a4cx8[_0xea58[13]](204)[_0xea58[15]]()})}}}exports[_0xea58[19]]= function(_0x8a4cx12,_0x8a4cx8,_0x8a4cx13){return ReportDial[_0xea58[33]](Util[_0xea58[32]](_0x8a4cx12[_0xea58[31]]))[_0xea58[16]](function(_0x8a4cx14){if(_0x8a4cx12[_0xea58[22]][_0xea58[21]]=== _0xea58[23]){var _0x8a4cx15=[];_[_0xea58[29]](_0x8a4cx14[_0xea58[24]],function(_0x8a4cx16){if(_0x8a4cx16[_0xea58[25]]&& _0x8a4cx16[_0xea58[25]][_0xea58[26]](/\/|-/)[1]=== _0x8a4cx12[_0xea58[22]][_0xea58[27]]){_0x8a4cx15[_0xea58[28]](_0x8a4cx16)}});return {rows:_0x8a4cx15,count:_0x8a4cx15[_0xea58[30]]}};return _0x8a4cx14})[_0xea58[16]](function(_0x8a4cx14){return _0x8a4cx8[_0xea58[13]](200)[_0xea58[12]](_0x8a4cx14)})[_0xea58[20]](handleError(_0x8a4cx8))};exports[_0xea58[34]]= function(_0x8a4cx12,_0x8a4cx8){return ReportDial[_0xea58[35]](Util[_0xea58[32]](_0x8a4cx12[_0xea58[31]],{endtime:null}))[_0xea58[16]](function(_0x8a4cx14){return _0x8a4cx8[_0xea58[13]](200)[_0xea58[12]]({rows:_0x8a4cx14,count:_0x8a4cx14[_0xea58[30]]})})[_0xea58[20]](handleError(_0x8a4cx8))};exports[_0xea58[36]]= function(_0x8a4cx12,_0x8a4cx8){return ReportDialHistory[_0xea58[36]]()[_0xea58[16]](function(_0x8a4cx17){return _0x8a4cx8[_0xea58[13]](200)[_0xea58[12]](_0x8a4cx17)})[_0xea58[20]](handleError(_0x8a4cx8))}
\ No newline at end of file