Built motion from commit 9362eee.|1.0.9
[motion.git] / server / api / report_dial / report_dial.controller.js
index 67de92a..00e90cd 100644 (file)
@@ -1 +1 @@
-var _0x9005=["\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"];_0x9005[0];var _=require(_0x9005[1]);var sequelize=require(_0x9005[3])[_0x9005[2]];var ReportDial=require(_0x9005[3])[_0x9005[4]];var ReportDialHistory=require(_0x9005[3])[_0x9005[6]][_0x9005[5]];var Util=require(_0x9005[7]);function handleError(_0xc2ebx7,_0xc2ebx8){_0xc2ebx8= _0xc2ebx8|| 500;return function(_0xc2ebx9){console[_0x9005[8]](_0xc2ebx9);_0xc2ebx7[_0x9005[10]](_0xc2ebx8)[_0x9005[9]](_0xc2ebx9)}}function responseWithResult(_0xc2ebx7,_0xc2ebx8){_0xc2ebx8= _0xc2ebx8|| 200;return function(_0xc2ebxb){if(_0xc2ebxb){_0xc2ebx7[_0x9005[10]](_0xc2ebx8)[_0x9005[11]](_0xc2ebxb)}}}function handleEntityNotFound(_0xc2ebx7){return function(_0xc2ebxb){if(!_0xc2ebxb){_0xc2ebx7[_0x9005[10]](404)[_0x9005[12]]();return null};return _0xc2ebxb}}function saveUpdates(_0xc2ebxe){return function(_0xc2ebxb){return _0xc2ebxb[_0x9005[14]](_0xc2ebxe)[_0x9005[13]](function(_0xc2ebxf){return _0xc2ebxf})}}function removeEntity(_0xc2ebx7){return function(_0xc2ebxb){if(_0xc2ebxb){return _0xc2ebxb[_0x9005[15]]()[_0x9005[13]](function(){_0xc2ebx7[_0x9005[10]](204)[_0x9005[12]]()})}}}exports[_0x9005[16]]= function(_0xc2ebx11,_0xc2ebx7,_0xc2ebx12){return ReportDial[_0x9005[30]](Util[_0x9005[29]](_0xc2ebx11[_0x9005[28]]))[_0x9005[13]](function(_0xc2ebx13){if(_0xc2ebx11[_0x9005[19]][_0x9005[18]]=== _0x9005[20]){var _0xc2ebx14=[];_[_0x9005[26]](_0xc2ebx13[_0x9005[21]],function(_0xc2ebx15){if(_0xc2ebx15[_0x9005[22]]&& _0xc2ebx15[_0x9005[22]][_0x9005[23]](/\/|-/)[1]=== _0xc2ebx11[_0x9005[19]][_0x9005[24]]){_0xc2ebx14[_0x9005[25]](_0xc2ebx15)}});return {rows:_0xc2ebx14,count:_0xc2ebx14[_0x9005[27]]}};return _0xc2ebx13})[_0x9005[13]](function(_0xc2ebx13){return _0xc2ebx7[_0x9005[10]](200)[_0x9005[9]](_0xc2ebx13)})[_0x9005[17]](handleError(_0xc2ebx7))};exports[_0x9005[31]]= function(_0xc2ebx11,_0xc2ebx7){return ReportDial[_0x9005[32]](Util[_0x9005[29]](_0xc2ebx11[_0x9005[28]],{endtime:null}))[_0x9005[13]](function(_0xc2ebx13){return _0xc2ebx7[_0x9005[10]](200)[_0x9005[9]]({rows:_0xc2ebx13,count:_0xc2ebx13[_0x9005[27]]})})[_0x9005[17]](handleError(_0xc2ebx7))};exports[_0x9005[33]]= function(_0xc2ebx11,_0xc2ebx7){return ReportDialHistory[_0x9005[33]]()[_0x9005[13]](function(_0xc2ebx16){return _0xc2ebx7[_0x9005[10]](200)[_0x9005[9]](_0xc2ebx16)})[_0x9005[17]](handleError(_0xc2ebx7))}
\ No newline at end of file
+var _0x3a15=["\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"];_0x3a15[0];var _=require(_0x3a15[1]);var sequelize=require(_0x3a15[3])[_0x3a15[2]];var ReportDial=require(_0x3a15[3])[_0x3a15[4]];var ReportDialHistory=require(_0x3a15[3])[_0x3a15[6]][_0x3a15[5]];var Util=require(_0x3a15[7]);function handleError(_0x8f95x7,_0x8f95x8){_0x8f95x8= _0x8f95x8|| 500;return function(_0x8f95x9){console[_0x3a15[8]](_0x8f95x9);_0x8f95x7[_0x3a15[10]](_0x8f95x8)[_0x3a15[9]](_0x8f95x9)}}function responseWithResult(_0x8f95x7,_0x8f95x8){_0x8f95x8= _0x8f95x8|| 200;return function(_0x8f95xb){if(_0x8f95xb){_0x8f95x7[_0x3a15[10]](_0x8f95x8)[_0x3a15[11]](_0x8f95xb)}}}function handleEntityNotFound(_0x8f95x7){return function(_0x8f95xb){if(!_0x8f95xb){_0x8f95x7[_0x3a15[10]](404)[_0x3a15[12]]();return null};return _0x8f95xb}}function saveUpdates(_0x8f95xe){return function(_0x8f95xb){return _0x8f95xb[_0x3a15[14]](_0x8f95xe)[_0x3a15[13]](function(_0x8f95xf){return _0x8f95xf})}}function removeEntity(_0x8f95x7){return function(_0x8f95xb){if(_0x8f95xb){return _0x8f95xb[_0x3a15[15]]()[_0x3a15[13]](function(){_0x8f95x7[_0x3a15[10]](204)[_0x3a15[12]]()})}}}exports[_0x3a15[16]]= function(_0x8f95x11,_0x8f95x7,_0x8f95x12){return ReportDial[_0x3a15[30]](Util[_0x3a15[29]](_0x8f95x11[_0x3a15[28]]))[_0x3a15[13]](function(_0x8f95x13){if(_0x8f95x11[_0x3a15[19]][_0x3a15[18]]=== _0x3a15[20]){var _0x8f95x14=[];_[_0x3a15[26]](_0x8f95x13[_0x3a15[21]],function(_0x8f95x15){if(_0x8f95x15[_0x3a15[22]]&& _0x8f95x15[_0x3a15[22]][_0x3a15[23]](/\/|-/)[1]=== _0x8f95x11[_0x3a15[19]][_0x3a15[24]]){_0x8f95x14[_0x3a15[25]](_0x8f95x15)}});return {rows:_0x8f95x14,count:_0x8f95x14[_0x3a15[27]]}};return _0x8f95x13})[_0x3a15[13]](function(_0x8f95x13){return _0x8f95x7[_0x3a15[10]](200)[_0x3a15[9]](_0x8f95x13)})[_0x3a15[17]](handleError(_0x8f95x7))};exports[_0x3a15[31]]= function(_0x8f95x11,_0x8f95x7){return ReportDial[_0x3a15[32]](Util[_0x3a15[29]](_0x8f95x11[_0x3a15[28]],{endtime:null}))[_0x3a15[13]](function(_0x8f95x13){return _0x8f95x7[_0x3a15[10]](200)[_0x3a15[9]]({rows:_0x8f95x13,count:_0x8f95x13[_0x3a15[27]]})})[_0x3a15[17]](handleError(_0x8f95x7))};exports[_0x3a15[33]]= function(_0x8f95x11,_0x8f95x7){return ReportDialHistory[_0x3a15[33]]()[_0x3a15[13]](function(_0x8f95x16){return _0x8f95x7[_0x3a15[10]](200)[_0x3a15[9]](_0x8f95x16)})[_0x3a15[17]](handleError(_0x8f95x7))}
\ No newline at end of file