":"clozada@arochilindner.com"} [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:44) - Tokens generados: 1000.e2f099cc40deb18a3cac8e81125094df.1461b65b97e100aa0cf2f78fe2debecb [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:45) - Intento 0 el registro no contiene foto asociada [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:45) - ERROR al obtener imagen, intento: 1 , respuesta: null [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:47) - Intento 1 el registro no contiene foto asociada [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:47) - ERROR al obtener imagen, intento: 2 , respuesta: null [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:49) - Intento 2 el registro no contiene foto asociada [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:49) - ERROR al obtener imagen, intento: 3 , respuesta: null [242c6888-7b41-4c76-b954-cb47b5c6a24f](2024-02-21 12:19:51) - No se pudo encontrar una imagen asociada a registro de CRM \n [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:27) - Proceso de subida de imagen iniciado, data: {"source":"webhook","RefAL":"MAR-120977","MarcaId":"4597192000158438656","user":"igrimaldo@arochilindner.com"} [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:34) - Tokens generados: 1000.20e3ea4077a38c4b5061da5abb1a6d9e.28dd570bea878de2de490463336d9370 [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:35) - Intento 0 el registro no contiene foto asociada [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:35) - ERROR al obtener imagen, intento: 1 , respuesta: null [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:37) - Intento 1 el registro no contiene foto asociada [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:37) - ERROR al obtener imagen, intento: 2 , respuesta: null [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:39) - Intento 2 el registro no contiene foto asociada [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:39) - ERROR al obtener imagen, intento: 3 , respuesta: null [f1238361-8df1-4266-b0b0-094411770f34](2024-02-21 17:14:41) - No se pudo encontrar una imagen asociada a registro de CRM \n [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:21) - Proceso de subida de imagen iniciado, data: {"source":"webhook","RefAL":"MAR-120978","MarcaId":"4597192000158438715","user":"igrimaldo@arochilindner.com"} [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:28) - Tokens generados: 1000.20e3ea4077a38c4b5061da5abb1a6d9e.28dd570bea878de2de490463336d9370 [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:28) - Intento 0 el registro no contiene foto asociada [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:28) - ERROR al obtener imagen, intento: 1 , respuesta: null [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:30) - Intento 1 el registro no contiene foto asociada [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:30) - ERROR al obtener imagen, intento: 2 , respuesta: null [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:33) - Intento 2 el registro no contiene foto asociada [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:33) - ERROR al obtener imagen, intento: 3 , respuesta: null [07ca79ab-0875-441f-9fde-1162e6ffe951](2024-02-21 17:15:35) - No se pudo encontrar una imagen asociada a registro de CRM \n [03384394-7462-4c0f-b461-168b589c1bd1](2024-02-21 17:16:00) - Proceso de subida de imagen iniciado, data: {"source":"webhook","RefAL":"MAR-120979","MarcaId":"4597192000158438774","user":"igrimaldo@arochilindner.com"} [03384394-7462-4c0f-b461-168b589c1bd1](2024-02-21 17:16:07) - Tokens generados: 1000.20e3ea4077a38c4b5061da5abb1a6d9e.28dd570bea878de2de490463336d9370 [03384394-7462-4c0f-b461-168b589c1bd1](2024-02-21 17:16:07) - Intento 0 el registro no contiene foto asociada [03384394-7462-4c0f-b461-168b589c1bd1](2024-02-21 17:16:07) - ERROR al obtener imagen, intento: 1 , respuesta: null [03384394-7462-4c0f-b461-168b589c1bd1](2024-02-21 17:16:09) - Intento 1 el registro no contiene foto asociada [03384394-7462-4c0f-b461-168b589c1bd1](2024-02-21 17:16:09) - ERROR r(void 0,t,`Unsupported cloud integration type: ${e}`),!1;let o=await this.connection.fetchGkDevApi(`v1/provider-tokens/${i}`,{method:"DELETE"},{organizationId:!1});if(!o.ok){let i=(await o.json())?.error,s="string"==typeof i?i:i?.message??o.statusText;return null!=i&&r.Vy.error(void 0,t,`Failed to disconnect ${e} token from cloud: ${s}`),this.container.telemetry.enabled&&this.container.telemetry.sendEvent("cloudIntegrations/disconnect/failed",{code:o.status,"integration.id":e}),!1}return!0}}},2124:(e,t,i)=>{i.r(t),i.d(t,{GitHubAuthenticationProvider:()=>GitHubAuthenticationProvider,GitHubEnterpriseAuthenticationProvider:()=>GitHubEnterpriseAuthenticationProvider});var r=i(940),s=i(1398),n=i(3273),o=i(6493);let GitHubAuthenticationProvider=class GitHubAuthenticationProvider extends o.DP{constructor(e){super(e),this.disposables.push(s.authentication.onDidChangeSessions(e=>{e.provider.id===this.authProviderId&&this.fireDidChange()}))}get authProviderId(){return n.Q7.GitHub}async getBuiltInExistingSession(e,t){if(null!=e)return(0,r.Ff)(this.container.integrations.ignoreSSLErrors({id:this.authProviderId,domain:e?.domain}),async()=>{let i=await s.authentication.getSession(this.authProviderId,e.scopes,{forceNewSession:!!t||void 0,silent:!t||void 0});if(null!=i)return{...i,cloud:!1}})}async getSession(e,t){let i=await this.getBuiltInExistingSession(e);return(null!=i&&t?.forceNewSession&&(i=await this.getBuiltInExistingSession(e,!0)),null!=i)?i:super.getSession(e,t)}getCompletionInputTitle(){return"Connect to GitHub"}};let GitHubEnterpriseAuthenticationProvider=class GitHubEnterpriseAuthenticationProvider extends o.RH{get authProviderId(){return n.PY.GitHubEnterprise}async createSession(e){let t;let i=s.window.createInputBox();i.ignoreFocusOut=!0;let r=[];try{let n={iconPath:new s.ThemeIcon("link-external"),tooltip:"Open the GitHub Access Tokens Page"};t=await new Promise(t=>{r.push(i.onDidHide(()=>t(void 0)),i.onDidChangeValue(()=>i.validationMessage=void 0),i.onDidAccept(()=>{let e=i.value.trim();if(!e){i.validationMessage="A personal access token is required";return}t(e)}),i.onDidTriggerButton(t=>{t===n&&s.env.openExternal(s.Uri.parse(`https://${e?.domain??"github.com"}/settings/tokens`))})),i.password=!0,i.title=`GitHub Authentication${e?.domain?` \u2022 ${e.domain}`:""}`,i.placeholder=`Requires a classic token with ${e?.scopes.join(", ")??"all"} scopes`,i.prompt=`Paste your [GitHub Personal Access Token](https://${e?.domain??"github.com"}/settings/tokens "Get your GitHub Access Token")`,i.buttons=[n],i.show()})}finally{i.dispose(),r.forEach(e=>void e.dispose())}if(t)return{id:this.getSessionId(e),accessToken:t,scopes:e?.scopes??[],account:{id:"",label:""},cloud:!1}}}},7692:(e,t,i)=>{i.r(t),i.d(t,{GitLabCloudAuthenticationProvider:()=>GitLabCloudAuthenticationProvider,GitLabLocalAuthenticationProvider:()=>GitLabLocalAuthenticationProvider});var r=i(1398),s=i(3273),n=i(6493);let GitLabLocalAuthenticationProvider=class GitLabLocalAuthenticationProvider extends n.RH{constructor(e,t){super(e),this.authProviderId=t}async createSession(e){let t;let i=r.window.createInputBox();i.ignoreFocusOut=!0;let s=[];try{let n={iconPath:new r.ThemeIcon("link-external"),tooltip:"Open the GitLab Access Tokens Page"};t=await new Promise(t=>{s.push(i.onDidHide(()=>t(void 0)),i.onDidChangeValue(()=>i.validationMessage=void 0),i.onDidAccept(()=>{let e=i.value.trim();if(!e){i.validationMessage="A personal access token is required";return}t(e)}),i.onDidTriggerButton(t=>{t===n&&r.env.openExternal(r.Uri.parse(`https://${e?.domain??"gitlab.com"}/-/profile/personal_access_tokens`))})),i.password=!0,i.title=`GitLab Authentication${e?.domain?` \u2022 ${e.domain}`:""}`,i.placeholder=`Requires ${e?.scopes.join(", ")??"all"} scopes`,i.prompt=`Paste your [GitLab Personal Access Token](https://${e?.domain??"gitlab.com"}/-/user_settings/personal_access_tokens?name=GitLens+Access+token&scopes=${e?.scopes.join(",")??"all"} "Get your GitLab Access Token")`,i.buttons=[n],i.show()})}finally{i.dispose(),s.forEach(e=>void e.dispose())}if(t)return{id:this.getSessionId(e),accessToken:t,scopes:e?.scopes??[],account:{id:"",label:""},cloud:!1}}};let GitLabCloudAuthenticationProvider=class GitLabCloudAuthenticationProvider extends n.DP{get authProviderId(){return s.Q7.GitLab}getCompletionInputTitle(){return"Connect to GitLab"}}},6493:(e,t,i)=>{i.d(t,{DP:()=>CloudIntegrationAuthenticationProvider,Qv:()=>IntegrationAuthenticationService,RH:()=>LocalIntegrationAuthenticationProvider});var r=i(940),s=i(1398),n=i(3273),o=i(761),a=i(5521),l=i(6541),c=i(5489),h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=(e,t,i,r)=>{for(var s,n=r>1?void 0:r?u(t,i):t,o=e.length-1;o>=0;o--)(s=e[o])&&(n=(r?s(t,i,n):s(n))||n);return r&&n&&h(t,i,n),n};let p=0x40000000-1;let IntegrationAuthenticationProviderBase=class IntegrationAuthenticationProviderBase{constructor(e){this.container=e}disposables=[];dispose(){this.disposables.forEach(e=>void e.dispose())}_onDidChange=new s.EventEmitter;get onDidChange(){return this._onDidChange.event}async deleteSecret(e){await this.container.storage.deleteSecret(e)}async writeSecret(e,t){await this.container.storage.storeSecret(e,JSON.stringify(t))}async readSecret(e){let t;try{let i=await this.container.storage.getSecret(e);i&&(t=JSON.parse(i))}catch(t){try{await this.deleteSecret(e)}catch{}}return t}getSessionId(e){return e?.domain??""}getLocalSecretKey(e){return`gitlens.integration.auth:${this.authProviderId}|${e}`}async deleteSession(e){let t=this.getSessionId(e),i=await this.restoreSession(t);await this.deleteAllSecrets(t),null!=i&&this.fireDidChange()}async getSession(e,t){let i,r;let s=this.getSessionId(e);t?.forceNewSession?await this.deleteAllSecrets(s):i=r=await this.restoreSession(s);let n=i?.expiresAt!=null&&new Date(i.expiresAt).getTime()this._onDidChange.fire())}fireDidChange(){queueMicrotask(()=>this._onDidChange.fire())}};d([(0,a.Yz)()],IntegrationAuthenticationProviderBase.prototype,"deleteSession",1),d([(0,a.Yz)()],IntegrationAuthenticationProviderBase.prototype,"getSession",1);let LocalIntegrationAuthenticationProvider=class LocalIntegrationAuthenticationProvider extends IntegrationAuthenticationProviderBase{async deleteAllSecrets(e){await this.deleteSecret(this.getLocalSecretKey(e))}async storeSession(e,t){await this.writeSecret(this.getLocalSecretKey(e),t)}async restoreSession(e){let t=this.getLocalSecretKey(e);return g(await this.readSecret(t),!1)}async fetchOrCreateSession(e,t,i){return i?.createIfNeeded||i?.forceNewSession?this.createSession(t):e}};let CloudIntegrationAuthenticationProvider=class CloudIntegrationAuthenticationProvider extends IntegrationAuthenticationProviderBase{getCloudSecretKey(e){return`gitlens.integration.auth.cloud:${this.authProviderId}|${e}`}async deleteAllSecrets(e){await Promise.allSettled([this.deleteSecret(this.getLocalSecretKey(e)),this.deleteSecret(this.getCloudSecretKey(e))])}async storeSession(e,t){await this.writeSecret(this.getCloudSecretKey(e),t)}async restoreSession(e){let t=!1,i=await this.readSecret(this.getLocalSecretKey(e));return null!=i&&null!=i.expiresAt&&(t=!0,await Promise.allSettled([this.deleteSecret(this.getLocalSecretKey(e)),this.writeSecret(this.getCloudSecretKey(e),i)])),null==i&&(t=!0,i=await this.readSecret(this.getCloudSecretKey(e))),g(i,t)}async fetchOrCreateSession(e,t,i){var r;if(i?.forceNewSession){if(!await this.disconnectSession())return;this.connectCloudIntegration(!1,i?.source);return}let s=i?.refreshIfExpired||i?.createIfNeeded||i?.forceNewSession||i?.sync?await this.fetchSession(t):void 0;if(r=s,i?.createIfNeeded&&null==r){if(!await this.connectCloudIntegration(!0,i?.source))return;s=await this.getSession(t,{source:i?.source})}return s}async connectCloudIntegration(e,t){return!!(0,c.LT)(this.authProviderId)&&this.container.integrations.connectCloudIntegrations({integrationIds:[this.authProviderId],skipIfConnected:e,skipPreSync:!0},{source:t??"integrations",detail:{action:"connect",integration:this.authProviderId}})}async fetchSession(e){if(!await this.container.subscription.getAuthenticationSession(!1))return;let t=await this.container.cloudIntegrations;if(null==t)return;let i=await t.getConnectionSession(this.authProviderId);if(i?.expiresIn===0&&this.authProviderId===n.Q7.GitHub&&(i.expiresIn=p),null!=i&&i.expiresIn<60&&(i=await t.getConnectionSession(this.authProviderId,i.accessToken)),i)return{id:this.getSessionId(e),accessToken:i.accessToken,scopes:e?.scopes??[],account:{id:"",label:""},cloud:!0,expiresAt:new Date(1e3*i.expiresIn+Date.now())}}async disconnectSession(){if(!await this.container.subscription.getAuthenticationSession(!1))return!1;let e=await this.container.cloudIntegrations;return null!=e&&e.disconnect(this.authProviderId)}async openCompletionInput(e){let t=s.window.createInputBox();t.ignoreFocusOut=!0;let i=[];try{if(e.isCancellationRequested)return;await new Promise(r=>{i.push(e.onCancellationRequested(()=>t.hide()),t.onDidHide(()=>r(void 0)),t.onDidAccept(()=>r(void 0))),t.title=this.getCompletionInputTitle(),t.placeholder="Please enter the provided authorization code",t.prompt="",t.show()})}finally{t.dispose(),i.forEach(e=>void e.dispose())}}getUriHandlerDeferredExecutor(){return(e,t,i)=>{if(new URLSearchParams(e.query).get("provider")!==this.authProviderId){i("Invalid provider");return}t(e.toString(!0))}}};let BuiltInAuthenticationProvider=class BuiltInAuthenticationProvider extends LocalIntegrationAuthenticationProvider{constructor(e,t){super(e),this.authProviderId=t,this.disposables.push(s.authentication.onDidChangeSessions(e=>{e.provider.id===this.authProviderId&&this.fireDidChange()}))}createSession(){throw Error("Method `createSession` should never be used in BuiltInAuthenticationProvider")}async getSession(e,t){if(null==e)return;let{createIfNeeded:i,forceNewSession:n}=t??{};return(0,r.Ff)(this.container.integrations.ignoreSSLErrors({id:this.authProviderId,domain:e?.domain}),async()=>{let t=await s.authentication.getSession(this.authProviderId,e.scopes,{createIfNone:n?void 0:i,silent:!i&&!n||void 0,forceNewSession:!!n||void 0});if(null!=t)return{...t,cloud:!1}})}};d([(0,a.Yz)()],BuiltInAuthenticationProvider.prototype,"getSession",1);let IntegrationAuthenticationService=class IntegrationAuthenticationService{constructor(e){this.container=e}providers=new Map;dispose(){this.providers.forEach(e=>void e.dispose()),this.providers.clear()}async get(e){return this.ensureProvider(e)}async reset(){await Promise.allSettled(l.bT.map(async e=>(await this.ensureProvider(e)).deleteSession()))}supports(e){switch(e){case n.Q7.AzureDevOps:case n.Q7.Bitbucket:case n.PY.GitHubEnterprise:case n.Q7.GitLab:case n.PY.GitLabSelfHosted:case n.tp.Jira:return!0;case n.Q7.GitHub:return(0,c.LT)(n.Q7.GitHub);default:return!1}}async ensureProvider(e){let t=this.providers.get(e);if(null==t){switch(e){case n.Q7.AzureDevOps:t=new(await Promise.resolve().then(i.bind(i,4597))).AzureDevOpsAuthenticationProvider(this.container);break;case n.Q7.Bitbucket:t=new(await Promise.resolve().then(i.bind(i,4754))).BitbucketAuthenticationProvider(this.container);break;case n.Q7.GitHub:t=(0,c.LT)(n.Q7.GitHub)?new(await Promise.resolve().then(i.bind(i,2124))).GitHubAuthenticationProvider(this.container):new BuiltInAuthenticationProvider(this.container,e);break;case n.PY.GitHubEnterprise:t=new(await Promise.resolve().then(i.bind(i,2124))).GitHubEnterpriseAuthenticationProvider(this.container);break;case n.Q7.GitLab:t=(0,c.LT)(n.Q7.GitLab)?new(await Promise.resolve().then(i.bind(i,7692))).GitLabCloudAuthenticationProvider(this.container):new(await Promise.resolve().then(i.bind(i,7692))).GitLabLocalAuthenticationProvider(this.container,n.Q7.GitLab);break;case n.PY.GitLabSelfHosted:t=new(await Promise.resolve().then(i.bind(i,7692))).GitLabLocalAuthenticationProvider(this.container,n.PY.GitLabSelfHosted);break;case n.tp.Jira:t=new(await Promise.resolve().then(i.bind(i,8275))).JiraAuthenticationProvider(this.container);break;default:t=new BuiltInAuthenticationProvider(this.container,e)}this.provider