PageSourceSearch

https://app.glasshive.com/assets/autotask-activities-import-view-DeIKHbnk.js

js glasshive.com collected 2026-09-29 11:21:43 UTC 5,217 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","assets/l6-back-svg-CAi75bIJ.css"])))=>i.map(i=>d[i]);
2import{_ as s}from"./vite-preload-helper-D3tSqqZC.js";import{_ as o}from"./autotask-to-glasshive-DEgx-02q.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]="eba7db03-caa4-4f3c-99d1-5978a8358d76",e._sentryDebugIdIdentifier="sentry-dbid-eba7db03-caa4-4f3c-99d1-5978a8358d76")}catch{}})();const n=()=>s(()=>import("./app-shared-components-B1XGZkSg.js").then(e=>e.au),__vite__mapDeps([0,1,2])),c=()=>s(()=>import("./app-shared-components-B1XGZkSg.js").then(e=>e.a0),__vite__mapDeps([0,1,2])),d=()=>s(()=>import("./l6-back-svg-BcVe6H_V.js"),__vite__mapDeps([3])),p=()=>s(()=>import("./app-shared-components-B1XGZkSg.js").then(e=>e.ab),__vite__mapDeps([0,1,2])),l={components:{"app-button-link":n,"l6-back-svg":d,"loading-screen-svg":p,"app-button":c},data(){return{loading:!0,importingActivities:!1,integrationId:null,activityTypeMappings:[]}},computed:{clientId(){return this.$store.state.context.client.id},routeBaseUrl(){return this.$store.getters.routeBaseUrl},importMappings(){return this.activityTypeMappings?this.activityTypeMappings.filter(e=>e.direction.toUpperCase()=="DOWN"):null}},created(){this.getData()},methods:{getData(){this.getIntegrationId().then(this.getActivityTypesMappings).catch(e=>{this.$helpers.showFailNotification(e)}).finally(()=>{this.loading=!1})},getIntegrationId(){return new Promise((e,t)=>{this.$api.get(`/ms/autotask-api/v1/credentials/${this.clientId}`).then(i=>{const a=i.data.data;this.integrationId=a.Id,e()}).catch(()=>{t("An error occured while fetching your integration data.")})})},getActivityTypesMappings(){return new Promise((e,t)=>{this.$api.get(`/ms/autotask-api/v1/activitytypemappings/${this.clientId}`).then(i=>{this.createActivityTypeMappings(i.data),e()}).catch(()=>{t("An error occured while downloading activity types mappings.")})})},createActivityTypeMappings(e){this.activityTypeMappings=e.map(t=>({id:t.Id,activityType:t.ActivityType?t.ActivityType.Name:"No Type",direction:t.Type==="Export"?"Up":"Down",thirdPartyActivityType:t.ThirdPartyType?t.ThirdPartyType.Name:"No Type"}))},importActivities(){this.importingActivities=!0;var e={Entity:"activity",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/autotask-api/v1/operations/${this.clientId}`,e).then(()=>{this.$helpers.showSuccessNotification("Your Autotask activities are being imported. You will receive an email when the import is complete.")}).catch(t=>{this.$helpers.showFailNotification("An error occurred while importing your Autotask activities.",{error:t})}).finally(()=>{this.importingActivities=!1})}}};var v=function(){var t=this,i=t._self._c;return i("div",{staticClass:"autotask-activities-import-view"},[i("div",{staticClass:"h-container"},[i("div",{staticClass:"h-row h-mb-4"},[i("div",{staticClass:"h-col"},[i("div",{staticClass:"actions"},[i("app-button-link",{attrs:{href:t.routeBaseUrl+"/Integrations/Autotask/Manage",tag:"button"}},[i("l6-back-svg"),t._v(" Return to Autotask Manage ")],1),i("app-button-link",{attrs:{href:t.routeBaseUrl+"/Integrations/Autotask/Manage/Activities/Mappings"}},[t._v(" Go To Activity Mappings ")])],1)])]),i("div",{staticClass:"h-row"},[i("div",{staticClass:"h-col"},[i("div",{staticClass:"card"},[i("div",{staticClass:"bordered-container"},[t._m(0),i("div",{staticClass:"bordered-container-content"},[i("img",{staticClass:"autotask-img",attrs:{src:o,alt:"Autotask To GlassHive"}}),i("p",[t._v(" You've selected the following data to be imported into your GlassHive account. ")]),i("p",[t._v(" Any Autotask activities with mappings below will be imported into your GlassHive platform under that activity type. ")]),i("div",{staticClass:"selected-activity-types"},[i("p",{staticClass:"selected-heading"},[t._v(" Activities to be imported into GlassHive: ")]),t.loading?i("div",{staticClass:"loading-roles"}
2,[i("loading-screen-svg")],1):t.importMappings.length===0?i("div",[i("p",[t._v("No Autotask to GlassHive Mappings")])]):i("div",{staticClass:"activity-types"},t._l(t.importMappings,function(a){return i("div",{key:a.id},[i("p",[t._v(" "+t._s(a.thirdPartyActivityType)+" to "+t._s(a.activityType)+" ")])])}),0)])]),i("div",{staticClass:"bordered-container-actions"},[i("div",{staticClass:"button-container"},[i("app-button",{attrs:{loading:t.importingActivities},on:{click:t.importActivities}},[t._v(" "+t._s(t.importingActivities?"Importing":"Import")+" ")])],1)])])])])])])])},u=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"bordered-container-title"},[t("h2",[e._v("Import Activities from Autotask")])])}],h=r(l,v,u,!1,null,null);const f=h.exports;export{f 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.