﻿<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.diagnostics>
        <sources>
            <!-- This section defines the logging configuration for My.Application.Log -->
            <source name="DefaultSource" switchName="DefaultSwitch">
                <listeners>
                    <add name="FileLog" />
                    <!-- Uncomment the below section to write to the Application Event Log -->
                    <!--<add name="EventLog"/>-->
                </listeners>
            </source>
        </sources>
        <switches>
            <add name="DefaultSwitch" value="Information" />
        </switches>
        <sharedListeners>
            <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter" />
            <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
            <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
        </sharedListeners>
    </system.diagnostics>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Text.Encodings.Web" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.5.1" newVersion="4.0.5.1" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.1" newVersion="6.0.0.1" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <!-- Correo saliente: fuerza un FQDN en el EHLO/HELO. Sin esto, .NET saluda con el
       nombre de la PC (ej. SVALENCIA) y el servidor de correo (Exim) contesta
       "550 Access denied - Invalid HELO name" al enviar. Ago-2026. -->
  <system.net>
    <mailSettings>
      <smtp>
        <network clientDomain="eimportacion.com.mx" />
      </smtp>
    </mailSettings>
  </system.net>
  <appSettings>
    <!-- Envio de checadas al ERP web (migracion de checadores escritorio -> web).
         Ver Checadores/modSincronizaChecador.vb en eNetControlRH.
         El token es OPCIONAL: sin el, el envio va por el endpoint ADMS, que se
         identifica con el numero de serie del reloj y no pide credencial.
         NO se commitea el token: se captura en el .exe.config de cada maquina. -->
    <add key="ChecadasWeb_Url" value="https://inventario.eimportacion.com" />
    <add key="ChecadasWeb_Token" value="" />
    <add key="ChecadasWeb_Activo" value="1" />
    <add key="ChecadasWeb_Sincroniza" value="1" />
    <!-- Minutos minimos entre dos lecturas del MISMO reloj desde este equipo. Evita
         que trece modulos abiertos se peleen por el aparato y dupliquen en SQL. La
         ENTREGA al ERP web no se limita: esa corre en cada login. 0 = sin candado. -->
    <add key="ChecadasWeb_MinutosEntreLecturas" value="30" />
    <!-- En 1, la memoria del reloj solo se limpia si el ERP web confirmo la recepcion -->
    <add key="ChecadasWeb_BorrarSoloSiEnvioOk" value="1" />
  </appSettings>
</configuration>
