<?xml version="1.0" encoding="utf-8"?>
<!-- 
	Company: HealthLevel Inc.
	Web Site: http://www.healthlevel.com
	File Name: App.config
	Application: HealthLevel Uploader to the Cloud.
	Purpose: To store global application configuration settings.
	Copyright: 2012 HealthLevel Inc. All rights reserved.
-->
<configuration>

  <configSections>
    <!--<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>

  <appSettings>
    <!--Azure Connection string-->
    <add key="StorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=healthlevel1;AccountKey=gFhEZR8PLknOCU7jnoH4p0qhsycC45RDYYNiqbLBWWJeI4E9CE5TkZyTlZQhmgm4PUwkUQv4y/00g/+6ny/7/w==;EndpointSuffix=core.windows.net"/>
    <add key="AzureShareEnabled" value="No"/>
    <add key="AzureFileShare" value="healthlevel-test"/>
    <add key="AzureSourceFolder" value="HealthLevel"/>
    <add key="AzureProcessedFolder" value="HealthLevelProcessed"/>
    <!--Azure Connection string-->

    <add key="ApplicationFullURL" value="https://innovamd.healthlevel.com/ofppp/" />
    <add key="xferType" value="DOWNLOAD"/>
    <!-- DOWNLOAD, nodemonitor -->
    <add key="eventIntervalInMin"  value="1" />
    <!--in minutes-->

    <add key="AppDownloadFromCloud" value="true"/>
    <add key="AppCustomerGuid" value="A8BE9254-92E9-46BF-BBD4-1A925F4036AF"/>
    <add key="listenerGuid" value="hl7"/>

    <!--<add key="loadFileSourcePath" value="C:\downloader-hltest\"/>
    <add key="loadFileDownloadPath" value="C:\downloader-hltest\"/>
    <add key="loadLogFileSourcePath" value="C:\downloader-hltest\"/>
    <add key="loadLogFileDownloadPath" value="C:\downloader-hltest\"/>
    <add key="loadTempExtractPath" value="C:\downloader-hltest\"/>
    <add key="downloaderOnCustomerPremise" value="false"/>-->

    <add key="timeZone" value="Pacific Standard Time" />
    <add key="ApplicationStatus" value="live" />
    <add key="uploadToCloud" value="false" />
    <add key="UploaddataFolder" value="C:\uploader-hltest\" />
    <add key="Crypto" value="TRUE" />

    <add key="forcesourceFolder" value="True" />
    <add key="forcesourceFolderPath" value="C:\foundationsshare" />
    <add key="DeleteafterUpload" value="True" />
    <!-- Database name settings -->
    <add key="AppCustomersDatabaseName" value="HLCustomer"/>
    <add key="AppLoadDatabaseName" value="HLLoad"/>
    <add key="AppSyncedFolder" value="synced"/>
    <add key="AppNotSyncedFolder" value="not-synced"/>

    <!-- SMTP server settings -->
    <add key="SmtpSendEmail" value="true"/>
    <add key="SmtpServerName" value="smtp.elasticemail.com"/>
    <add key="SmtpServerPort" value="2525"/>
    <add key="SmtpServerEnableSSL" value="true"/>
    <add key="SmtpServerAuthUserName" value="itadmin@healthlevel.com"/>
    <add key="SmtpServerAuthUserPassword" value="21c71d46-e900-4158-87ec-e8c223ea8d00"/>
    <!-- SMTP email settings -->
    <add key="SmtpFromEmailLabel" value="FL_Azure_PreProd" />
    <add key="SmtpFromEmailAddress" value="hlsysadmin@healthlevel.com" />
    <add key="SmtpToEmailLabel" value="Foundations Administrators" />
    <add key="SmtpToEmailAddress" value="mmmhc@healthlevel.com" />
    <!-- Node details-->
    <add key="NodeName" value="local"/>
    <add key="Drives" value="*"/>
    <add key="RequiredFreeSpace" value="90"/>
    <!--in percent-->
  </appSettings>


  <!--<loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="HLAppLog" logWarningsWhenNoCategoriesMatch="true">
    <listeners>
      <add name="HLAppLogListener" fileName="C:\Temp\HL_Logs\downloaderofp\app_exceptions.log" header="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" footer="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" formatter="HL_Text_Formatter" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="LogicalOperationStack" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" rollFileExistsBehavior="Increment" rollInterval="Midnight" rollSizeKB="5000" timeStampPattern="yyyy-MM-dd"/>
      <add name="HLTraceLogListener" fileName="C:\Temp\HL_Logs\downloaderofp\app_trace.log" header="" footer="" formatter="HL_Trace_Formatter" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="None" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" rollFileExistsBehavior="Increment" rollInterval="Midnight" rollSizeKB="5000" timeStampPattern="yyyy-MM-dd"/>
    </listeners>
    <formatters>
      <add name="HL_Text_Formatter" template="Timestamp: {timestamp(local:MM/dd/yyyy HH:mm:ss.fff)}{newline}Message: {message}{newline}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{newline}Category: {category}{newline}Priority: {priority}{newline}EventId: {eventid}{newline}Severity: {severity}{newline}Title: {title}{newline}Machine: {machine}{newline}Application Domain: {appDomain}{newline}Process Id: {processId}{newline}Process Name: {processName}{newline}Win32 Thread Id: {win32ThreadId}{newline}Thread Name: {threadName}{newline}Extended Properties: {dictionary({key} - {value}{newline})}" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="HL_Trace_Formatter" template="{timestamp(local:MM/dd/yyyy HH:mm:ss.fff)}: {message}" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </formatters>
    <categorySources>
      <add switchValue="All" name="HLAppLog">
        <listeners>
          <add name="HLAppLogListener"/>
        </listeners>
      </add>
      <add switchValue="All" name="HLTraceLog">
        <listeners>
          <add name="HLTraceLogListener"/>
        </listeners>
      </add>
    </categorySources>
    <specialSources>
      <allEvents switchValue="All" name="All Events"/>
      <notProcessed switchValue="All" name="Unprocessed Category"/>
      <errors switchValue="All" name="Logging Errors &amp; Warnings"/>
    </specialSources>
  </loggingConfiguration>
  <exceptionHandling>
    <exceptionPolicies>
      <add name="HLAppLog">
        <exceptionTypes>
          <add type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="NotifyRethrow" name="Exception">
            <exceptionHandlers>
              <add name="HL_AppLog_Handler" logCategory="HLAppLog" eventId="100" severity="Error" title="HealthLevel App" formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="0" useDefaultLogger="true" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </exceptionHandlers>
          </add>
        </exceptionTypes>
      </add>
    </exceptionPolicies>
  </exceptionHandling>-->

  <system.serviceModel>
    <client>
      <endpoint address="http://10.184.103.141/app/services/FileWebServices.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IFileWebServices"
        contract="HLFileService.IFileWebServices" name="BasicHttpBinding_IFileWebServices"  />
    </client>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IGenerateToken" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="UserName" algorithmSuite="Default"/>
          </security>
        </binding>
        <binding name="BasicHttpBinding_IFileWebServices" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="UserName" algorithmSuite="Default"/>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
  </startup>
</configuration>