Built motion from commit d13e3c905.|1.0.24
[motion.git] / server / api / report_integration / report_integration.controller.js
1 var _0xcf30=["\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"];_0xcf30[0];var _=require(_0xcf30[1]);var ReportIntegration=require(_0xcf30[3])[_0xcf30[2]];var ReportIntegrationHistory=require(_0xcf30[3])[_0xcf30[5]][_0xcf30[4]];var Util=require(_0xcf30[6]);var util=require(_0xcf30[7]);var moment=require(_0xcf30[8]);var logger=require(_0xcf30[10])(_0xcf30[9]);exports[_0xcf30[11]]= function(_0x55cax8,_0x55cax9,_0x55caxa){return ReportIntegration[_0xcf30[18]](Util[_0xcf30[17]](_0x55cax8[_0xcf30[16]]))[_0xcf30[15]](function(_0x55caxc){return _0x55cax9[_0xcf30[14]](200)[_0xcf30[13]](_0x55caxc)})[_0xcf30[12]](function(_0x55caxb){return handleError(_0x55cax9,_0x55caxb)})};exports[_0xcf30[19]]= function(_0x55cax8,_0x55cax9){return ReportIntegrationHistory[_0xcf30[19]]()[_0xcf30[15]](function(_0x55caxd){return _0x55cax9[_0xcf30[14]](200)[_0xcf30[13]](_0x55caxd)})[_0xcf30[12]](function(_0x55caxb){return handleError(_0x55cax9,_0x55caxb)})};exports[_0xcf30[20]]= function(_0x55cax8,_0x55cax9){if(_0x55cax8[_0xcf30[22]][_0xcf30[21]]){_0x55cax8[_0xcf30[23]][_0xcf30[21]]= _0x55cax8[_0xcf30[22]][_0xcf30[21]];switch(_0x55cax8[_0xcf30[22]][_0xcf30[21]]){case _0xcf30[45]:_0x55cax8[_0xcf30[23]][_0xcf30[24]]= _0x55cax8[_0xcf30[23]][_0xcf30[25]];_0x55cax8[_0xcf30[23]][_0xcf30[26]]= _0xcf30[27];_0x55cax8[_0xcf30[23]][_0xcf30[28]]= _0x55cax8[_0xcf30[23]][_0xcf30[29]];if(_0x55cax8[_0xcf30[23]][_0xcf30[30]]){_0x55cax8[_0xcf30[23]][_0xcf30[31]]= _0x55cax8[_0xcf30[23]][_0xcf30[32]]?_0x55cax8[_0xcf30[23]][_0xcf30[32]][_0xcf30[33]](/\/|-/)[1]:null}else {_0x55cax8[_0xcf30[23]][_0xcf30[31]]= _0x55cax8[_0xcf30[23]][_0xcf30[34]]?_0x55cax8[_0xcf30[23]][_0xcf30[34]][_0xcf30[33]](/\/|-/)[1]:null};_0x55cax8[_0xcf30[23]][_0xcf30[35]]= moment(_0x55cax8[_0xcf30[23]][_0xcf30[36]]);_0x55cax8[_0xcf30[44]][_0xcf30[43]][_0xcf30[42]][_0xcf30[41]](util[_0xcf30[40]](_0xcf30[39],_0x55cax8[_0xcf30[23]][_0xcf30[31]]))[_0xcf30[38]](_0xcf30[37],_0x55cax8[_0xcf30[23]]);break;default:return _0x55cax9[_0xcf30[46]](404)}};return ReportIntegration[_0xcf30[20]](_0x55cax8[_0xcf30[23]])[_0xcf30[15]](function(_0x55caxe){return _0x55cax9[_0xcf30[14]](201)[_0xcf30[13]](_0x55caxe)})[_0xcf30[12]](function(_0x55caxb){return handleError(_0x55cax9,_0x55caxb)})};function handleError(_0x55cax9,_0x55caxb){logger[_0xcf30[48]](_0x55caxb[_0xcf30[47]]);return _0x55cax9[_0xcf30[14]](500)[_0xcf30[13]](_0x55caxb)}