PageSourceSearch

https://app.glasshive.com/assets/syncro-connect-view-DJNv6PuA.js

js glasshive.com collected 2026-09-29 11:21:52 UTC 8,680 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/large-circle-checkmark-ajdB8Zws.css","assets/large-circle-x-BC2XwaSK.css"])))=>i.map(i=>d[i]);
2import{_ as i}from"./vite-preload-helper-D3tSqqZC.js";import{g as a}from"./ui-vendor-1abOEsDp.js";import{A as o}from"./vue-vendor-D2uZR6iP.js";import"./legacy-vendor-B2-6Z0ry.js";import"./vendor-BUFu9pr8.js";import"./utility-vendor-BTpr5n3p.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"22139a6a3f3157273dab84737000bf4ba7278475"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="374b7ffe-9c53-4586-9064-b0244b0e0a92",s._sentryDebugIdIdentifier="sentry-dbid-374b7ffe-9c53-4586-9064-b0244b0e0a92")}catch{}})();const c="/assets/syncro-login-DgJ2nhTS.png",r="/assets/syncro-to-admin-CLHL34Ah.png",l="/assets/syncro-to-api-B4GHzNqa.png",d="/assets/syncro-click-create-CXdpBgyh.png",_="/assets/syncro-create-token-CcJQVNEa.png",u="/assets/syncro-token-permissions-CfaL0TnZ.png",v="/assets/syncro-token-permissions2-DqfVXOsP.png",h="/assets/syncro-token-created-CrJXT7RR.png",m=()=>i(()=>import("./app-shared-components-B1XGZkSg.js").then(s=>s.a0),__vite__mapDeps([0,1,2])),p=()=>i(()=>import("./app-shared-components-B1XGZkSg.js").then(s=>s.au),__vite__mapDeps([0,1,2])),f=()=>i(()=>import("./app-shared-components-B1XGZkSg.js").then(s=>s.a2),__vite__mapDeps([0,1,2])),C=()=>i(()=>import("./large-circle-checkmark-BQak0dsx.js"),__vite__mapDeps([3])),g=()=>i(()=>import("./large-circle-x-n70Q7bNm.js"),__vite__mapDeps([4])),y={components:{"app-button":m,"app-button-link":p,"app-input":f,"large-circle-checkmark":C,"large-circle-x":g},data(){return{connectionId:null,isConnecting:!1,form:{subdomainName:"",apiKey:""},isConnectionSuccessful:null,hasCheckedConnection:!1}},validations(){return{form:{subdomainName:{required:a.required},apiKey:{required:a.required}}}},computed:{clientId(){return this.$store.state.context.client.id},routeBaseUrl(){return this.$store.getters.routeBaseUrl}},created(){this.getIntegration()},methods:{getIsValidField(s){return!(this.$v.form[s].$invalid&&this.$v.form[s].$dirty)},getIntegration(){this.$api.get(`/ms/syncro-api/v1/credentials/${this.clientId}`).then(s=>{s.data&&(this.form.subdomainName=s.data.SubDomain,this.form.apiKey=s.data.APIKey,this.connectionId=s.data.Id)}).catch(s=>{s.response.status!==404&&this.$helpers.showFailNotification("An error occurred while fetching your integration data.",{error:s})})},connect(){if(this.$v.form.$touch(),this.$v.form.$invalid)return;this.isConnecting=!0;const s={APIKey:this.form.apiKey,SubDomain:this.form.subdomainName,IsDownloadActive:!0,IsUploadActive:!0,GlasshiveClientId:this.clientId};this.connectionId?this.$api.put(`/ms/syncro-api/v1/credentials/${this.clientId}`,s).then(()=>{this.testConnection()}).catch(t=>{this.isConnecting=!1,this.$helpers.showFailNotification("There was a server error while testing your Syncro integration. Please ensure all fields contain correct information and permissions are set properly.",{error:t})}):this.$api.post(`/ms/syncro-api/v1/credentials/${this.clientId}`,s).then(t=>{this.connectionId=t.Id,this.testConnection()}).catch(t=>{this.isConnecting=!1,this.$helpers.showFailNotification("There was a server error while testing your Syncro integration. Please ensure all fields contain correct information.",{error:t})})},testConnection(){this.hasCheckedConnection=!0,this.$api.post(`/ms/syncro-api/v1/credentials/${this.clientId}/test`).then(()=>{this.isConnectionSuccessful=!0,this.isConnecting=!1}).catch(s=>{this.isConnecting=!1,this.isConnectionSuccessful=!1,this.$helpers.showFailNotification("An error occurred while authenticating your account. Ensure the credentials are correct and have the proper permissions.",{error:s})})}}};var b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row syncro-connect"},[e("div",{staticClass:"col-md-12"},[t._m(0),t._m(1),t._m(2),t._m(3),e("div",{staticClass:"row flex-row"},[e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"card"},[t._m(4),e("div",{staticClass:"content"},[e("app-input",{attrs:{label:"Subdomain Name","is-valid":t.getIsValidField("subdomainName")},model:{value:t.form.subdomainName,callback:function(n){t.$set(t.form,"subdomainName",n)},expression:"form.subdomainName"}}),e("app-input",{attrs:{type:"password",label:"API Key","is-valid":t.getIsValidField("apiKey")},model:{value:t.form.apiKey,callback:function(n){t.$set(t.form,"apiKey",n)},expression:"form.apiKey"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.$v.form.$invali
2d&&t.$v.form.$dirty,expression:"$v.form.$invalid && $v.form.$dirty"}],staticClass:"red-accent"},[t._v(" *Please fill out all of the fields. ")]),e("div",{staticClass:"button-container"},[e("app-button",{attrs:{disabled:t.isConnecting||t.isConnectionSuccessful,loading:t.isConnecting,"on-click":t.connect}},[!t.isConnectionSuccessful&&t.hasCheckedConnection?e("span",[t._v("Retry")]):t.isConnectionSuccessful?e("span",[t._v("Success")]):t.isConnecting?e("span",[t._v("Connecting")]):e("span",[t._v("Connect")])])],1)],1)])]),e("div",{staticClass:"col-md-6"},[t.hasCheckedConnection?e("div",{staticClass:"card status-card",style:{background:t.isConnectionSuccessful?"#2ADA2B":"#F30070"}},[e("div",{staticClass:"content"},[t.isConnectionSuccessful?e("div",{staticClass:"success status"},[e("h3",[t._v("Syncro Connection Successful")]),e("large-circle-checkmark"),e("app-button-link",{staticClass:"manage-page-btn",attrs:{href:`${t.routeBaseUrl}/Integrations/Syncro/Manage`}},[t._v(" Return to Syncro Manage ")])],1):t.isConnectionSuccessful==!1?e("div",{staticClass:"fail status"},[e("h3",[t._v("Syncro Connection Failed")]),e("p",[t._v("Check the Syncro information you entered and press retry.")]),e("large-circle-x")],1):t._e()])]):t._e()])])])])},k=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12"},[t("h2",[s._v("Syncro Connection")])])])},function(){var s=this,t=s._self._c;return t("div",{staticClass:"row flex-row"},[t("div",{staticClass:"col-md-6"},[t("div",{staticClass:"card"},[t("div",{staticClass:"header"},[t("h3",[s._v("Login To Your Syncro Account")])]),t("div",{staticClass:"content"},[t("div",{staticClass:"image-container"},[t("img",{attrs:{alt:"Sycnro portal login",src:c}})])])])]),t("div",{staticClass:"col-md-6"},[t("div",{staticClass:"card"},[t("div",{staticClass:"header"},[t("h3",[s._v("Go to More -> Admin")])]),t("div",{staticClass:"content"},[t("div",{staticClass:"image-container"},[t("img",{attrs:{alt:"Syncro More Options",src:r}})])])])])])},function(){var s=this,t=s._self._c;return t("div",{staticClass:"row flex-row"},[t("div",{staticClass:"col-md-6"},[t("div",{staticClass:"card"},[t("div",{staticClass:"header"},[t("h3",[s._v("Then Go to Api Tokens Section")])]),t("div",{staticClass:"content"},[t("div",{staticClass:"image-container"},[t("img",{attrs:{alt:"Sycnro Api Tokens",src:l}})])])])]),t("div",{staticClass:"col-md-6"},[t("div",{staticClass:"card"},[t("div",{staticClass:"header"},[t("h3",[s._v("Click +New Token")])]),t("div",{staticClass:"content"},[t("div",{staticClass:"image-container"},[t("img",{attrs:{alt:"Sycnro Click New Token",src:d}})])])])])])},function(){var s=this,t=s._self._c;return t("div",{staticClass:"row flex-row"},[t("div",{staticClass:"col-md-6"},[t("div",{staticClass:"card"},[t("div",{staticClass:"header"},[t("h3",[s._v("Create New Token")])]),t("div",{staticClass:"content"},[t("p",{staticClass:"red-accent"},[s._v(" Make sure you have checked these required permissions related to companies, contacts and estimates."),t("br")]),t("div",{staticClass:"image-container permissions-imgs"},[t("img",{attrs:{alt:"Sycnro Api Tokens",src:_}}),t("img",{attrs:{alt:"Sycnro Api Tokens",src:u}}),t("img",{attrs:{alt:"Sycnro Api Tokens",src:v}})])])])]),t("div",{staticClass:"col-md-6"},[t("div",{staticClass:"card"},[t("div",{staticClass:"header"}
2,[t("h3",[s._v("Copy the Token and Store it")])]),t("div",{staticClass:"content"},[t("p",{staticClass:"red-accent"},[s._v(" Make sure you copy the token created and then store it."),t("br"),s._v(" The API Token will no longer be visible once you close this view. ")]),t("div",{staticClass:"image-container"},[t("img",{attrs:{alt:"Sycnro Api Tokens",src:h}})])])])])])},function(){var s=this,t=s._self._c;return t("div",{staticClass:"header"},[t("h3",[s._v("Syncro Information")])])}],$=o(y,b,k,!1,null,"b4b8d5b3");const E=$.exports;export{E 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.