{"version":3,"sources":["webpack:///./src/views/QualtricsSurvey.vue?0fd4","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/views/QualtricsSurvey.vue?4be0","webpack:///./src/views/QualtricsSurvey.vue?c073","webpack:///./src/views/QualtricsSurvey.vue?c464","webpack:///./node_modules/eslint-loader/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","longUrl","staticRenderFns","Vue","extend","data","fullUrl","window","location","href","segmentos","URL","pathname","split","ultimoParametro","pop","ObtainQualtricsLongUrl","methods","id","resultado","console","log","chatService","FindUrlLongForQualtrics","then","resp","JSON","stringify","urlLong","catch","error","component","API_URL","PINCIPAL","headers","ChatService","obtenerIp","axios","get","ValidChat","cargaInicial","aux","post","SaveChat","mensaje","SaveChatComplement","chatCompleteEnc","dataSaveComplementChat","chat","UpdateChatTdd","SaveMesssage","url","localStorage","getItem","FinishChatBot","keyChat","idEvent","KeyChat","EventId","loadEmojis","getSentReceivedViewed","desc","getCuestionario","isBot","appType","sChannel","SaveSurvey","derivacion","requestDerivacion","InfoQualtrix","surveyId"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,YAAY,oBAAoBC,MAAM,CAAC,IAAMP,EAAIQ,QAAQ,YAAc,QAChLC,EAAkB,G,wBCQJC,eAAIC,OAAO,CACtBC,OACI,MAAO,CACHJ,QAAS,KAGjB,gBACI,MAAMK,EAAUC,OAAOC,SAASC,KAC1BC,EAAY,IAAIC,IAAIL,GAASM,SAASC,MAAM,KAC5CC,EAAkBJ,EAAUK,YAE5BrB,KAAKsB,uBAAuBF,IAEtCG,QAAS,CACL,6BAA6BC,GAEzB,IAAIC,EAAYD,GAAM,GAEtBE,QAAQC,IAAI,cAAgBF,SAEtBG,OAAYC,wBAAwBJ,GAAWK,KAAKC,IACtDL,QAAQC,IAAI,wCAA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D,EAAO,CAAEoD,QAASF,EAASG,QAASF,GACxC,aAAanB,IAAMK,KAAKS,EAAKzB,KAAKC,UAAUtB,GAAO,CAAE6B,QAASA,IAGjD,oBACb,IAAIiB,EAAMnB,EAAU,2CACpB,aAAaK,IAAMK,KAAKS,EAAK,GAAI,CAAEjB,QAASA,IAGhDyB,WAAWtD,GACP,IAAI8C,EAAMC,aAAaC,QAAQ,eAAiB,aAChD,OAAOhB,IAAMK,KAAKS,EAAKzB,KAAKC,UAAUtB,GAAO,CAAE6B,QAASA,IAG5D0B,sBAAsBC,GAClB,IAAIV,EAAMC,aAAaC,QAAQ,iBAAmB,qDAAuDQ,EACzG,OAAOxB,IAAMC,IAAIa,EAAK,CAAEjB,QAASA,IAGrC4B,gBAAgBC,EAAYR,EAAcS,EAAcC,GACpD,IAAId,EAAMnB,EAAU,2BAA6BuB,EAAU,YAAcS,EAAU,YAAcC,EAAW,UAAYF,EACxH,OAAO1B,IAAMC,IAAIa,EAAK,CAAEjB,QAASA,IAGrCgC,WAAW7D,GACP,IAAI8C,EAAMnB,EAAU,uBACpB,OAAOK,IAAMK,KAAKS,EAAK9C,EAAM,CAAE6B,QAASA,IAG5CiC,WAAWC,GACP,OAAO/B,IAAMK,KAAKV,EAAU,uBAAwBoC,EAAmB,CAAElC,QAASA,IAGtFmC,aAAanD,GACT,OAAOmB,IAAMC,IAAIN,EAAU,kCAAoCd,GAGxC,8BAACoD,GAC5B,aAAajC,IAAMC,IAAIN,EAAU,6CAA+CsC,IAGrE,WAAInC","file":"js/chunk-98841f0a.50692a83.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('iframe',{staticClass:\"fullscreen-iframe\",attrs:{\"src\":_vm.longUrl,\"frameborder\":\"0\"}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport chatService from \"@/services/chat.service\";\r\nimport { error } from \"console\";\r\n\r\n export default Vue.extend({\r\n data(){\r\n return {\r\n longUrl: ''\r\n }\r\n },\r\n async mounted() {\r\n const fullUrl = window.location.href;\r\n const segmentos = new URL(fullUrl).pathname.split('/');\r\n const ultimoParametro = segmentos.pop();\r\n \r\n await this.ObtainQualtricsLongUrl(ultimoParametro);\r\n },\r\n methods: {\r\n async ObtainQualtricsLongUrl(id?: string){\r\n //this.longUrl = \"https://claroperu.sjc1.qualtrics.com/jfe/form/SV_8zTR?Q_EED=eyJVc3VhcmlvIjoiQ2xhcm9Cb3QiLCJDYW5hbCI6IldBIiwiU2VydmljaW8iOiJDbGFyb0JvdCIsIkZlY2hhX0hvcmEiOiIzMS0wOC0yMDIzIDIxOjE1IiwiTW90aXZvX3Zpc2l0YTEiOiJNZSBheXVkYXLDrWEgbXVjaG8gcXVlIHJlc3BvbmRhcyBsYXMgc2lndWllbnRlcyBwcmVndW50YXMgc29icmUgbWkgYXRlbmNpw7NuIPCfkYkgPGEgdGFyZ2V0PVwiX2JsYW5rXCIgaHJlZj1cImh0dHBzOi8vY2xhcm9wZXJ1LnNqYzEucXVhbHRyaWNzLmNvbS9qZmUvZm9ybS9TVl85eU9OV0FHNWpHMkNnN0FcIj48Yj5hcXXDrTwvYj48L2E+IiwiTW90aXZvX3Zpc2l0YTIiOiJNZSBheXVkYXLDrWEgbXVjaG8gcXVlIHJlc3BvbmRhcyBsYXMgc2lndWllbnRlcyBwcmVndW50YXMgc29icmUgbWkgYXRlbmNpw7NuIPCfkYkgPGEgdGFyZ2V0PVwiX2JsYW5rXCIgaHJlZj1cImh0dHBzOi8vY2xhcm9wZXJ1LnNqYzEucXVhbHRyaWNzLmNvbS9qZmUvZm9ybS9TVl85eU9OV0FHNWpHMkNnN0FcIj48Yj5hcXXDrTwvYj48L2E+IiwiSURfQ29udmVyc2FjaW9uIjoiZTg2OWQyODEtYmM5Zi00ZmQ2LTliNzQtYjVlYjkzODk0ODkwIiwiVGlwb19DbGllbnRlIjoiIiwiVGllbXBvX0F0ZW5jaW9uIjoiMTI6NDg6NDcuOTI3NzA4OSJ9\";\r\n let resultado = id || \"\";\r\n\r\n console.log(\"Resultado: \" + resultado);\r\n\r\n await chatService.FindUrlLongForQualtrics(resultado).then(resp => {\r\n console.log(\"Datos de servicio para obtener info: \" + JSON.stringify(resp));\r\n this.longUrl = resp.data.urlLong;\r\n console.log(\"URL Long: \" + this.longUrl);\r\n \r\n }).catch(error => {\r\n console.error(\"Ocurrio un error\", error);\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--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QualtricsSurvey.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QualtricsSurvey.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./QualtricsSurvey.vue?vue&type=template&id=05547d08&\"\nimport script from \"./QualtricsSurvey.vue?vue&type=script&lang=ts&\"\nexport * from \"./QualtricsSurvey.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./QualtricsSurvey.vue?vue&type=style&index=0&lang=css&\"\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","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QualtricsSurvey.vue?vue&type=style&index=0&lang=css&\"","/* eslint-disable */\r\nimport axios from 'axios'\r\nimport { URL } from './URL_SERVICIOS'\r\nconst API_URL = URL.PINCIPAL\r\nconst headers = { 'Accept': 'application/json', 'Content-Type': 'application/json; charset=utf-8' }\r\n\r\nclass ChatService {\r\n\r\n obtenerIp() {\r\n return axios.get(API_URL + '/api/Chat/GetIPAddres');\r\n }\r\n\r\n ValidChat(id: string) {\r\n console.log(\"Url Peticion: \" + API_URL + '/api/Chat/ValidChat?id=' + id);\r\n return axios.get(API_URL + '/api/Chat/ValidChat?id=' + id);\r\n }\r\n\r\n cargaInicial(aux: any) {\r\n return axios.post(API_URL + '/api/Chat/CargaInicialChat', aux, { headers: headers });\r\n }\r\n\r\n SaveChat(data: any) {\r\n console.log(\"Guardo conversación\")\r\n data.mensaje = '';\r\n return axios.post(API_URL + '/api/Chat/SaveChatAsync', data, { headers: headers });\r\n }\r\n\r\n SaveChatComplement(chatCompleteEnc: any, dataSaveComplementChat: any) {\r\n var aux: any = { chat: chatCompleteEnc, mensaje: dataSaveComplementChat };\r\n axios.post(API_URL + '/api/Chat/SaveChatComplement', aux, { headers: headers });\r\n }\r\n\r\n UpdateChatTdd(aux: any) {\r\n axios.post(API_URL + '/api/Chat/UpdateChatTdd', { chat: aux, mensaje: '' }, { headers: headers });\r\n }\r\n\r\n SaveMesssage(data: any) {\r\n var url = localStorage.getItem('UrlBaseChat') + \"/CreateConversationRecord\"\r\n axios.post(url, JSON.stringify(data), { headers: headers });\r\n }\r\n\r\n FinishChatBot(data: any) {\r\n var url = API_URL + '/api/Chat/FinishChat';\r\n return axios.post(url, JSON.stringify(data), { headers: headers });\r\n }\r\n\r\n async SaveReportEvents(keyChat: any, idEvent: any) {\r\n var url = localStorage.getItem('UrlBaseChat') + \"/SaveReportJourney\"\r\n var data = { KeyChat: keyChat, EventId: idEvent };\r\n return await axios.post(url, JSON.stringify(data), { headers: headers });\r\n }\r\n\r\n async Inactividad() {\r\n var url = API_URL + '/api/Chat/Inactividad?mensaje=Inactivity'\r\n return await axios.post(url, {}, { headers: headers });\r\n }\r\n\r\n loadEmojis(data: any) {\r\n var url = localStorage.getItem('UrlBaseChat') + \"/GetEmojis\"\r\n return axios.post(url, JSON.stringify(data), { headers: headers });\r\n }\r\n\r\n getSentReceivedViewed(desc: any) {\r\n var url = localStorage.getItem('UrlGeneralApi') + \"/api/CampaingMarketing/getSentReceivedViewed?desc=\" + desc\r\n return axios.get(url, { headers: headers });\r\n }\r\n\r\n getCuestionario(isBot: any, keyChat: any, appType: any, sChannel: any) {\r\n var url = API_URL + \"/api/Chat/Encuesta?guid=\" + keyChat + \"&appType=\" + appType + \"&channel=\" + sChannel + \"&isBot=\" + isBot;\r\n return axios.get(url, { headers: headers });\r\n }\r\n\r\n SaveSurvey(data: any) {\r\n var url = API_URL + \"/api/Chat/SaveSurvey\";\r\n return axios.post(url, data, { headers: headers });\r\n }\r\n\r\n derivacion(requestDerivacion: any) {\r\n return axios.post(API_URL + '/api/Chat/Derivacion', requestDerivacion, { headers: headers });\r\n }\r\n\r\n InfoQualtrix(id: string) {\r\n return axios.get(API_URL + '/api/Chat/InfoQualtrix?keyChat=' + id);\r\n }\r\n\r\n async FindUrlLongForQualtrics(surveyId: string) {\r\n return await axios.get(API_URL + '/api/Chat/QualtricsSurveyLongUrl?surveyId=' + surveyId);\r\n }\r\n}\r\nexport default new ChatService()\r\n"],"sourceRoot":""}