{"version":3,"sources":["webpack:///./src/assets/creator/integrations/shoper.png","webpack:///./src/assets/creator/integrations/zapier.png","webpack:///./src/modules/integrations/components/List.vue?c2f2","webpack:///./src/modules/integrations/classes/integrationDefinitionVm.ts","webpack:///./src/modules/integrations/components/List.vue?1e73","webpack:///./src/modules/integrations/components/List.vue?ee68","webpack:///./src/modules/integrations/components/List.vue","webpack:///./src/modules/integrations/components/List.vue?616e","webpack:///./src/assets/creator/integrations/baselinker.png","webpack:///./src/assets/creator/integrations/woocommerce.png","webpack:///./src/assets/creator/integrations/pipedrive.png","webpack:///./src/assets/creator/integrations/shopify.png","webpack:///./src/assets/creator/integrations/apilo.png","webpack:///./src/assets/creator/integrations sync ^\\.\\/.*\\.png$","webpack:///./src/modules/integrations/api/integrations.ts","webpack:///./src/assets/creator/integrations/allegro.png","webpack:///./src/assets/creator/integrations/prestashop.png","webpack:///./src/assets/creator/integrations/erecruiter.png"],"names":["module","exports","RemoveBehaviour","render","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","value","expression","staticClass","attrs","slot","_v","_s","$t","_l","integration","key","id","landingPageUrl","image","on","$event","refresh","ref","staticStyle","integrationsData","column","prop","label","sortable","scopedSlots","_u","fn","scope","row","status","model","callback","$$v","$set","updateIntegration","toIntegration","isExternalRemove","deleteIntegration","isTurnOff","activateIntegration","_e","staticRenderFns","tableColumns","loading","editModeFields","editGroupIds","integrations","api","created","getIntegrationsDefinitions","list","show","$router","push","$confirm","type","confirmButtonText","cancelButtonText","customClass","then","deletetionResult","appMessage","some","n","toLowerCase","removeBehaviour","External","setIntegration","updateResult","List","component","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","MasterAccountId","state","auth","user","Promise","get","response","appResponse","data","IsSuccess","devices","Result","ErrorCodes","join","getIntegrationAndProps","integrationId","startDataSync","shopOrigin","a","post","backendUrl","headers","catch","error","responseData","updateProps","props","ConfigItems","getApiKey","macid","shopUrl","getProps","getIntegrationApiKeys","saveIntegr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X+D,GAAI3B,EAAKhF,GACT4G,OAAQ5B,EAAK9D,OACb2F,KAAM7B,EAAK7F,OACV6D,MAAK,SAAC8B,GACP,OAAO,KACNgB,OAAM,SAACC,GACR,OAAO,aAIE,YAAArE,kBAAb,SAA+BsD,G,kCAAuBJ,SAAO,W,wCAE3D,MAAO,CAAP,EAAO,OAAoBe,KAAK,OAAYC,WAAa,qCAAsC,CAC7FpB,gBAAiB3F,KAAK2F,gBACtBsC,YAAa9B,EAAKpC,KAClBmE,OAAQ/B,EAAKhF,GACbgH,OAAQhC,EAAKiC,SACZjE,MAAK,SAAC8B,GACP,OAAO,KACNgB,OAAM,SAACC,GACR,OAAO,aAIE,YAAAnE,oBAAb,SAAiCoD,G,kCAAuBJ,SAAO,W,wCAE7D,MAAO,CAAP,EAAO,OAAoBe,KAAK,OAAYC,WAAa,+BAAgC,CACvFpB,gBAAiB3F,KAAK2F,gBACtBsC,YAAa9B,EAAKpC,KAClBmE,OAAQ/B,EAAKhF,KACZgD,MAAK,SAAC8B,GACP,OAAO,KACNgB,OAAM,SAACC,GACR,OAAO,aAGb,EA1MA,I,4CCbAvH,EAAOC,QAAU,IAA0B,4B,qBCA3CD,EAAOC,QAAU,IAA0B,+B,qBCA3CD,EAAOC,QAAU,IAA0B","file":"js/chunk-70773f5d.722103c4.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/shoper.c191433e.png\";","module.exports = __webpack_public_path__ + \"img/zapier.013c8642.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"page-integrations\"},[_c('el-card',{staticClass:\"integrations-card\"},[_c('div',{staticClass:\"integrations\"},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('integrations.addNextIntegration')))])]),_c('div',{staticClass:\"integrations-list\"},[_c('ul',_vm._l((_vm.integrations),function(integration){return _c('li',{key:integration.id},[_c('a',{attrs:{\"href\":integration.landingPageUrl,\"target\":\"_blank\"}},[_c('img',{attrs:{\"src\":require('@/assets/creator/integrations/' + integration.image + '.png'),\"alt\":integration.name,\"title\":integration.name}})])])}),0)])])]),_c('el-card',{staticClass:\"box-card\"},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('integrations.title')))])]),_c('div',{staticClass:\"buttons-set\"},[_c('el-tooltip',{staticClass:\"refresh-table-btn\",attrs:{\"open-delay\":500,\"content\":_vm.$t('integrations.refreshTable'),\"placement\":\"top-start\"}},[_c('el-button',{attrs:{\"size\":\"medium\"},on:{\"click\":function($event){_vm.refresh()}}},[_c('i',{staticClass:\"el-icon-refresh-left\"})])],1)],1),_c('el-table',{ref:\"integrationsTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.integrationsData,\"stripe\":\"\",\"border\":\"\",\"height\":\"400\"}},[_vm._l((_vm.tableColumns),function(column){return _c('el-table-column',{key:column.prop,attrs:{\"prop\":column.prop,\"label\":column.label,\"sortable\":column.sortable}})}),_c('el-table-column',{attrs:{\"label\":this.$t('integrations.status'),\"sortable\":\"true\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$t('integrations.statuses.' + scope.row.status))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"label\":this.$t('integrations.name')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.name)+\"\\n \"),_c('el-popover',{attrs:{\"placement\":\"top\",\"width\":\"200\",\"trigger\":\"click\"}},[_c('div',{staticStyle:{\"text-align\":\"right\",\"margin\":\"0\"}},[_c('el-input',{attrs:{\"placeholder\":\"Please input\"},model:{value:(scope.row.name),callback:function ($$v) {_vm.$set(scope.row, \"name\", $$v)},expression:\"scope.row.name\"}}),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){_vm.updateIntegration(scope.row)}}},[_vm._v(_vm._s(_vm.$t('integrations.integration.save')))])],1),_c('el-button',{staticClass:\"icon-edit\",attrs:{\"slot\":\"reference\",\"icon\":\"el-icon-edit\",\"size\":\"mini\",\"circle\":\"\"},slot:\"reference\"})],1)]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('integrations.action')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-row',[_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"primary\",\"plain\":\"\"},on:{\"click\":function($event){_vm.toIntegration(scope.row.id)}}},[_vm._v(_vm._s(_vm.$t('integrations.details')))]),_c('el-tooltip',{attrs:{\"content\":_vm.$t('integrations.integration.externalRemove') + scope.row.id,\"disabled\":!_vm.isExternalRemove(scope.row)}},[_c('span',[_c('el-button',{attrs:{\"icon\":\"el-icon-delete\",\"size\":\"mini\",\"type\":\"danger\",\"disabled\":_vm.isExternalRemove(scope.row),\"plain\":\"\"},on:{\"click\":function($event){_vm.deleteIntegration(scope.row)}}},[_vm._v(_vm._s(_vm.$t('integrations.delete'))+\"\\n \")])],1)]),(_vm.isTurnOff(scope.row))?_c('el-button',{attrs:{\"icon\":\"el-icon-active\",\"size\":\"mini\",\"type\":\"success\",\"plain\":\"\"},on:{\"click\":function($event){_vm.activateIntegration(scope.row)}}},[_vm._v(_vm._s(_vm.$t('integrations.activate'))+\"\\n \")]):_vm._e()],1)]}}])})],2)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export interface IntegrationDefinitionVm {\n id: string;\n image: string;\n landingPageUrl: string;\n helpUrl: string;\n name: string;\n removeBehaviour?: RemoveBehaviour;\n videoExplainer?: string;\n}\n\nexport enum RemoveBehaviour {\n Portal = 0,\n External = 1\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport AppMessage from '../../core/models/appMessage';\nimport { IntegrationVm } from '../classes/integrationVm';\nimport { IntegrationApi } from '../api/integrations';\nimport { ElTable } from 'element-ui/types/table';\nimport { IntegrationDefinitionVm, RemoveBehaviour } from '../classes/integrationDefinitionVm';\nimport appMessage from '../../core/models/appMessage';\n\n@Component\nexport default class List extends Vue {\n public tableColumns: any[] = [];\n public integrationsData: IntegrationVm[] = [];\n public loading: boolean = false;\n public editModeFields: any = {};\n public editGroupIds: any = {};\n public integrations: IntegrationDefinitionVm[] = [];\n private api: IntegrationApi;\n constructor() {\n super();\n this.api = new IntegrationApi();\n }\n\n public async created() {\n this.tableColumns = [\n {\n prop: 'type',\n label: this.$t('integrations.type'),\n sortable: true,\n },\n {\n prop: 'id',\n label: this.$t('integrations.domain'),\n sortable: true,\n }\n ];\n\n this.refresh();\n\n const integrations = await this.api.getIntegrationsDefinitions();\n this.integrations = integrations;\n }\n\n public async refresh() {\n this.loading = true;\n try {\n this.integrationsData = await this.api.list();\n } catch (error) {\n AppMessage.show(this.$t('integrations.dataLoadError'), 'error');\n }\n this.loading = false;\n }\n\n public toIntegration(id: string) {\n this.$router.push('/integration?id=' + id);\n }\n\n public async deleteIntegration(integration: IntegrationVm)\n {\n this.$confirm(\n this.$t('devices.deleteText') as string,\n `${this.$t('integrations.deleteTitle') as string} ${integration.type}`,\n {\n confirmButtonText: this.$t('general.yes') as string,\n cancelButtonText: this.$t('general.no') as string,\n type: 'warning',\n customClass: 'deviceRemoveDialog',\n },\n ).then(async () => {\n var deletetionResult = await this.api.deleteIntegration(integration);\n if(deletetionResult)\n {\n appMessage.show(this.$t('integrations.deleteSuccess'), \"success\")\n }else{\n appMessage.show(this.$t('integrations.deleteError'), \"error\")\n }\n this.refresh();\n })\n }\n public async activateIntegration(integration: IntegrationVm)\n {\n var deletetionResult = await this.api.activateIntegration(integration);\n if(deletetionResult)\n {\n appMessage.show(this.$t('integration.activateSuccess'), \"success\")\n }else{\n appMessage.show(this.$t('integration.activateError'), \"error\")\n }\n this.refresh();\n }\n public isExternalRemove(integration: IntegrationVm) : boolean\n {\n return this.integrations.some(n => n.name.toLowerCase() == integration.type \n && n.removeBehaviour == RemoveBehaviour.External);\n }\n public isTurnOff(integration: IntegrationVm) : boolean\n {\n return integration.status === 'turnoff';\n }\n public async updateIntegration(integration: IntegrationVm)\n {\n var updateResult = await this.api.setIntegration(integration);\n if(updateResult)\n {\n appMessage.show(this.$t('integration.updateSuccess'), \"success\")\n }else{\n appMessage.show(this.$t('integration.deleteError'), \"error\")\n }\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=11f1336c\"\nimport script from \"./List.vue?vue&type=script&lang=ts\"\nexport * from \"./List.vue?vue&type=script&lang=ts\"\nimport style0 from \"./List.vue?vue&type=style&index=0&id=11f1336c&prod&lang=scss\"\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--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=style&index=0&id=11f1336c&prod&lang=scss\"","module.exports = __webpack_public_path__ + \"img/baselinker.dbab0f3a.png\";","module.exports = __webpack_public_path__ + \"img/woocommerce.404c87bc.png\";","module.exports = __webpack_public_path__ + \"img/pipedrive.e2920ef3.png\";","module.exports = __webpack_public_path__ + \"img/shopify.f456c26e.png\";","module.exports = __webpack_public_path__ + \"img/apilo.8c88f7b8.png\";","var map = {\n\t\"./allegro.png\": \"e36a\",\n\t\"./apilo.png\": \"b10f\",\n\t\"./baselinker.png\": \"94c0\",\n\t\"./erecruiter.png\": \"f048\",\n\t\"./pipedrive.png\": \"9c4d\",\n\t\"./prestashop.png\": \"ecc8\",\n\t\"./shoper.png\": \"185b\",\n\t\"./shopify.png\": \"a966\",\n\t\"./woocommerce.png\": \"9618\",\n\t\"./zapier.png\": \"586b\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"b72a\";","import { IntegrationAndProperties } from './../classes/integrationAndProperties';\nimport { IntegrationVm } from '../classes/integrationVm';\nimport { AppResponse } from 'modules/core/interfaces/appResponse';\nimport AuthorizedApiClient from 'modules/auth/models/authorizedApiClient';\nimport axios, { AxiosResponse, AxiosError } from 'axios';\nimport store from '@/store/index';\nimport { ContactProperty } from '../../installation-wizard/classes/contactProperty';\nimport { Integrations } from '../../installation-wizard/enums/integrations';\nimport environment from '@/environment';\nimport { IntegrationDefinitionVm } from '../classes/integrationDefinitionVm';\nimport { IntegrationApiKeys } from '@/modules/installation-wizard/classes/integrationApiKeys';\nimport appMessage from '@/modules/core/models/appMessage';\n\nexport class IntegrationApi {\n public MasterAccountId: string;\n\n public constructor() {\n this.MasterAccountId = store.state.auth && store.state.auth.user\n ? store.state.auth.user.MasterAccountId\n : null;\n }\n\n public async list(): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.get('/account/GetIntegrations');\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const devices: IntegrationVm[] = appResponse.Result ? appResponse.Result : [];\n return devices;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async getIntegrationAndProps(integrationId: string): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.get('/account/GetIntegration?id=' + integrationId);\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const data: IntegrationAndProperties = appResponse.Result;\n return data;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async startDataSync(shopOrigin: string): Promise {\n return axios.post(environment.backendUrl + '/shopify/api/v1.0/settings/RunSync', {},\n {\n headers: {\n 'Content-Type': 'application/json',\n 'x-lc-shoporigin': shopOrigin,\n },\n }).then((response: AxiosResponse>) => {\n return true;\n }).catch((error: AxiosError) => {\n if (error.response && error.response.data) {\n const responseData: AppResponse = error.response.data;\n throw new Error(responseData.ErrorCodes.join(','));\n } else {\n throw new Error();\n }\n });\n }\n\n public async updateProps(props: ContactProperty[]) {\n const MasterAccountId = this.MasterAccountId;\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.post('/contact/ConfigureProperties', {\n MasterAccountId,\n ConfigItems: props,\n });\n\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n return appResponse.Result;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async getApiKey(shopOrigin: string): Promise {\n const macid = this.MasterAccountId;\n return axios.post(\n environment.backendUrl + '/shopify/api/v1.0/settings/GetApiKey',\n {\n shopUrl: shopOrigin,\n MasterAccountId: macid,\n },\n ).then((response: AxiosResponse>) => {\n return response.data.Result;\n }).catch((error: AxiosError) => {\n if (error.response && error.response.data) {\n const responseData: AppResponse = error.response.data;\n throw new Error(responseData.ErrorCodes.join(','));\n } else {\n throw new Error();\n }\n });\n }\n\n public async getProps(integration: Integrations): Promise {\n return axios.get(environment.backendUrl + '/api/v1.0/creator/GetProperties?integration=' + integration,\n {\n headers: {\n 'Content-Type': 'application/json',\n },\n }).then((response: AxiosResponse>) => {\n if (response.status === 200) {\n const responseData = response.data;\n\n if (responseData.IsSuccess) {\n return responseData.Result;\n } else {\n throw new Error(responseData.ErrorCodes.join(','));\n }\n }\n }).catch((error: AxiosError) => {\n if (error.response && error.response.data) {\n const responseData: AppResponse = error.response.data;\n throw new Error(responseData.ErrorCodes.join(','));\n } else {\n throw new Error();\n }\n });\n }\n\n public async getIntegrationsDefinitions(): Promise {\n return axios.get(environment.backendUrl + ('/api/v1.0/integration/list'))\n .then((response: AxiosResponse>) => {\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const devices: IntegrationDefinitionVm[] = appResponse.Result ? appResponse.Result : [];\n return devices;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n });\n }\n\n public async getIntegrationApiKeys(integration: string): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.get('/account/GetApiKeys?integration=' + integration);\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const data: IntegrationApiKeys = appResponse.Result;\n return data;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async saveIntegrationApiKeys(data: IntegrationApiKeys): Promise {\n return AuthorizedApiClient.post(environment.backendUrl + '/account/SaveApiKeys', data,\n {\n headers: {\n 'Content-Type': 'application/json',\n },\n }).then((response: AxiosResponse>) => {\n return response.data;\n }).catch((error: AxiosError) => {\n if (error.response && error.response.data) {\n const responseData: AppResponse = error.response.data;\n throw new Error(responseData.ErrorCodes.join(','));\n } else {\n throw new Error();\n }\n });\n }\n public async setIntegration(data: IntegrationVm) : Promise\n {\n return AuthorizedApiClient.post(environment.backendUrl + '/account/SetIntegration', \n {\n MasterAccountId: this.MasterAccountId,\n Type: data.type,\n Id: data.id,\n Status: data.status,\n Name: data.name\n }).then((response: AxiosResponse>) => {\n return true;\n }).catch((error: AxiosError) =>{\n return false;\n })\n }\n\n public async deleteIntegration(data: IntegrationVm) : Promise \n {\n return AuthorizedApiClient.post(environment.backendUrl + '/account/DeleteIntegrationAndProps', {\n MasterAccountId: this.MasterAccountId,\n Integration: data.type,\n Domain: data.id,\n ApiKey: data.apikey\n }).then((response: AxiosResponse>) => {\n return true;\n }).catch((error: AxiosError) => {\n return false;\n })\n }\n\n public async activateIntegration(data: IntegrationVm) : Promise \n {\n return AuthorizedApiClient.post(environment.backendUrl + '/account/ActivateIntegration', {\n MasterAccountId: this.MasterAccountId,\n Integration: data.type,\n Domain: data.id\n }).then((response: AxiosResponse>) => {\n return true;\n }).catch((error: AxiosError) => {\n return false;\n })\n }\n}\n\n","module.exports = __webpack_public_path__ + \"img/allegro.26b18e5c.png\";","module.exports = __webpack_public_path__ + \"img/prestashop.15af3f65.png\";","module.exports = __webpack_public_path__ + \"img/erecruiter.a9df211a.png\";"],"sourceRoot":""}