Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / report_integration / report_integration.controller.js
index 6ab7d97..c5003a5 100644 (file)
@@ -1 +1 @@
-var _0x4dce=["\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"];_0x4dce[0];var _=require(_0x4dce[1]);var ReportIntegration=require(_0x4dce[3])[_0x4dce[2]];var ReportIntegrationHistory=require(_0x4dce[3])[_0x4dce[5]][_0x4dce[4]];var Util=require(_0x4dce[6]);var util=require(_0x4dce[7]);const moment=require(_0x4dce[8]);exports[_0x4dce[9]]= function(_0xccc3x7,_0xccc3x8,_0xccc3x9){return ReportIntegration[_0x4dce[16]](Util[_0x4dce[15]](_0xccc3x7[_0x4dce[14]]))[_0x4dce[13]](function(_0xccc3xb){return _0xccc3x8[_0x4dce[12]](200)[_0x4dce[11]](_0xccc3xb)})[_0x4dce[10]](function(_0xccc3xa){return handleError(_0xccc3x8,_0xccc3xa)})};exports[_0x4dce[17]]= function(_0xccc3x7,_0xccc3x8){return ReportIntegrationHistory[_0x4dce[17]]()[_0x4dce[13]](function(_0xccc3xc){return _0xccc3x8[_0x4dce[12]](200)[_0x4dce[11]](_0xccc3xc)})[_0x4dce[10]](function(_0xccc3xa){return handleError(_0xccc3x8,_0xccc3xa)})};exports[_0x4dce[18]]= function(_0xccc3x7,_0xccc3x8){if(_0xccc3x7[_0x4dce[20]][_0x4dce[19]]){_0xccc3x7[_0x4dce[21]][_0x4dce[19]]= _0xccc3x7[_0x4dce[20]][_0x4dce[19]];switch(_0xccc3x7[_0x4dce[20]][_0x4dce[19]]){case _0x4dce[43]:_0xccc3x7[_0x4dce[21]][_0x4dce[22]]= _0xccc3x7[_0x4dce[21]][_0x4dce[23]];_0xccc3x7[_0x4dce[21]][_0x4dce[24]]= _0x4dce[25];_0xccc3x7[_0x4dce[21]][_0x4dce[26]]= _0xccc3x7[_0x4dce[21]][_0x4dce[27]];if(_0xccc3x7[_0x4dce[21]][_0x4dce[28]]){_0xccc3x7[_0x4dce[21]][_0x4dce[29]]= _0xccc3x7[_0x4dce[21]][_0x4dce[30]]?_0xccc3x7[_0x4dce[21]][_0x4dce[30]][_0x4dce[31]](/\/|-/)[1]:null}else {_0xccc3x7[_0x4dce[21]][_0x4dce[29]]= _0xccc3x7[_0x4dce[21]][_0x4dce[32]]?_0xccc3x7[_0x4dce[21]][_0x4dce[32]][_0x4dce[31]](/\/|-/)[1]:null};_0xccc3x7[_0x4dce[21]][_0x4dce[33]]= moment(_0xccc3x7[_0x4dce[21]][_0x4dce[34]]);_0xccc3x7[_0x4dce[42]][_0x4dce[41]][_0x4dce[40]][_0x4dce[39]](util[_0x4dce[38]](_0x4dce[37],_0xccc3x7[_0x4dce[21]][_0x4dce[29]]))[_0x4dce[36]](_0x4dce[35],_0xccc3x7[_0x4dce[21]]);break;default:return _0xccc3x8[_0x4dce[44]](404)}};return ReportIntegration[_0x4dce[18]](_0xccc3x7[_0x4dce[21]])[_0x4dce[13]](function(_0xccc3xd){return _0xccc3x8[_0x4dce[12]](201)[_0x4dce[11]](_0xccc3xd)})[_0x4dce[10]](function(_0xccc3xa){return handleError(_0xccc3x8,_0xccc3xa)})};function handleError(_0xccc3x8,_0xccc3xa){return _0xccc3x8[_0x4dce[12]](500)[_0x4dce[11]](_0xccc3xa)}
\ No newline at end of file
+var _0x7862=["\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"];_0x7862[0];var _=require(_0x7862[1]);var ReportIntegration=require(_0x7862[3])[_0x7862[2]];var ReportIntegrationHistory=require(_0x7862[3])[_0x7862[5]][_0x7862[4]];var Util=require(_0x7862[6]);var util=require(_0x7862[7]);var moment=require(_0x7862[8]);var logger=require(_0x7862[10])(_0x7862[9]);exports[_0x7862[11]]= function(_0xdedax8,_0xdedax9,_0xdedaxa){return ReportIntegration[_0x7862[18]](Util[_0x7862[17]](_0xdedax8[_0x7862[16]]))[_0x7862[15]](function(_0xdedaxc){return _0xdedax9[_0x7862[14]](200)[_0x7862[13]](_0xdedaxc)})[_0x7862[12]](function(_0xdedaxb){return handleError(_0xdedax9,_0xdedaxb)})};exports[_0x7862[19]]= function(_0xdedax8,_0xdedax9){return ReportIntegrationHistory[_0x7862[19]]()[_0x7862[15]](function(_0xdedaxd){return _0xdedax9[_0x7862[14]](200)[_0x7862[13]](_0xdedaxd)})[_0x7862[12]](function(_0xdedaxb){return handleError(_0xdedax9,_0xdedaxb)})};exports[_0x7862[20]]= function(_0xdedax8,_0xdedax9){if(_0xdedax8[_0x7862[22]][_0x7862[21]]){_0xdedax8[_0x7862[23]][_0x7862[21]]= _0xdedax8[_0x7862[22]][_0x7862[21]];switch(_0xdedax8[_0x7862[22]][_0x7862[21]]){case _0x7862[45]:_0xdedax8[_0x7862[23]][_0x7862[24]]= _0xdedax8[_0x7862[23]][_0x7862[25]];_0xdedax8[_0x7862[23]][_0x7862[26]]= _0x7862[27];_0xdedax8[_0x7862[23]][_0x7862[28]]= _0xdedax8[_0x7862[23]][_0x7862[29]];if(_0xdedax8[_0x7862[23]][_0x7862[30]]){_0xdedax8[_0x7862[23]][_0x7862[31]]= _0xdedax8[_0x7862[23]][_0x7862[32]]?_0xdedax8[_0x7862[23]][_0x7862[32]][_0x7862[33]](/\/|-/)[1]:null}else {_0xdedax8[_0x7862[23]][_0x7862[31]]= _0xdedax8[_0x7862[23]][_0x7862[34]]?_0xdedax8[_0x7862[23]][_0x7862[34]][_0x7862[33]](/\/|-/)[1]:null};_0xdedax8[_0x7862[23]][_0x7862[35]]= moment(_0xdedax8[_0x7862[23]][_0x7862[36]]);_0xdedax8[_0x7862[44]][_0x7862[43]][_0x7862[42]][_0x7862[41]](util[_0x7862[40]](_0x7862[39],_0xdedax8[_0x7862[23]][_0x7862[31]]))[_0x7862[38]](_0x7862[37],_0xdedax8[_0x7862[23]]);break;default:return _0xdedax9[_0x7862[46]](404)}};return ReportIntegration[_0x7862[20]](_0xdedax8[_0x7862[23]])[_0x7862[15]](function(_0xdedaxe){return _0xdedax9[_0x7862[14]](201)[_0x7862[13]](_0xdedaxe)})[_0x7862[12]](function(_0xdedaxb){return handleError(_0xdedax9,_0xdedaxb)})};function handleError(_0xdedax9,_0xdedaxb){logger[_0x7862[48]](_0xdedaxb[_0x7862[47]]);return _0xdedax9[_0x7862[14]](500)[_0x7862[13]](_0xdedaxb)}
\ No newline at end of file