Built motion from commit 1333b3551.|1.0.38
[motion.git] / server / api / report_dial / report_dial.controller.js
index ee8e95c..fbd6e66 100644 (file)
@@ -1 +1 @@
-var _0xad89=["\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"];_0xad89[0];var _=require(_0xad89[1]);var logger=require(_0xad89[3])(_0xad89[2]);var sequelize=require(_0xad89[5])[_0xad89[4]];var ReportDial=require(_0xad89[5])[_0xad89[6]];var ReportDialHistory=require(_0xad89[5])[_0xad89[8]][_0xad89[7]];var Util=require(_0xad89[9]);function handleError(_0x830fx8,_0x830fx9){_0x830fx9= _0x830fx9|| 500;return function(_0x830fxa){logger[_0xad89[11]](_0x830fxa[_0xad89[10]]);_0x830fx8[_0xad89[13]](_0x830fx9)[_0xad89[12]](_0x830fxa)}}function responseWithResult(_0x830fx8,_0x830fx9){_0x830fx9= _0x830fx9|| 200;return function(_0x830fxc){if(_0x830fxc){_0x830fx8[_0xad89[13]](_0x830fx9)[_0xad89[14]](_0x830fxc)}}}function handleEntityNotFound(_0x830fx8){return function(_0x830fxc){if(!_0x830fxc){_0x830fx8[_0xad89[13]](404)[_0xad89[15]]();return null};return _0x830fxc}}function saveUpdates(_0x830fxf){return function(_0x830fxc){return _0x830fxc[_0xad89[17]](_0x830fxf)[_0xad89[16]](function(_0x830fx10){return _0x830fx10})}}function removeEntity(_0x830fx8){return function(_0x830fxc){if(_0x830fxc){return _0x830fxc[_0xad89[18]]()[_0xad89[16]](function(){_0x830fx8[_0xad89[13]](204)[_0xad89[15]]()})}}}exports[_0xad89[19]]= function(_0x830fx12,_0x830fx8,_0x830fx13){return ReportDial[_0xad89[33]](Util[_0xad89[32]](_0x830fx12[_0xad89[31]]))[_0xad89[16]](function(_0x830fx14){if(_0x830fx12[_0xad89[22]][_0xad89[21]]=== _0xad89[23]){var _0x830fx15=[];_[_0xad89[29]](_0x830fx14[_0xad89[24]],function(_0x830fx16){if(_0x830fx16[_0xad89[25]]&& _0x830fx16[_0xad89[25]][_0xad89[26]](/\/|-/)[1]=== _0x830fx12[_0xad89[22]][_0xad89[27]]){_0x830fx15[_0xad89[28]](_0x830fx16)}});return {rows:_0x830fx15,count:_0x830fx15[_0xad89[30]]}};return _0x830fx14})[_0xad89[16]](function(_0x830fx14){return _0x830fx8[_0xad89[13]](200)[_0xad89[12]](_0x830fx14)})[_0xad89[20]](handleError(_0x830fx8))};exports[_0xad89[34]]= function(_0x830fx12,_0x830fx8){return ReportDial[_0xad89[35]](Util[_0xad89[32]](_0x830fx12[_0xad89[31]],{endtime:null}))[_0xad89[16]](function(_0x830fx14){return _0x830fx8[_0xad89[13]](200)[_0xad89[12]]({rows:_0x830fx14,count:_0x830fx14[_0xad89[30]]})})[_0xad89[20]](handleError(_0x830fx8))};exports[_0xad89[36]]= function(_0x830fx12,_0x830fx8){return ReportDialHistory[_0xad89[36]]()[_0xad89[16]](function(_0x830fx17){return _0x830fx8[_0xad89[13]](200)[_0xad89[12]](_0x830fx17)})[_0xad89[20]](handleError(_0x830fx8))}
\ No newline at end of file
+var _0x94d7=["\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"];_0x94d7[0];var _=require(_0x94d7[1]);var logger=require(_0x94d7[3])(_0x94d7[2]);var sequelize=require(_0x94d7[5])[_0x94d7[4]];var ReportDial=require(_0x94d7[5])[_0x94d7[6]];var ReportDialHistory=require(_0x94d7[5])[_0x94d7[8]][_0x94d7[7]];var Util=require(_0x94d7[9]);function handleError(_0xa0a8x8,_0xa0a8x9){_0xa0a8x9= _0xa0a8x9|| 500;return function(_0xa0a8xa){logger[_0x94d7[11]](_0xa0a8xa[_0x94d7[10]]);_0xa0a8x8[_0x94d7[13]](_0xa0a8x9)[_0x94d7[12]](_0xa0a8xa)}}function responseWithResult(_0xa0a8x8,_0xa0a8x9){_0xa0a8x9= _0xa0a8x9|| 200;return function(_0xa0a8xc){if(_0xa0a8xc){_0xa0a8x8[_0x94d7[13]](_0xa0a8x9)[_0x94d7[14]](_0xa0a8xc)}}}function handleEntityNotFound(_0xa0a8x8){return function(_0xa0a8xc){if(!_0xa0a8xc){_0xa0a8x8[_0x94d7[13]](404)[_0x94d7[15]]();return null};return _0xa0a8xc}}function saveUpdates(_0xa0a8xf){return function(_0xa0a8xc){return _0xa0a8xc[_0x94d7[17]](_0xa0a8xf)[_0x94d7[16]](function(_0xa0a8x10){return _0xa0a8x10})}}function removeEntity(_0xa0a8x8){return function(_0xa0a8xc){if(_0xa0a8xc){return _0xa0a8xc[_0x94d7[18]]()[_0x94d7[16]](function(){_0xa0a8x8[_0x94d7[13]](204)[_0x94d7[15]]()})}}}exports[_0x94d7[19]]= function(_0xa0a8x12,_0xa0a8x8,_0xa0a8x13){return ReportDial[_0x94d7[33]](Util[_0x94d7[32]](_0xa0a8x12[_0x94d7[31]]))[_0x94d7[16]](function(_0xa0a8x14){if(_0xa0a8x12[_0x94d7[22]][_0x94d7[21]]=== _0x94d7[23]){var _0xa0a8x15=[];_[_0x94d7[29]](_0xa0a8x14[_0x94d7[24]],function(_0xa0a8x16){if(_0xa0a8x16[_0x94d7[25]]&& _0xa0a8x16[_0x94d7[25]][_0x94d7[26]](/\/|-/)[1]=== _0xa0a8x12[_0x94d7[22]][_0x94d7[27]]){_0xa0a8x15[_0x94d7[28]](_0xa0a8x16)}});return {rows:_0xa0a8x15,count:_0xa0a8x15[_0x94d7[30]]}};return _0xa0a8x14})[_0x94d7[16]](function(_0xa0a8x14){return _0xa0a8x8[_0x94d7[13]](200)[_0x94d7[12]](_0xa0a8x14)})[_0x94d7[20]](handleError(_0xa0a8x8))};exports[_0x94d7[34]]= function(_0xa0a8x12,_0xa0a8x8){return ReportDial[_0x94d7[35]](Util[_0x94d7[32]](_0xa0a8x12[_0x94d7[31]],{endtime:null}))[_0x94d7[16]](function(_0xa0a8x14){return _0xa0a8x8[_0x94d7[13]](200)[_0x94d7[12]]({rows:_0xa0a8x14,count:_0xa0a8x14[_0x94d7[30]]})})[_0x94d7[20]](handleError(_0xa0a8x8))};exports[_0x94d7[36]]= function(_0xa0a8x12,_0xa0a8x8){return ReportDialHistory[_0x94d7[36]]()[_0x94d7[16]](function(_0xa0a8x17){return _0xa0a8x8[_0x94d7[13]](200)[_0x94d7[12]](_0xa0a8x17)})[_0x94d7[20]](handleError(_0xa0a8x8))}
\ No newline at end of file