Built motion from commit 94df3a359.|1.0.33
[motion.git] / server / api / report_integration / report_integration.controller.js
index 8583d1b..34ada2b 100644 (file)
@@ -1 +1 @@
-var _0x22f4=["\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"];_0x22f4[0];var _=require(_0x22f4[1]);var ReportIntegration=require(_0x22f4[3])[_0x22f4[2]];var ReportIntegrationHistory=require(_0x22f4[3])[_0x22f4[5]][_0x22f4[4]];var Util=require(_0x22f4[6]);var util=require(_0x22f4[7]);var moment=require(_0x22f4[8]);var logger=require(_0x22f4[10])(_0x22f4[9]);exports[_0x22f4[11]]= function(_0xc73cx8,_0xc73cx9,_0xc73cxa){return ReportIntegration[_0x22f4[18]](Util[_0x22f4[17]](_0xc73cx8[_0x22f4[16]]))[_0x22f4[15]](function(_0xc73cxc){return _0xc73cx9[_0x22f4[14]](200)[_0x22f4[13]](_0xc73cxc)})[_0x22f4[12]](function(_0xc73cxb){return handleError(_0xc73cx9,_0xc73cxb)})};exports[_0x22f4[19]]= function(_0xc73cx8,_0xc73cx9){return ReportIntegrationHistory[_0x22f4[19]]()[_0x22f4[15]](function(_0xc73cxd){return _0xc73cx9[_0x22f4[14]](200)[_0x22f4[13]](_0xc73cxd)})[_0x22f4[12]](function(_0xc73cxb){return handleError(_0xc73cx9,_0xc73cxb)})};exports[_0x22f4[20]]= function(_0xc73cx8,_0xc73cx9){if(_0xc73cx8[_0x22f4[22]][_0x22f4[21]]){_0xc73cx8[_0x22f4[23]][_0x22f4[21]]= _0xc73cx8[_0x22f4[22]][_0x22f4[21]];switch(_0xc73cx8[_0x22f4[22]][_0x22f4[21]]){case _0x22f4[45]:_0xc73cx8[_0x22f4[23]][_0x22f4[24]]= _0xc73cx8[_0x22f4[23]][_0x22f4[25]];_0xc73cx8[_0x22f4[23]][_0x22f4[26]]= _0x22f4[27];_0xc73cx8[_0x22f4[23]][_0x22f4[28]]= _0xc73cx8[_0x22f4[23]][_0x22f4[29]];if(_0xc73cx8[_0x22f4[23]][_0x22f4[30]]){_0xc73cx8[_0x22f4[23]][_0x22f4[31]]= _0xc73cx8[_0x22f4[23]][_0x22f4[32]]?_0xc73cx8[_0x22f4[23]][_0x22f4[32]][_0x22f4[33]](/\/|-/)[1]:null}else {_0xc73cx8[_0x22f4[23]][_0x22f4[31]]= _0xc73cx8[_0x22f4[23]][_0x22f4[34]]?_0xc73cx8[_0x22f4[23]][_0x22f4[34]][_0x22f4[33]](/\/|-/)[1]:null};_0xc73cx8[_0x22f4[23]][_0x22f4[35]]= moment(_0xc73cx8[_0x22f4[23]][_0x22f4[36]]);_0xc73cx8[_0x22f4[44]][_0x22f4[43]][_0x22f4[42]][_0x22f4[41]](util[_0x22f4[40]](_0x22f4[39],_0xc73cx8[_0x22f4[23]][_0x22f4[31]]))[_0x22f4[38]](_0x22f4[37],_0xc73cx8[_0x22f4[23]]);break;default:return _0xc73cx9[_0x22f4[46]](404)}};return ReportIntegration[_0x22f4[20]](_0xc73cx8[_0x22f4[23]])[_0x22f4[15]](function(_0xc73cxe){return _0xc73cx9[_0x22f4[14]](201)[_0x22f4[13]](_0xc73cxe)})[_0x22f4[12]](function(_0xc73cxb){return handleError(_0xc73cx9,_0xc73cxb)})};function handleError(_0xc73cx9,_0xc73cxb){logger[_0x22f4[48]](_0xc73cxb[_0x22f4[47]]);return _0xc73cx9[_0x22f4[14]](500)[_0x22f4[13]](_0xc73cxb)}
\ No newline at end of file
+var _0x7084=["\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"];_0x7084[0];var _=require(_0x7084[1]);var ReportIntegration=require(_0x7084[3])[_0x7084[2]];var ReportIntegrationHistory=require(_0x7084[3])[_0x7084[5]][_0x7084[4]];var Util=require(_0x7084[6]);var util=require(_0x7084[7]);var moment=require(_0x7084[8]);var logger=require(_0x7084[10])(_0x7084[9]);exports[_0x7084[11]]= function(_0x6285x8,_0x6285x9,_0x6285xa){return ReportIntegration[_0x7084[18]](Util[_0x7084[17]](_0x6285x8[_0x7084[16]]))[_0x7084[15]](function(_0x6285xc){return _0x6285x9[_0x7084[14]](200)[_0x7084[13]](_0x6285xc)})[_0x7084[12]](function(_0x6285xb){return handleError(_0x6285x9,_0x6285xb)})};exports[_0x7084[19]]= function(_0x6285x8,_0x6285x9){return ReportIntegrationHistory[_0x7084[19]]()[_0x7084[15]](function(_0x6285xd){return _0x6285x9[_0x7084[14]](200)[_0x7084[13]](_0x6285xd)})[_0x7084[12]](function(_0x6285xb){return handleError(_0x6285x9,_0x6285xb)})};exports[_0x7084[20]]= function(_0x6285x8,_0x6285x9){if(_0x6285x8[_0x7084[22]][_0x7084[21]]){_0x6285x8[_0x7084[23]][_0x7084[21]]= _0x6285x8[_0x7084[22]][_0x7084[21]];switch(_0x6285x8[_0x7084[22]][_0x7084[21]]){case _0x7084[45]:_0x6285x8[_0x7084[23]][_0x7084[24]]= _0x6285x8[_0x7084[23]][_0x7084[25]];_0x6285x8[_0x7084[23]][_0x7084[26]]= _0x7084[27];_0x6285x8[_0x7084[23]][_0x7084[28]]= _0x6285x8[_0x7084[23]][_0x7084[29]];if(_0x6285x8[_0x7084[23]][_0x7084[30]]){_0x6285x8[_0x7084[23]][_0x7084[31]]= _0x6285x8[_0x7084[23]][_0x7084[32]]?_0x6285x8[_0x7084[23]][_0x7084[32]][_0x7084[33]](/\/|-/)[1]:null}else {_0x6285x8[_0x7084[23]][_0x7084[31]]= _0x6285x8[_0x7084[23]][_0x7084[34]]?_0x6285x8[_0x7084[23]][_0x7084[34]][_0x7084[33]](/\/|-/)[1]:null};_0x6285x8[_0x7084[23]][_0x7084[35]]= moment(_0x6285x8[_0x7084[23]][_0x7084[36]]);_0x6285x8[_0x7084[44]][_0x7084[43]][_0x7084[42]][_0x7084[41]](util[_0x7084[40]](_0x7084[39],_0x6285x8[_0x7084[23]][_0x7084[31]]))[_0x7084[38]](_0x7084[37],_0x6285x8[_0x7084[23]]);break;default:return _0x6285x9[_0x7084[46]](404)}};return ReportIntegration[_0x7084[20]](_0x6285x8[_0x7084[23]])[_0x7084[15]](function(_0x6285xe){return _0x6285x9[_0x7084[14]](201)[_0x7084[13]](_0x6285xe)})[_0x7084[12]](function(_0x6285xb){return handleError(_0x6285x9,_0x6285xb)})};function handleError(_0x6285x9,_0x6285xb){logger[_0x7084[48]](_0x6285xb[_0x7084[47]]);return _0x6285x9[_0x7084[14]](500)[_0x7084[13]](_0x6285xb)}
\ No newline at end of file