Built motion from commit d13e3c905.|1.0.24
[motion.git] / server / api / report_dial / report_dial.controller.js
index e3b8da3..0fe160f 100644 (file)
@@ -1 +1 @@
-var _0x7dcc=["\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"];_0x7dcc[0];var _=require(_0x7dcc[1]);var logger=require(_0x7dcc[3])(_0x7dcc[2]);var sequelize=require(_0x7dcc[5])[_0x7dcc[4]];var ReportDial=require(_0x7dcc[5])[_0x7dcc[6]];var ReportDialHistory=require(_0x7dcc[5])[_0x7dcc[8]][_0x7dcc[7]];var Util=require(_0x7dcc[9]);function handleError(_0xeb3dx8,_0xeb3dx9){_0xeb3dx9= _0xeb3dx9|| 500;return function(_0xeb3dxa){logger[_0x7dcc[11]](_0xeb3dxa[_0x7dcc[10]]);_0xeb3dx8[_0x7dcc[13]](_0xeb3dx9)[_0x7dcc[12]](_0xeb3dxa)}}function responseWithResult(_0xeb3dx8,_0xeb3dx9){_0xeb3dx9= _0xeb3dx9|| 200;return function(_0xeb3dxc){if(_0xeb3dxc){_0xeb3dx8[_0x7dcc[13]](_0xeb3dx9)[_0x7dcc[14]](_0xeb3dxc)}}}function handleEntityNotFound(_0xeb3dx8){return function(_0xeb3dxc){if(!_0xeb3dxc){_0xeb3dx8[_0x7dcc[13]](404)[_0x7dcc[15]]();return null};return _0xeb3dxc}}function saveUpdates(_0xeb3dxf){return function(_0xeb3dxc){return _0xeb3dxc[_0x7dcc[17]](_0xeb3dxf)[_0x7dcc[16]](function(_0xeb3dx10){return _0xeb3dx10})}}function removeEntity(_0xeb3dx8){return function(_0xeb3dxc){if(_0xeb3dxc){return _0xeb3dxc[_0x7dcc[18]]()[_0x7dcc[16]](function(){_0xeb3dx8[_0x7dcc[13]](204)[_0x7dcc[15]]()})}}}exports[_0x7dcc[19]]= function(_0xeb3dx12,_0xeb3dx8,_0xeb3dx13){return ReportDial[_0x7dcc[33]](Util[_0x7dcc[32]](_0xeb3dx12[_0x7dcc[31]]))[_0x7dcc[16]](function(_0xeb3dx14){if(_0xeb3dx12[_0x7dcc[22]][_0x7dcc[21]]=== _0x7dcc[23]){var _0xeb3dx15=[];_[_0x7dcc[29]](_0xeb3dx14[_0x7dcc[24]],function(_0xeb3dx16){if(_0xeb3dx16[_0x7dcc[25]]&& _0xeb3dx16[_0x7dcc[25]][_0x7dcc[26]](/\/|-/)[1]=== _0xeb3dx12[_0x7dcc[22]][_0x7dcc[27]]){_0xeb3dx15[_0x7dcc[28]](_0xeb3dx16)}});return {rows:_0xeb3dx15,count:_0xeb3dx15[_0x7dcc[30]]}};return _0xeb3dx14})[_0x7dcc[16]](function(_0xeb3dx14){return _0xeb3dx8[_0x7dcc[13]](200)[_0x7dcc[12]](_0xeb3dx14)})[_0x7dcc[20]](handleError(_0xeb3dx8))};exports[_0x7dcc[34]]= function(_0xeb3dx12,_0xeb3dx8){return ReportDial[_0x7dcc[35]](Util[_0x7dcc[32]](_0xeb3dx12[_0x7dcc[31]],{endtime:null}))[_0x7dcc[16]](function(_0xeb3dx14){return _0xeb3dx8[_0x7dcc[13]](200)[_0x7dcc[12]]({rows:_0xeb3dx14,count:_0xeb3dx14[_0x7dcc[30]]})})[_0x7dcc[20]](handleError(_0xeb3dx8))};exports[_0x7dcc[36]]= function(_0xeb3dx12,_0xeb3dx8){return ReportDialHistory[_0x7dcc[36]]()[_0x7dcc[16]](function(_0xeb3dx17){return _0xeb3dx8[_0x7dcc[13]](200)[_0x7dcc[12]](_0xeb3dx17)})[_0x7dcc[20]](handleError(_0xeb3dx8))}
\ No newline at end of file
+var _0x4cac=["\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"];_0x4cac[0];var _=require(_0x4cac[1]);var logger=require(_0x4cac[3])(_0x4cac[2]);var sequelize=require(_0x4cac[5])[_0x4cac[4]];var ReportDial=require(_0x4cac[5])[_0x4cac[6]];var ReportDialHistory=require(_0x4cac[5])[_0x4cac[8]][_0x4cac[7]];var Util=require(_0x4cac[9]);function handleError(_0x2bf1x8,_0x2bf1x9){_0x2bf1x9= _0x2bf1x9|| 500;return function(_0x2bf1xa){logger[_0x4cac[11]](_0x2bf1xa[_0x4cac[10]]);_0x2bf1x8[_0x4cac[13]](_0x2bf1x9)[_0x4cac[12]](_0x2bf1xa)}}function responseWithResult(_0x2bf1x8,_0x2bf1x9){_0x2bf1x9= _0x2bf1x9|| 200;return function(_0x2bf1xc){if(_0x2bf1xc){_0x2bf1x8[_0x4cac[13]](_0x2bf1x9)[_0x4cac[14]](_0x2bf1xc)}}}function handleEntityNotFound(_0x2bf1x8){return function(_0x2bf1xc){if(!_0x2bf1xc){_0x2bf1x8[_0x4cac[13]](404)[_0x4cac[15]]();return null};return _0x2bf1xc}}function saveUpdates(_0x2bf1xf){return function(_0x2bf1xc){return _0x2bf1xc[_0x4cac[17]](_0x2bf1xf)[_0x4cac[16]](function(_0x2bf1x10){return _0x2bf1x10})}}function removeEntity(_0x2bf1x8){return function(_0x2bf1xc){if(_0x2bf1xc){return _0x2bf1xc[_0x4cac[18]]()[_0x4cac[16]](function(){_0x2bf1x8[_0x4cac[13]](204)[_0x4cac[15]]()})}}}exports[_0x4cac[19]]= function(_0x2bf1x12,_0x2bf1x8,_0x2bf1x13){return ReportDial[_0x4cac[33]](Util[_0x4cac[32]](_0x2bf1x12[_0x4cac[31]]))[_0x4cac[16]](function(_0x2bf1x14){if(_0x2bf1x12[_0x4cac[22]][_0x4cac[21]]=== _0x4cac[23]){var _0x2bf1x15=[];_[_0x4cac[29]](_0x2bf1x14[_0x4cac[24]],function(_0x2bf1x16){if(_0x2bf1x16[_0x4cac[25]]&& _0x2bf1x16[_0x4cac[25]][_0x4cac[26]](/\/|-/)[1]=== _0x2bf1x12[_0x4cac[22]][_0x4cac[27]]){_0x2bf1x15[_0x4cac[28]](_0x2bf1x16)}});return {rows:_0x2bf1x15,count:_0x2bf1x15[_0x4cac[30]]}};return _0x2bf1x14})[_0x4cac[16]](function(_0x2bf1x14){return _0x2bf1x8[_0x4cac[13]](200)[_0x4cac[12]](_0x2bf1x14)})[_0x4cac[20]](handleError(_0x2bf1x8))};exports[_0x4cac[34]]= function(_0x2bf1x12,_0x2bf1x8){return ReportDial[_0x4cac[35]](Util[_0x4cac[32]](_0x2bf1x12[_0x4cac[31]],{endtime:null}))[_0x4cac[16]](function(_0x2bf1x14){return _0x2bf1x8[_0x4cac[13]](200)[_0x4cac[12]]({rows:_0x2bf1x14,count:_0x2bf1x14[_0x4cac[30]]})})[_0x4cac[20]](handleError(_0x2bf1x8))};exports[_0x4cac[36]]= function(_0x2bf1x12,_0x2bf1x8){return ReportDialHistory[_0x4cac[36]]()[_0x4cac[16]](function(_0x2bf1x17){return _0x2bf1x8[_0x4cac[13]](200)[_0x4cac[12]](_0x2bf1x17)})[_0x4cac[20]](handleError(_0x2bf1x8))}
\ No newline at end of file