Built motion from commit d3d6ca497.|1.0.32
[motion.git] / server / api / report_integration / report_integration.controller.js
index a074d95..15d4b35 100644 (file)
@@ -1 +1 @@
-var _0x68c0=["\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","\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","\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","\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"];_0x68c0[0];var _=require(_0x68c0[1]);var ReportIntegration=require(_0x68c0[3])[_0x68c0[2]];var ReportIntegrationHistory=require(_0x68c0[3])[_0x68c0[5]][_0x68c0[4]];var Util=require(_0x68c0[6]);var util=require(_0x68c0[7]);const moment=require(_0x68c0[8]);exports[_0x68c0[9]]= function(_0x33f0x7,_0x33f0x8,_0x33f0x9){return ReportIntegration[_0x68c0[16]](Util[_0x68c0[15]](_0x33f0x7[_0x68c0[14]]))[_0x68c0[13]](function(_0x33f0xb){return _0x33f0x8[_0x68c0[12]](200)[_0x68c0[11]](_0x33f0xb)})[_0x68c0[10]](function(_0x33f0xa){return handleError(_0x33f0x8,_0x33f0xa)})};exports[_0x68c0[17]]= function(_0x33f0x7,_0x33f0x8){return ReportIntegrationHistory[_0x68c0[17]]()[_0x68c0[13]](function(_0x33f0xc){return _0x33f0x8[_0x68c0[12]](200)[_0x68c0[11]](_0x33f0xc)})[_0x68c0[10]](function(_0x33f0xa){return handleError(_0x33f0x8,_0x33f0xa)})};exports[_0x68c0[18]]= function(_0x33f0x7,_0x33f0x8){if(_0x33f0x7[_0x68c0[20]][_0x68c0[19]]){_0x33f0x7[_0x68c0[21]][_0x68c0[19]]= _0x33f0x7[_0x68c0[20]][_0x68c0[19]];switch(_0x33f0x7[_0x68c0[20]][_0x68c0[19]]){case _0x68c0[41]:_0x33f0x7[_0x68c0[21]][_0x68c0[22]]= _0x33f0x7[_0x68c0[21]][_0x68c0[23]];_0x33f0x7[_0x68c0[21]][_0x68c0[24]]= _0x68c0[25];_0x33f0x7[_0x68c0[21]][_0x68c0[26]]= _0x33f0x7[_0x68c0[21]][_0x68c0[27]];_0x33f0x7[_0x68c0[21]][_0x68c0[28]]= _0x33f0x7[_0x68c0[21]][_0x68c0[29]]?_0x33f0x7[_0x68c0[21]][_0x68c0[29]][_0x68c0[30]](/\/|-/)[1]:null;_0x33f0x7[_0x68c0[21]][_0x68c0[31]]= moment(_0x33f0x7[_0x68c0[21]][_0x68c0[32]]);_0x33f0x7[_0x68c0[40]][_0x68c0[39]][_0x68c0[38]][_0x68c0[37]](util[_0x68c0[36]](_0x68c0[35],_0x33f0x7[_0x68c0[21]][_0x68c0[28]]))[_0x68c0[34]](_0x68c0[33],_0x33f0x7[_0x68c0[21]]);break;default:return _0x33f0x8[_0x68c0[42]](404)}};return ReportIntegration[_0x68c0[18]](_0x33f0x7[_0x68c0[21]])[_0x68c0[13]](function(_0x33f0xd){return _0x33f0x8[_0x68c0[12]](201)[_0x68c0[11]](_0x33f0xd)})[_0x68c0[10]](function(_0x33f0xa){return handleError(_0x33f0x8,_0x33f0xa)})};function handleError(_0x33f0x8,_0x33f0xa){return _0x33f0x8[_0x68c0[12]](500)[_0x68c0[11]](_0x33f0xa)}
\ No newline at end of file
+var _0x4b51=["\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"];_0x4b51[0];var _=require(_0x4b51[1]);var ReportIntegration=require(_0x4b51[3])[_0x4b51[2]];var ReportIntegrationHistory=require(_0x4b51[3])[_0x4b51[5]][_0x4b51[4]];var Util=require(_0x4b51[6]);var util=require(_0x4b51[7]);var moment=require(_0x4b51[8]);var logger=require(_0x4b51[10])(_0x4b51[9]);exports[_0x4b51[11]]= function(_0x7e11x8,_0x7e11x9,_0x7e11xa){return ReportIntegration[_0x4b51[18]](Util[_0x4b51[17]](_0x7e11x8[_0x4b51[16]]))[_0x4b51[15]](function(_0x7e11xc){return _0x7e11x9[_0x4b51[14]](200)[_0x4b51[13]](_0x7e11xc)})[_0x4b51[12]](function(_0x7e11xb){return handleError(_0x7e11x9,_0x7e11xb)})};exports[_0x4b51[19]]= function(_0x7e11x8,_0x7e11x9){return ReportIntegrationHistory[_0x4b51[19]]()[_0x4b51[15]](function(_0x7e11xd){return _0x7e11x9[_0x4b51[14]](200)[_0x4b51[13]](_0x7e11xd)})[_0x4b51[12]](function(_0x7e11xb){return handleError(_0x7e11x9,_0x7e11xb)})};exports[_0x4b51[20]]= function(_0x7e11x8,_0x7e11x9){if(_0x7e11x8[_0x4b51[22]][_0x4b51[21]]){_0x7e11x8[_0x4b51[23]][_0x4b51[21]]= _0x7e11x8[_0x4b51[22]][_0x4b51[21]];switch(_0x7e11x8[_0x4b51[22]][_0x4b51[21]]){case _0x4b51[45]:_0x7e11x8[_0x4b51[23]][_0x4b51[24]]= _0x7e11x8[_0x4b51[23]][_0x4b51[25]];_0x7e11x8[_0x4b51[23]][_0x4b51[26]]= _0x4b51[27];_0x7e11x8[_0x4b51[23]][_0x4b51[28]]= _0x7e11x8[_0x4b51[23]][_0x4b51[29]];if(_0x7e11x8[_0x4b51[23]][_0x4b51[30]]){_0x7e11x8[_0x4b51[23]][_0x4b51[31]]= _0x7e11x8[_0x4b51[23]][_0x4b51[32]]?_0x7e11x8[_0x4b51[23]][_0x4b51[32]][_0x4b51[33]](/\/|-/)[1]:null}else {_0x7e11x8[_0x4b51[23]][_0x4b51[31]]= _0x7e11x8[_0x4b51[23]][_0x4b51[34]]?_0x7e11x8[_0x4b51[23]][_0x4b51[34]][_0x4b51[33]](/\/|-/)[1]:null};_0x7e11x8[_0x4b51[23]][_0x4b51[35]]= moment(_0x7e11x8[_0x4b51[23]][_0x4b51[36]]);_0x7e11x8[_0x4b51[44]][_0x4b51[43]][_0x4b51[42]][_0x4b51[41]](util[_0x4b51[40]](_0x4b51[39],_0x7e11x8[_0x4b51[23]][_0x4b51[31]]))[_0x4b51[38]](_0x4b51[37],_0x7e11x8[_0x4b51[23]]);break;default:return _0x7e11x9[_0x4b51[46]](404)}};return ReportIntegration[_0x4b51[20]](_0x7e11x8[_0x4b51[23]])[_0x4b51[15]](function(_0x7e11xe){return _0x7e11x9[_0x4b51[14]](201)[_0x4b51[13]](_0x7e11xe)})[_0x4b51[12]](function(_0x7e11xb){return handleError(_0x7e11x9,_0x7e11xb)})};function handleError(_0x7e11x9,_0x7e11xb){logger[_0x4b51[48]](_0x7e11xb[_0x4b51[47]]);return _0x7e11x9[_0x4b51[14]](500)[_0x4b51[13]](_0x7e11xb)}
\ No newline at end of file