\r\n \r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CMSFolders.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CMSFolders.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CMSFolders.vue?vue&type=template&id=8ed50a32&\"\nimport script from \"./CMSFolders.vue?vue&type=script&lang=js&\"\nexport * from \"./CMSFolders.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import axios from \"axios\";\nimport appSettingsService from \"../appSettingsService\";\n\nconst genericResultService = new (class {\n\n Uci(db,discipline,key) {\n return new Promise((resolve, reject) => {\n const url = appSettingsService.get(\"apiUrlBase\") + 'results/generic/uci/'+db+'/'+discipline+ (key?'?key='+encodeURIComponent(key):'');\n\n axios.get(url).then(httpReply => {\n resolve(httpReply.data);\n }).catch(function (error) {\n if (error.response) {\n reject({ errorMessage: \"HTTP_\" + error.response.status });\n }\n else {\n reject(error);\n }\n });\n\n });\n }\n\n Upload(db,discipline,key,data) {\n console.log(\"upload data \",data)\n return new Promise((resolve, reject) => {\n const url = appSettingsService.get(\"apiUrlBase\") + 'results/generic/uci/'+db+'/'+discipline+ '/'+encodeURIComponent(key) ;\n\n console.log(\"post to \",url)\n\n axios.post(url,data).then(httpReply => {\n resolve(httpReply.data);\n }).catch(function (error) {\n if (error.response) {\n reject({ errorMessage: \"HTTP_\" + error.response.status });\n }\n else {\n reject(error);\n }\n });\n\n });\n }\n\n\n Get(customer,db,discipline,key) {\n return new Promise((resolve, reject) => {\n const url = appSettingsService.get(\"apiUrlBase\") + 'results/generic/get/'+customer+'/'+db+'/'+discipline+ (key?'?key='+encodeURIComponent(key):'');\n\n axios.get(url).then(httpReply => {\n resolve(httpReply.data);\n }).catch(function (error) {\n if (error.response) {\n reject({ errorMessage: \"HTTP_\" + error.response.status });\n }\n else {\n reject(error);\n }\n });\n\n });\n\n }\n\n getEventView(eventId) {\n return new Promise((resolve, reject) => {\n const url = appSettingsService.get(\"apiUrlBase\") + \"Event/view/\" + eventId;\n\n axios.get(url).then(httpReply => {\n console.log(\"reply\", httpReply);\n\n resolve(httpReply.data);\n }).catch(function (error) {\n if (error.response) {\n reject({ errorMessage: \"HTTP_\" + error.response.status });\n }\n else {\n reject(error);\n }\n });\n\n });\n }\n\n constructor() {\n\n }\n})();\n\nexport default genericResultService;\n"],"sourceRoot":""}