Built motion from commit a3effcce5.|1.0.34
[motion.git] / server / api / report_integration / report_integration.controller.js
index 926a74a..3d2c7f8 100644 (file)
@@ -1 +1 @@
-var _0x7bc1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\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","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\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","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\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","\x64\x65\x73\x63\x72\x69\x62\x65","\x63\x72\x65\x61\x74\x65","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x70\x61\x72\x61\x6D\x73","\x62\x6F\x64\x79","\x74\x69\x63\x6B\x65\x74\x49\x64","\x69\x64\x5F\x73\x70\x6F\x6F\x6C\x65\x72","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x76\x6F\x69\x63\x65","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x6E\x75\x6D\x62\x65\x72","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6C\x69\x6E\x6B\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x70\x6C\x69\x74","\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x74\x69\x6D\x65\x73\x74\x61\x6D\x70","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x74\x64\x44\x69\x73\x70\x6F\x73\x61\x6C","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x74\x6F","\x69\x6F","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70","\x74\x64\x44\x69\x73\x70\x6F\x73\x61\x6C","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x7bc1[0];var _=require(_0x7bc1[1]);var ReportIntegration=require(_0x7bc1[3])[_0x7bc1[2]];var ReportIntegrationHistory=require(_0x7bc1[3])[_0x7bc1[5]][_0x7bc1[4]];var Util=require(_0x7bc1[6]);var util=require(_0x7bc1[7]);var moment=require(_0x7bc1[8]);var logger=require(_0x7bc1[10])(_0x7bc1[9]);exports[_0x7bc1[11]]= function(_0x87a6x8,_0x87a6x9,_0x87a6xa){return ReportIntegration[_0x7bc1[18]](Util[_0x7bc1[17]](_0x87a6x8[_0x7bc1[16]]))[_0x7bc1[15]](function(_0x87a6xc){return _0x87a6x9[_0x7bc1[14]](200)[_0x7bc1[13]](_0x87a6xc)})[_0x7bc1[12]](function(_0x87a6xb){return handleError(_0x87a6x9,_0x87a6xb)})};exports[_0x7bc1[19]]= function(_0x87a6x8,_0x87a6x9){return ReportIntegrationHistory[_0x7bc1[19]]()[_0x7bc1[15]](function(_0x87a6xd){return _0x87a6x9[_0x7bc1[14]](200)[_0x7bc1[13]](_0x87a6xd)})[_0x7bc1[12]](function(_0x87a6xb){return handleError(_0x87a6x9,_0x87a6xb)})};exports[_0x7bc1[20]]= function(_0x87a6x8,_0x87a6x9){if(_0x87a6x8[_0x7bc1[22]][_0x7bc1[21]]){_0x87a6x8[_0x7bc1[23]][_0x7bc1[21]]= _0x87a6x8[_0x7bc1[22]][_0x7bc1[21]];switch(_0x87a6x8[_0x7bc1[22]][_0x7bc1[21]]){case _0x7bc1[45]:_0x87a6x8[_0x7bc1[23]][_0x7bc1[24]]= _0x87a6x8[_0x7bc1[23]][_0x7bc1[25]];_0x87a6x8[_0x7bc1[23]][_0x7bc1[26]]= _0x7bc1[27];_0x87a6x8[_0x7bc1[23]][_0x7bc1[28]]= _0x87a6x8[_0x7bc1[23]][_0x7bc1[29]];if(_0x87a6x8[_0x7bc1[23]][_0x7bc1[30]]){_0x87a6x8[_0x7bc1[23]][_0x7bc1[31]]= _0x87a6x8[_0x7bc1[23]][_0x7bc1[32]]?_0x87a6x8[_0x7bc1[23]][_0x7bc1[32]][_0x7bc1[33]](/\/|-/)[1]:null}else {_0x87a6x8[_0x7bc1[23]][_0x7bc1[31]]= _0x87a6x8[_0x7bc1[23]][_0x7bc1[34]]?_0x87a6x8[_0x7bc1[23]][_0x7bc1[34]][_0x7bc1[33]](/\/|-/)[1]:null};_0x87a6x8[_0x7bc1[23]][_0x7bc1[35]]= moment(_0x87a6x8[_0x7bc1[23]][_0x7bc1[36]]);_0x87a6x8[_0x7bc1[44]][_0x7bc1[43]][_0x7bc1[42]][_0x7bc1[41]](util[_0x7bc1[40]](_0x7bc1[39],_0x87a6x8[_0x7bc1[23]][_0x7bc1[31]]))[_0x7bc1[38]](_0x7bc1[37],_0x87a6x8[_0x7bc1[23]]);break;default:return _0x87a6x9[_0x7bc1[46]](404)}};return ReportIntegration[_0x7bc1[20]](_0x87a6x8[_0x7bc1[23]])[_0x7bc1[15]](function(_0x87a6xe){return _0x87a6x9[_0x7bc1[14]](201)[_0x7bc1[13]](_0x87a6xe)})[_0x7bc1[12]](function(_0x87a6xb){return handleError(_0x87a6x9,_0x87a6xb)})};function handleError(_0x87a6x9,_0x87a6xb){logger[_0x7bc1[48]](_0x87a6xb[_0x7bc1[47]]);return _0x87a6x9[_0x7bc1[14]](500)[_0x7bc1[13]](_0x87a6xb)}
\ No newline at end of file
+var _0x4783=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\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","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\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","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\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","\x64\x65\x73\x63\x72\x69\x62\x65","\x63\x72\x65\x61\x74\x65","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x70\x61\x72\x61\x6D\x73","\x62\x6F\x64\x79","\x74\x69\x63\x6B\x65\x74\x49\x64","\x69\x64\x5F\x73\x70\x6F\x6F\x6C\x65\x72","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x76\x6F\x69\x63\x65","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x6E\x75\x6D\x62\x65\x72","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6C\x69\x6E\x6B\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x70\x6C\x69\x74","\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x74\x69\x6D\x65\x73\x74\x61\x6D\x70","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x74\x64\x44\x69\x73\x70\x6F\x73\x61\x6C","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x74\x6F","\x69\x6F","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70","\x74\x64\x44\x69\x73\x70\x6F\x73\x61\x6C","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x4783[0];var _=require(_0x4783[1]);var ReportIntegration=require(_0x4783[3])[_0x4783[2]];var ReportIntegrationHistory=require(_0x4783[3])[_0x4783[5]][_0x4783[4]];var Util=require(_0x4783[6]);var util=require(_0x4783[7]);var moment=require(_0x4783[8]);var logger=require(_0x4783[10])(_0x4783[9]);exports[_0x4783[11]]= function(_0xf504x8,_0xf504x9,_0xf504xa){return ReportIntegration[_0x4783[18]](Util[_0x4783[17]](_0xf504x8[_0x4783[16]]))[_0x4783[15]](function(_0xf504xc){return _0xf504x9[_0x4783[14]](200)[_0x4783[13]](_0xf504xc)})[_0x4783[12]](function(_0xf504xb){return handleError(_0xf504x9,_0xf504xb)})};exports[_0x4783[19]]= function(_0xf504x8,_0xf504x9){return ReportIntegrationHistory[_0x4783[19]]()[_0x4783[15]](function(_0xf504xd){return _0xf504x9[_0x4783[14]](200)[_0x4783[13]](_0xf504xd)})[_0x4783[12]](function(_0xf504xb){return handleError(_0xf504x9,_0xf504xb)})};exports[_0x4783[20]]= function(_0xf504x8,_0xf504x9){if(_0xf504x8[_0x4783[22]][_0x4783[21]]){_0xf504x8[_0x4783[23]][_0x4783[21]]= _0xf504x8[_0x4783[22]][_0x4783[21]];switch(_0xf504x8[_0x4783[22]][_0x4783[21]]){case _0x4783[45]:_0xf504x8[_0x4783[23]][_0x4783[24]]= _0xf504x8[_0x4783[23]][_0x4783[25]];_0xf504x8[_0x4783[23]][_0x4783[26]]= _0x4783[27];_0xf504x8[_0x4783[23]][_0x4783[28]]= _0xf504x8[_0x4783[23]][_0x4783[29]];if(_0xf504x8[_0x4783[23]][_0x4783[30]]){_0xf504x8[_0x4783[23]][_0x4783[31]]= _0xf504x8[_0x4783[23]][_0x4783[32]]?_0xf504x8[_0x4783[23]][_0x4783[32]][_0x4783[33]](/\/|-/)[1]:null}else {_0xf504x8[_0x4783[23]][_0x4783[31]]= _0xf504x8[_0x4783[23]][_0x4783[34]]?_0xf504x8[_0x4783[23]][_0x4783[34]][_0x4783[33]](/\/|-/)[1]:null};_0xf504x8[_0x4783[23]][_0x4783[35]]= moment(_0xf504x8[_0x4783[23]][_0x4783[36]]);_0xf504x8[_0x4783[44]][_0x4783[43]][_0x4783[42]][_0x4783[41]](util[_0x4783[40]](_0x4783[39],_0xf504x8[_0x4783[23]][_0x4783[31]]))[_0x4783[38]](_0x4783[37],_0xf504x8[_0x4783[23]]);break;default:return _0xf504x9[_0x4783[46]](404)}};return ReportIntegration[_0x4783[20]](_0xf504x8[_0x4783[23]])[_0x4783[15]](function(_0xf504xe){return _0xf504x9[_0x4783[14]](201)[_0x4783[13]](_0xf504xe)})[_0x4783[12]](function(_0xf504xb){return handleError(_0xf504x9,_0xf504xb)})};function handleError(_0xf504x9,_0xf504xb){logger[_0x4783[48]](_0xf504xb[_0x4783[47]]);return _0xf504x9[_0x4783[14]](500)[_0x4783[13]](_0xf504xb)}
\ No newline at end of file