PageSourceSearch

https://app.glasshive.com/assets/halopsa-opportunities-import-view-BlWfbewJ.js

js glasshive.com collected 2026-09-29 11:21:20 UTC 5,240 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-PifewLW3.css","assets/ui-vendor-B-kHA1jU.css","assets/app-shared-components-Dq4d84mH.css"])))=>i.map(i=>d[i]);
2import{_ as o}from"./vite-preload-helper-D3tSqqZC.js";import{_ as a}from"./halopsa-in-glasshive-D4fx6gFX.js";import{A as r}from"./vue-vendor-D2uZR6iP.js";import"./legacy-vendor-B2-6Z0ry.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"22139a6a3f3157273dab84737000bf4ba7278475"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac3710c6-b6ee-4a10-9a04-20087babe21d",e._sentryDebugIdIdentifier="sentry-dbid-ac3710c6-b6ee-4a10-9a04-20087babe21d")}catch{}})();const n=()=>o(()=>import("./app-shared-components-B1XGZkSg.js").then(e=>e.a0),__vite__mapDeps([0,1,2])),p=()=>o(()=>import("./app-shared-components-B1XGZkSg.js").then(e=>e.ab),__vite__mapDeps([0,1,2])),l={components:{"app-button":n,"loading-screen-svg":p},data(){return{honeyOpportunityTypes:null,connectWiseOpportunityTypes:null,opportunityTypeMappings:null,isDownloadingOpportunityTypes:!0,isImportingOpportunities:!1,integrationId:null}},computed:{clientId(){return this.$store.state.context.client.id},routeBaseUrl(){return this.$store.getters.routeBaseUrl},importMappings(){return this.opportunityTypeMappings?this.opportunityTypeMappings.filter(e=>e.direction.toUpperCase()=="DOWN"):[]}},created(){this.getData()},methods:{getData(){this.getIntegrationId().then(this.getOpportunityTypeMappings).catch(e=>{this.isDownloadingOpportunityTypes=!1,this.$helpers.showFailNotification(e,{error:e})}).finally(()=>{this.isDownloadingOpportunityTypes=!1})},getIntegrationId(){return new Promise((e,t)=>{this.$api.get(`/ms/halo-api/v1/credentials/${this.clientId}`).then(i=>
2(this.integrationId=i.data.Id,e())).catch(i=>{t("An error occurred while fetching your integration information.")})})},getOpportunityTypeMappings(){return new Promise((e,t)=>{this.$api.get(`/ms/halo-api/v1/dealstatusmappings/${this.clientId}`).then(i=>{this.createOpportunityTypeMappings(i.data),e()}).catch(i=>{t("An error occurred while downloading opportunity type mappings.")})})},createOpportunityTypeMappings(e){this.opportunityTypeMappings=e.map(t=>({id:t.Id,dealStatus:t.DealStatus?t.DealStatus.Name:"No Type",direction:t.Type==="Export"?"Up":"Down",thirdPartyDealStatus:t.ThirdPartyType?t.ThirdPartyType.Name:"No Type"}))},importOpportunities(){this.isImportingOpportunities=!0;var e={Entity:"deal",UpdatedAfter:"1980-01-01T12:00:00Z",IsScheduled:!1,IsRepetitive:!1,IsUpsert:!0,Type:"import",GlasshiveClientId:this.clientId,IsManual:!0,Mode:"entity"};this.$api.post(`/ms/halo-api/v1/operations/${this.clientId}`,e).then(t=>{this.isImportingOpportunities=!1,this.$helpers.showSuccessNotification("Your Halo PSA opportunities are being imported. You will receive an email when the import is complete.")}).catch(t=>{this.isImportingOpportunities=!1,this.$helpers.showFailNotification("An error occurred while importing your Halo PSA opportunities.",{error:t})})}}};var d=function(){var t=this,i=t._self._c;return i("div",{staticClass:"row halopsa-import-opportunities"},[i("div",{staticClass:"col-md-12"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-12 halopsa-navigation"},[i("div",{staticClass:"go-to"},[i("router-link",{attrs:{to:`${t.routeBaseUrl}/Integrations/HaloPSA/Manage`,tag:"button"}},[t._v(" Return to Halo PSA Manage ")])],1),i("div",{staticClass:"go-to"},[i("router-link",{attrs:{to:`${t.routeBaseUrl}/Integrations/HaloPSA/Manage/Opportunities/Mappings`,tag:"button"}},[t._v(" Go to Opportunity Type Mappings ")])],1)])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-12 module import-opportunities"},[i("div",{staticClass:"content-wrapper"},[i("h2",[t._v("Import Opportunities from Halo PSA")]),i("img",{attrs:{src:a,alt:"Halo PSA To GlassHive"}}),i("div",{staticClass:"content"},[t._m(0),i("div",{staticClass:"halopsa-opportunity-types"},[i("p",{staticClass:"selected-heading"},[t._v("Halo PSA opportunities to import:")]),t.isDownloadingOpportunityTypes?i("div",[i("loading-screen-svg")],1):t.importMappings.length===0?i("div",[i("p",[t._v("No Halo PSA to GlassHive Mappings")])]):i("div",{staticClass:"opportunity-types"},t._l(t.importMappings,function(s){return i("div",{key:s.id},[i("p",[t._v(" "+t._s(s.thirdPartyDealStatus)+" to "+t._s(s.dealStatus)+" ")])])}),0)])]),i("div",{staticClass:"invite-btn-container"},[i("app-button",{attrs:{onClick:t.importOpportunities,loading:t.isDownloadingOpportunityTypes||t.isImportingOpportunities,disabled:t.isDownloadingOpportunityTypes||t.isImportingOpportunities}},[t._v(" "+t._s(t.isDownloadingOpportunityTypes||t.isImportingOpportunities?"Loading":"Import")+" ")])],1)])])])])])},u=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"selected-main-text"},[t("p",[e._v(" You've selected the following data to be imported into your GlassHive account. ")]),t("p",[e._v(" Any Halo PSA opportunities with the mappings below will be imported into your GlassHive platform under that opportuinty type. ")])])}],c=r(l,d,u,!1,null,"22379bc0");const _=c.exports;export{_ as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.