{"version":3,"sources":["webpack:///./src/assets/portal/use-plugin.png","webpack:///./src/modules/properties/api/properties.ts","webpack:///./src/assets/creator/integrations/shoper.png","webpack:///./src/modules/profile/api/profile.ts","webpack:///./src/modules/core/enums/languages.ts","webpack:///./src/assets/creator/integrations/zapier.png","webpack:///./src/modules/profile/classes/profile.ts","webpack:///./src/assets/portal/use-app.png","webpack:///./src/assets/creator/integrations/baselinker.png","webpack:///./src/modules/search-contact/components/SearchContacts.vue?d398","webpack:///./src/modules/search-contact/api/search-contact.ts","webpack:///./src/modules/search-contact/classes/contactVm.ts","webpack:///./src/modules/search-contact/components/SearchContacts.vue?dd3a","webpack:///./src/modules/search-contact/components/SearchContacts.vue?b1e6","webpack:///./src/modules/search-contact/components/SearchContacts.vue","webpack:///./src/assets/creator/integrations/woocommerce.png","webpack:///./src/modules/search-contact/components/SearchContacts.vue?0682","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","this","MasterAccountId","state","auth","user","getProps","Promise","get","response","appResponse","data","IsSuccess","devices","Result","Error","ErrorCodes","join","updateProps","props","updateMasterAccountId","post","ConfigItems","getProfile","getSubscription","updateProfile","profile","name","language","defaultPhoneNumberPrefix","marketingConsent","newsletterConsent","accountName","updatePassword","passwdChange","currentPassword","newPassword","confirmPassword","newPasswordRepeat","getSteps","Languages","hasShopifyIntegration","hadShopifyIntegration","email","EN","integrations","some","i","type","phoneNumber","render","_vm","_h","$createElement","_c","_self","directives","rawName","value","expression","hasAccountIntegrations","staticClass","attrs","slot","_v","_s","$t","_l","integration","key","id","landingPageUrl","image","_e","phoneModel","code","phone","on","updatePhoneNumber","search","ref","staticStyle","records","scopedSlots","_u","fn","scope","row","created","modified","getOriginType","origin","staticRenderFns","store","PhoneNumber","contact","propertyId","displayName","loading","undefined","propertiesApi","searchContactApi","profileApi","integrationApi","getIntegrationsDefinitions","list","userIntegration","length","loadRecord","properties","forEach","elem","isActive","item","RecordVm","propertyValue","filter","p","format","push","originMapper","custom","pipedrive","shoper","shopify","val","SearchCotacts","components","PhoneInput","component","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","keys","Object","resolve","getIntegrationAndProps","integrationId","startDataSync","shopOrigin","a","backendUrl","headers","then","catch","error","responseData","getApiKey","macid","shopUrl","status","getIntegrationApiKeys","saveIntegrationApiKeys","setIntegration","Type","Id","Status","Name","deleteIntegration","Integration","Domain","ApiKey","apikey","activateIntegration"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,+B,8GCM3C,aAGE,aACEC,KAAKC,gBAAkB,OAAMC,MAAMC,MAAQ,OAAMD,MAAMC,KAAKC,KACtD,OAAMF,MAAMC,KAAKC,KAAKH,gBACtB,KAwCV,OArCe,YAAAI,SAAb,W,kCAAyBC,SAAO,W,yEAG1B,SAAM,OAAoBC,IAAI,2B,OAGlC,GALMC,EAEF,SAEEC,EAA8CD,EAASE,KACzDD,EAAYE,UAEd,OADMC,EAA6BH,EAAYI,OAASJ,EAAYI,OAAS,GACtE,CAAP,EAAOD,GAEP,MAAM,IAAIE,MAAML,EAAYM,WAAWC,KAAK,cAInC,YAAAC,YAAb,SAAyBC,G,8HAKnB,OAJJlB,KAAKmB,wBACClB,EAAkBD,KAAKC,gBAGzB,GAAM,OAAoBmB,KAAK,+BAAgC,CACjEnB,gBAAe,EACfoB,YAAaH,K,OAIf,GARMV,EAEF,SAKEC,EAAmCD,EAASE,KAC9CD,EAAYE,UACd,MAAO,CAAP,EAAOF,EAAYI,QAEnB,MAAM,IAAIC,MAAML,EAAYM,WAAWC,KAAK,cAIxC,YAAAG,sBAAR,WACEnB,KAAKC,gBAAkB,OAAMC,MAAMC,MAAQ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","file":"js/chunk-0cf474b3.ca2851a0.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/use-plugin.9e8c63e7.png\";","import { ContactProperty } from 'modules/installation-wizard/classes/contactProperty';\nimport { AppResponse } from 'modules/core/interfaces/appResponse';\nimport AuthorizedApiClient from 'modules/auth/models/authorizedApiClient';\nimport { AxiosResponse } from 'axios';\nimport store from '@/store/index';\n\nexport class PropertiesApi {\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 getProps(): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.get('/account/GetProperties');\n\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const devices: ContactProperty[] = appResponse.Result ? appResponse.Result : [];\n return devices;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async updateProps(props: ContactProperty[]) {\n this.updateMasterAccountId();\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 private updateMasterAccountId() {\n this.MasterAccountId = store.state.auth && store.state.auth.user\n ? store.state.auth.user.MasterAccountId\n : null;\n }\n}\n\n","module.exports = __webpack_public_path__ + \"img/shoper.c191433e.png\";","import { PasswdChangeModel } from './../classes/passwdChange';\nimport { ProfileModel } from './../classes/profile';\nimport { Subscription } from './../classes/subscription';\nimport { AxiosResponse } from 'axios';\nimport AuthorizedApiClient from 'modules/auth/models/authorizedApiClient';\nimport { AppResponse } from 'modules/core/interfaces/appResponse';\nimport store from '@/store/index';\nimport { UserSteps } from '../classes/userSteps';\n\nexport class ProfileApi {\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 getProfile(): Promise {\n const response: AxiosResponse> = await AuthorizedApiClient.get('/Account/GetProfileInfo');\n if(!response)\n {\n throw new Error();\n }\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const user: ProfileModel = new ProfileModel(appResponse.Result);\n return user;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async getSubscription(): Promise {\n const response: AxiosResponse> =\n await AuthorizedApiClient.get('/Account/GetSubscription');\n const appResponse: AppResponse = response.data;\n\n if (appResponse.IsSuccess) {\n const user: Subscription = appResponse.Result;\n return user;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async updateProfile(profile: ProfileModel): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.post('/Account/SetProfileInfo', {\n name: profile.name,\n language: profile.language,\n defaultPhoneNumberPrefix: profile.defaultPhoneNumberPrefix,\n marketingConsent: profile.marketingConsent,\n newsletterConsent: profile.newsletterConsent,\n accountName: profile.accountName\n });\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n return true;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async updatePassword(passwdChange: PasswdChangeModel): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.post('/Account/ChangePassword', {\n currentPassword: passwdChange.currentPassword,\n newPassword: passwdChange.newPassword,\n confirmPassword: passwdChange.newPasswordRepeat,\n });\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n return true;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n\n public async getSteps() : Promise {\n const response : AxiosResponse> \n = await AuthorizedApiClient.get('/Account/UserSteps')\n const appResponse: AppResponse = response.data;\n if(appResponse.IsSuccess)\n {\n return appResponse.Result;\n }\n else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n}\n\ndeclare global {\n var tidioChatApi: any;\n}\n","export enum Languages {\n PL = 'pl',\n EN = 'en',\n}\n","module.exports = __webpack_public_path__ + \"img/zapier.013c8642.png\";","import { Languages } from '@/modules/core/enums/languages';\nimport { IntegrationDefinition } from './integrationDefinition';\n\nexport class ProfileModel {\n public email: string;\n public name: string;\n public accountName: string;\n public language: Languages;\n public integrations: IntegrationDefinition[];\n public hasShopifyIntegration: boolean = false;\n public hadShopifyIntegration: boolean = false;\n public defaultPhoneNumberPrefix: string;\n public phoneNumber: string;\n public marketingConsent: boolean;\n public newsletterConsent: boolean;\n public constructor(data?: ProfileModel) {\n this.email = (data && data.email) ? data.email : '';\n this.name = (data && data.name) ? data.name : '';\n this.accountName = (data && data.accountName) ? data.accountName : '';\n this.language = (data && data.language) ? data.language : Languages.EN;\n this.integrations = (data && data.integrations) ? data.integrations : [];\n this.hadShopifyIntegration = (data && data.hadShopifyIntegration) ? data.hadShopifyIntegration : false;\n this.hasShopifyIntegration = this.integrations.some((i) => i.type === 'shopify');\n this.defaultPhoneNumberPrefix = (data && data.defaultPhoneNumberPrefix) ? data.defaultPhoneNumberPrefix : '+48';\n this.phoneNumber = (data && data.phoneNumber) ? data.phoneNumber : '+48';\n this.marketingConsent = (data && data.marketingConsent) ? data.marketingConsent : false;\n this.newsletterConsent = (data && data.newsletterConsent) ? data.newsletterConsent : false;\n }\n}\n","module.exports = __webpack_public_path__ + \"img/use-app.0bafd8d2.png\";","module.exports = __webpack_public_path__ + \"img/baselinker.dbab0f3a.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\"}]},[(_vm.hasAccountIntegrations === false)?_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('searchContact.chooseIntegration')))])]),_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)])])]):_vm._e(),_c('el-card',[_c('div',{staticClass:\"main\"},[_c('div',{staticClass:\"contact-search\"},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('span',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('searchContact.title')))])]),_c('phone-input',{staticClass:\"phoneNumber-search\",attrs:{\"code-value\":_vm.phoneModel.code,\"phone-value\":_vm.phoneModel.phone},on:{\"change\":_vm.updatePhoneNumber}}),_c('el-button',{staticClass:\"search-button\",attrs:{\"size\":\"medium\",\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('searchContact.search'))+\"\\n \")]),_c('div',{staticClass:\"table-wrapper\"},[_c('el-table',{ref:\"dataTable\",staticStyle:{\"width\":\"100%\",\"min-width\":\"444px\"},attrs:{\"data\":_vm.records,\"stripe\":\"\",\"border\":\"\"}},[_c('el-table-column',{key:\"displayName\",attrs:{\"prop\":\"displayName\",\"label\":_vm.$t('searchContact.propertyName')}}),_c('el-table-column',{key:\"value\",attrs:{\"prop\":\"value\",\"label\":_vm.$t('searchContact.value')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tooltip',{attrs:{\"placement\":\"top\"}},[_c('div',{attrs:{\"slot\":\"content\"},slot:\"content\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('searchContact.dateCreated') + ': ' + scope.row.created)),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.$t('searchContact.dateModified') + ': ' + scope.row.modified)+\"\\n \")]),(scope.row.type != 'link')?_c('span',[_vm._v(_vm._s(scope.row.value))]):_vm._e(),(scope.row.type == 'link')?_c('a',{staticClass:\"el-button\",attrs:{\"href\":scope.row.value,\"target\":\"_blank\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('searchContact.open'))+\"\\n \")]):_vm._e()])]}}])}),_c('el-table-column',{key:\"origin\",attrs:{\"prop\":\"origin\",\"label\":_vm.$t('searchContact.source')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tooltip',{attrs:{\"content\":_vm.$t('properties.propertyOrigin'),\"placement\":\"bottom\",\"open-delay\":500}},[_c('el-tag',{attrs:{\"size\":\"mini\",\"type\":_vm.getOriginType(scope.row.origin)}},[_vm._v(_vm._s(scope.row.origin ? scope.row.origin : _vm.$t('properties.origin.custom')))])],1)]}}])})],1)],1)],1),_c('div',{staticClass:\"or\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('searchContact.or'))+\"\\n \")])]),_c('div',{staticClass:\"app-download-link\"},[_c('a',{attrs:{\"href\":'https://play.google.com/store/apps/details?id=com.labelcall&hl=' + _vm.language,\"target\":\"blank\"}},[_c('img',{attrs:{\"src\":require(\"assets/portal/use-app.png\")}})]),_c('a',{attrs:{\"href\":'https://chrome.google.com/webstore/detail/labelcall/ppdieijdkeanilddpijdafbaeldbcodh?hl=' + _vm.language,\"target\":\"blank\"}},[_c('img',{attrs:{\"src\":require(\"assets/portal/use-plugin.png\")}})])])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import store from '@/store/index';\nimport {ApiKeyVm} from 'modules/api-keys/classes/apiKeyVm';\nimport {AxiosResponse} from 'axios';\nimport {AppResponse} from 'modules/core/interfaces/appResponse';\nimport AuthorizedApiClient from 'modules/auth/models/authorizedApiClient';\n\nexport class SearchContactApi {\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 search(phoneNumber: string): Promise {\n const response: AxiosResponse<\n AppResponse\n > = await AuthorizedApiClient.post('/Contact/GetContact', {\n MasterAccountId: this.MasterAccountId,\n PhoneNumber: phoneNumber,\n });\n const appResponse: AppResponse = response.data;\n if (appResponse.IsSuccess) {\n const contact: any = appResponse.Result ? appResponse.Result : [];\n return contact;\n } else {\n throw new Error(appResponse.ErrorCodes.join(','));\n }\n }\n}\n","export class RecordVm {\n public propertyId: string;\n public displayName: string;\n public value: string;\n public origin: string;\n public type: string;\n public created: string;\n public modified: string;\n\n public constructor(data?: any) {\n this.propertyId = (data && data.propertyId) ? data.propertyId : null;\n this.displayName = (data && data.displayName) ? data.displayName : null;\n this.value = (data && data.value) ? data.value : null;\n this.origin = (data && data.origin) ? data.origin : null;\n this.type = (data && data.type) ? data.type : null;\n this.created = (data && data.created) ? data.created : null;\n this.modified = (data && data.modified) ? data.modified : null;\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 { PropertiesApi } from 'modules/properties/api/properties';\nimport { ContactProperty } from 'modules/installation-wizard/classes/contactProperty';\nimport { SearchContactApi} from 'modules/search-contact/api/search-contact';\nimport { RecordVm } from 'modules/search-contact/classes/contactVm';\nimport PhoneInput from 'modules/core/components/forms/PhoneInput.vue';\nimport { ProfileModel } from 'modules/profile/classes/profile';\nimport { ProfileApi } from 'modules/profile/api/profile';\nimport { IntegrationApi } from '@/modules/integrations/api/integrations';\nimport { IntegrationDefinitionVm } from '@/modules/integrations/classes/integrationDefinitionVm';\nimport moment from 'moment';\nimport { ElButton } from 'element-ui/types/button';\nimport { ElCard } from 'element-ui/types/card';\nimport { ElTable } from 'element-ui/types/table';\nimport { ElTableColumn } from 'element-ui/types/table-column';\nimport { ElTag } from 'element-ui/types/tag';\nimport { ElTooltip } from 'element-ui/types/tooltip';\n\n@Component({\n components: {\n PhoneInput,\n },\n})\nexport default class SearchCotacts extends Vue {\n public loading: boolean = false;\n public records: RecordVm[] = [];\n public phoneNumber: string = '';\n public phoneModel: any = {\n phone: '',\n code: undefined,\n };\n public integrations: IntegrationDefinitionVm[] = [];\n public hasAccountIntegrations: boolean = true;\n public language: string = 'en';\n\n public profileApi: ProfileApi;\n private propertiesApi: PropertiesApi;\n private searchContactApi: SearchContactApi;\n private integrationApi: IntegrationApi;\n\n constructor() {\n super();\n this.propertiesApi = new PropertiesApi();\n this.searchContactApi = new SearchContactApi();\n this.profileApi = new ProfileApi();\n this.integrationApi = new IntegrationApi();\n }\n\n public async created() {\n const profile = await this.profileApi.getProfile();\n this.phoneModel.code = profile.defaultPhoneNumberPrefix;\n this.language = profile.language;\n\n this.integrations = await this.integrationApi.getIntegrationsDefinitions();\n const userIntegration = await this.integrationApi.list();\n this.hasAccountIntegrations = userIntegration.length > 0;\n }\n\n public async search() {\n await this.loadRecord(this.phoneNumber);\n }\n\n public async loadRecord(phoneNumber: string) {\n try {\n this.loading = true;\n\n const properties = await this.propertiesApi.getProps();\n const record = await this.searchContactApi.search(phoneNumber);\n\n if (record && properties && properties.length > 0) {\n const records: RecordVm[] = [];\n\n properties.forEach((elem: ContactProperty) => {\n if (elem.isActive === false) {\n return;\n }\n const item = new RecordVm(elem);\n\n const propertyValue = record.properties.filter((p: any) => p.propertyId === elem.propertyId)[0];\n\n if (propertyValue && propertyValue.value) {\n item.value = propertyValue.value;\n item.type = propertyValue.type;\n item.created = moment(propertyValue.created).format('YYYY-MM-DD hh:mm'),\n item.modified = moment(propertyValue.modified).format('YYYY-MM-DD hh:mm'),\n records.push(item);\n }\n });\n\n this.records = records ? records : [];\n }\n } finally {\n this.loading = false;\n }\n }\n\n public getOriginType(origin: string|null) {\n const originMapper: any = {\n custom: null,\n pipedrive: 'warning',\n shoper: 'success',\n shopify: 'danger',\n };\n\n if (origin) {\n return originMapper[origin];\n } else {\n return originMapper.custom;\n }\n }\n\n public updatePhoneNumber(val: any) {\n this.phoneNumber = val.code + val.phone;\n this.phoneModel = val;\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!./SearchContacts.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!./SearchContacts.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SearchContacts.vue?vue&type=template&id=2c04ea02\"\nimport script from \"./SearchContacts.vue?vue&type=script&lang=ts\"\nexport * from \"./SearchContacts.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SearchContacts.vue?vue&type=style&index=0&id=2c04ea02&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","module.exports = __webpack_public_path__ + \"img/woocommerce.404c87bc.png\";","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!./SearchContacts.vue?vue&type=style&index=0&id=2c04ea02&prod&lang=scss\"","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":""}