Built motion from commit 16cc8f1.|1.0.14
[motion.git] / server / api / report_integration / report_integration.controller.js
index 2bc5613..395d770 100644 (file)
@@ -1 +1 @@
-var _0x6af8=["\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","\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"];_0x6af8[0];var _=require(_0x6af8[1]);var ReportIntegration=require(_0x6af8[3])[_0x6af8[2]];var ReportIntegrationHistory=require(_0x6af8[3])[_0x6af8[5]][_0x6af8[4]];var Util=require(_0x6af8[6]);var util=require(_0x6af8[7]);const moment=require(_0x6af8[8]);exports[_0x6af8[9]]= function(_0x6f11x7,_0x6f11x8,_0x6f11x9){return ReportIntegration[_0x6af8[16]](Util[_0x6af8[15]](_0x6f11x7[_0x6af8[14]]))[_0x6af8[13]](function(_0x6f11xb){return _0x6f11x8[_0x6af8[12]](200)[_0x6af8[11]](_0x6f11xb)})[_0x6af8[10]](function(_0x6f11xa){return handleError(_0x6f11x8,_0x6f11xa)})};exports[_0x6af8[17]]= function(_0x6f11x7,_0x6f11x8){return ReportIntegrationHistory[_0x6af8[17]]()[_0x6af8[13]](function(_0x6f11xc){return _0x6f11x8[_0x6af8[12]](200)[_0x6af8[11]](_0x6f11xc)})[_0x6af8[10]](function(_0x6f11xa){return handleError(_0x6f11x8,_0x6f11xa)})};exports[_0x6af8[18]]= function(_0x6f11x7,_0x6f11x8){if(_0x6f11x7[_0x6af8[20]][_0x6af8[19]]){_0x6f11x7[_0x6af8[21]][_0x6af8[19]]= _0x6f11x7[_0x6af8[20]][_0x6af8[19]];switch(_0x6f11x7[_0x6af8[20]][_0x6af8[19]]){case _0x6af8[43]:_0x6f11x7[_0x6af8[21]][_0x6af8[22]]= _0x6f11x7[_0x6af8[21]][_0x6af8[23]];_0x6f11x7[_0x6af8[21]][_0x6af8[24]]= _0x6af8[25];_0x6f11x7[_0x6af8[21]][_0x6af8[26]]= _0x6f11x7[_0x6af8[21]][_0x6af8[27]];if(_0x6f11x7[_0x6af8[21]][_0x6af8[28]]){_0x6f11x7[_0x6af8[21]][_0x6af8[29]]= _0x6f11x7[_0x6af8[21]][_0x6af8[30]]?_0x6f11x7[_0x6af8[21]][_0x6af8[30]][_0x6af8[31]](/\/|-/)[1]:null}else {_0x6f11x7[_0x6af8[21]][_0x6af8[29]]= _0x6f11x7[_0x6af8[21]][_0x6af8[32]]?_0x6f11x7[_0x6af8[21]][_0x6af8[32]][_0x6af8[31]](/\/|-/)[1]:null};_0x6f11x7[_0x6af8[21]][_0x6af8[33]]= moment(_0x6f11x7[_0x6af8[21]][_0x6af8[34]]);_0x6f11x7[_0x6af8[42]][_0x6af8[41]][_0x6af8[40]][_0x6af8[39]](util[_0x6af8[38]](_0x6af8[37],_0x6f11x7[_0x6af8[21]][_0x6af8[29]]))[_0x6af8[36]](_0x6af8[35],_0x6f11x7[_0x6af8[21]]);break;default:return _0x6f11x8[_0x6af8[44]](404)}};return ReportIntegration[_0x6af8[18]](_0x6f11x7[_0x6af8[21]])[_0x6af8[13]](function(_0x6f11xd){return _0x6f11x8[_0x6af8[12]](201)[_0x6af8[11]](_0x6f11xd)})[_0x6af8[10]](function(_0x6f11xa){return handleError(_0x6f11x8,_0x6f11xa)})};function handleError(_0x6f11x8,_0x6f11xa){return _0x6f11x8[_0x6af8[12]](500)[_0x6af8[11]](_0x6f11xa)}
\ No newline at end of file
+var _0x305c=["\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","\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"];_0x305c[0];var _=require(_0x305c[1]);var ReportIntegration=require(_0x305c[3])[_0x305c[2]];var ReportIntegrationHistory=require(_0x305c[3])[_0x305c[5]][_0x305c[4]];var Util=require(_0x305c[6]);var util=require(_0x305c[7]);const moment=require(_0x305c[8]);exports[_0x305c[9]]= function(_0xd1a4x7,_0xd1a4x8,_0xd1a4x9){return ReportIntegration[_0x305c[16]](Util[_0x305c[15]](_0xd1a4x7[_0x305c[14]]))[_0x305c[13]](function(_0xd1a4xb){return _0xd1a4x8[_0x305c[12]](200)[_0x305c[11]](_0xd1a4xb)})[_0x305c[10]](function(_0xd1a4xa){return handleError(_0xd1a4x8,_0xd1a4xa)})};exports[_0x305c[17]]= function(_0xd1a4x7,_0xd1a4x8){return ReportIntegrationHistory[_0x305c[17]]()[_0x305c[13]](function(_0xd1a4xc){return _0xd1a4x8[_0x305c[12]](200)[_0x305c[11]](_0xd1a4xc)})[_0x305c[10]](function(_0xd1a4xa){return handleError(_0xd1a4x8,_0xd1a4xa)})};exports[_0x305c[18]]= function(_0xd1a4x7,_0xd1a4x8){if(_0xd1a4x7[_0x305c[20]][_0x305c[19]]){_0xd1a4x7[_0x305c[21]][_0x305c[19]]= _0xd1a4x7[_0x305c[20]][_0x305c[19]];switch(_0xd1a4x7[_0x305c[20]][_0x305c[19]]){case _0x305c[43]:_0xd1a4x7[_0x305c[21]][_0x305c[22]]= _0xd1a4x7[_0x305c[21]][_0x305c[23]];_0xd1a4x7[_0x305c[21]][_0x305c[24]]= _0x305c[25];_0xd1a4x7[_0x305c[21]][_0x305c[26]]= _0xd1a4x7[_0x305c[21]][_0x305c[27]];if(_0xd1a4x7[_0x305c[21]][_0x305c[28]]){_0xd1a4x7[_0x305c[21]][_0x305c[29]]= _0xd1a4x7[_0x305c[21]][_0x305c[30]]?_0xd1a4x7[_0x305c[21]][_0x305c[30]][_0x305c[31]](/\/|-/)[1]:null}else {_0xd1a4x7[_0x305c[21]][_0x305c[29]]= _0xd1a4x7[_0x305c[21]][_0x305c[32]]?_0xd1a4x7[_0x305c[21]][_0x305c[32]][_0x305c[31]](/\/|-/)[1]:null};_0xd1a4x7[_0x305c[21]][_0x305c[33]]= moment(_0xd1a4x7[_0x305c[21]][_0x305c[34]]);_0xd1a4x7[_0x305c[42]][_0x305c[41]][_0x305c[40]][_0x305c[39]](util[_0x305c[38]](_0x305c[37],_0xd1a4x7[_0x305c[21]][_0x305c[29]]))[_0x305c[36]](_0x305c[35],_0xd1a4x7[_0x305c[21]]);break;default:return _0xd1a4x8[_0x305c[44]](404)}};return ReportIntegration[_0x305c[18]](_0xd1a4x7[_0x305c[21]])[_0x305c[13]](function(_0xd1a4xd){return _0xd1a4x8[_0x305c[12]](201)[_0x305c[11]](_0xd1a4xd)})[_0x305c[10]](function(_0xd1a4xa){return handleError(_0xd1a4x8,_0xd1a4xa)})};function handleError(_0xd1a4x8,_0xd1a4xa){return _0xd1a4x8[_0x305c[12]](500)[_0x305c[11]](_0xd1a4xa)}
\ No newline at end of file