Built motion from commit 7db2bc834.|1.0.35
[motion.git] / server / api / report_dial / report_dial.controller.js
index ff05d38..0892b47 100644 (file)
@@ -1 +1 @@
-var _0x103d=["\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"];_0x103d[0];var _=require(_0x103d[1]);var logger=require(_0x103d[3])(_0x103d[2]);var sequelize=require(_0x103d[5])[_0x103d[4]];var ReportDial=require(_0x103d[5])[_0x103d[6]];var ReportDialHistory=require(_0x103d[5])[_0x103d[8]][_0x103d[7]];var Util=require(_0x103d[9]);function handleError(_0x1f9fx8,_0x1f9fx9){_0x1f9fx9= _0x1f9fx9|| 500;return function(_0x1f9fxa){logger[_0x103d[11]](_0x1f9fxa[_0x103d[10]]);_0x1f9fx8[_0x103d[13]](_0x1f9fx9)[_0x103d[12]](_0x1f9fxa)}}function responseWithResult(_0x1f9fx8,_0x1f9fx9){_0x1f9fx9= _0x1f9fx9|| 200;return function(_0x1f9fxc){if(_0x1f9fxc){_0x1f9fx8[_0x103d[13]](_0x1f9fx9)[_0x103d[14]](_0x1f9fxc)}}}function handleEntityNotFound(_0x1f9fx8){return function(_0x1f9fxc){if(!_0x1f9fxc){_0x1f9fx8[_0x103d[13]](404)[_0x103d[15]]();return null};return _0x1f9fxc}}function saveUpdates(_0x1f9fxf){return function(_0x1f9fxc){return _0x1f9fxc[_0x103d[17]](_0x1f9fxf)[_0x103d[16]](function(_0x1f9fx10){return _0x1f9fx10})}}function removeEntity(_0x1f9fx8){return function(_0x1f9fxc){if(_0x1f9fxc){return _0x1f9fxc[_0x103d[18]]()[_0x103d[16]](function(){_0x1f9fx8[_0x103d[13]](204)[_0x103d[15]]()})}}}exports[_0x103d[19]]= function(_0x1f9fx12,_0x1f9fx8,_0x1f9fx13){return ReportDial[_0x103d[33]](Util[_0x103d[32]](_0x1f9fx12[_0x103d[31]]))[_0x103d[16]](function(_0x1f9fx14){if(_0x1f9fx12[_0x103d[22]][_0x103d[21]]=== _0x103d[23]){var _0x1f9fx15=[];_[_0x103d[29]](_0x1f9fx14[_0x103d[24]],function(_0x1f9fx16){if(_0x1f9fx16[_0x103d[25]]&& _0x1f9fx16[_0x103d[25]][_0x103d[26]](/\/|-/)[1]=== _0x1f9fx12[_0x103d[22]][_0x103d[27]]){_0x1f9fx15[_0x103d[28]](_0x1f9fx16)}});return {rows:_0x1f9fx15,count:_0x1f9fx15[_0x103d[30]]}};return _0x1f9fx14})[_0x103d[16]](function(_0x1f9fx14){return _0x1f9fx8[_0x103d[13]](200)[_0x103d[12]](_0x1f9fx14)})[_0x103d[20]](handleError(_0x1f9fx8))};exports[_0x103d[34]]= function(_0x1f9fx12,_0x1f9fx8){return ReportDial[_0x103d[35]](Util[_0x103d[32]](_0x1f9fx12[_0x103d[31]],{endtime:null}))[_0x103d[16]](function(_0x1f9fx14){return _0x1f9fx8[_0x103d[13]](200)[_0x103d[12]]({rows:_0x1f9fx14,count:_0x1f9fx14[_0x103d[30]]})})[_0x103d[20]](handleError(_0x1f9fx8))};exports[_0x103d[36]]= function(_0x1f9fx12,_0x1f9fx8){return ReportDialHistory[_0x103d[36]]()[_0x103d[16]](function(_0x1f9fx17){return _0x1f9fx8[_0x103d[13]](200)[_0x103d[12]](_0x1f9fx17)})[_0x103d[20]](handleError(_0x1f9fx8))}
\ No newline at end of file
+var _0x4b89=["\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"];_0x4b89[0];var _=require(_0x4b89[1]);var logger=require(_0x4b89[3])(_0x4b89[2]);var sequelize=require(_0x4b89[5])[_0x4b89[4]];var ReportDial=require(_0x4b89[5])[_0x4b89[6]];var ReportDialHistory=require(_0x4b89[5])[_0x4b89[8]][_0x4b89[7]];var Util=require(_0x4b89[9]);function handleError(_0xf050x8,_0xf050x9){_0xf050x9= _0xf050x9|| 500;return function(_0xf050xa){logger[_0x4b89[11]](_0xf050xa[_0x4b89[10]]);_0xf050x8[_0x4b89[13]](_0xf050x9)[_0x4b89[12]](_0xf050xa)}}function responseWithResult(_0xf050x8,_0xf050x9){_0xf050x9= _0xf050x9|| 200;return function(_0xf050xc){if(_0xf050xc){_0xf050x8[_0x4b89[13]](_0xf050x9)[_0x4b89[14]](_0xf050xc)}}}function handleEntityNotFound(_0xf050x8){return function(_0xf050xc){if(!_0xf050xc){_0xf050x8[_0x4b89[13]](404)[_0x4b89[15]]();return null};return _0xf050xc}}function saveUpdates(_0xf050xf){return function(_0xf050xc){return _0xf050xc[_0x4b89[17]](_0xf050xf)[_0x4b89[16]](function(_0xf050x10){return _0xf050x10})}}function removeEntity(_0xf050x8){return function(_0xf050xc){if(_0xf050xc){return _0xf050xc[_0x4b89[18]]()[_0x4b89[16]](function(){_0xf050x8[_0x4b89[13]](204)[_0x4b89[15]]()})}}}exports[_0x4b89[19]]= function(_0xf050x12,_0xf050x8,_0xf050x13){return ReportDial[_0x4b89[33]](Util[_0x4b89[32]](_0xf050x12[_0x4b89[31]]))[_0x4b89[16]](function(_0xf050x14){if(_0xf050x12[_0x4b89[22]][_0x4b89[21]]=== _0x4b89[23]){var _0xf050x15=[];_[_0x4b89[29]](_0xf050x14[_0x4b89[24]],function(_0xf050x16){if(_0xf050x16[_0x4b89[25]]&& _0xf050x16[_0x4b89[25]][_0x4b89[26]](/\/|-/)[1]=== _0xf050x12[_0x4b89[22]][_0x4b89[27]]){_0xf050x15[_0x4b89[28]](_0xf050x16)}});return {rows:_0xf050x15,count:_0xf050x15[_0x4b89[30]]}};return _0xf050x14})[_0x4b89[16]](function(_0xf050x14){return _0xf050x8[_0x4b89[13]](200)[_0x4b89[12]](_0xf050x14)})[_0x4b89[20]](handleError(_0xf050x8))};exports[_0x4b89[34]]= function(_0xf050x12,_0xf050x8){return ReportDial[_0x4b89[35]](Util[_0x4b89[32]](_0xf050x12[_0x4b89[31]],{endtime:null}))[_0x4b89[16]](function(_0xf050x14){return _0xf050x8[_0x4b89[13]](200)[_0x4b89[12]]({rows:_0xf050x14,count:_0xf050x14[_0x4b89[30]]})})[_0x4b89[20]](handleError(_0xf050x8))};exports[_0x4b89[36]]= function(_0xf050x12,_0xf050x8){return ReportDialHistory[_0x4b89[36]]()[_0x4b89[16]](function(_0xf050x17){return _0xf050x8[_0x4b89[13]](200)[_0x4b89[12]](_0xf050x17)})[_0x4b89[20]](handleError(_0xf050x8))}
\ No newline at end of file