<?xml version="1.0"?>
<http>
  <domain id="Default" domainType="http"  host="localhost:8088" type="HttpProcessor" sessionType="ContactRoute.ApplicationServer.SessionMaster, CRClientSession" maxEventsQueueLength="50000"
  connectionString="Integrated Security=Yes;Data Source=localhost;Initial Catalog={0}_{1}"
  extendedConnectionString="Integrated Security=No;User ID={{credential.admin.user}};Password={{credential.admin.password}};">

    <credentials>
      <add key="admin" credential="DefaultAdmin:password" roles="NixxisAdminRole"/>
      <add credential="\DefaultReporting:password" roles="NixxisReportingRole"/>
    </credentials>

    <application id="dispatcher" name="Dispatcher" type="ContactRoute.Dispatcher.DispatcherApp, CRDispatcherLink" preload="true"  debug="true" serviceId="dispatcher">
      <add key="dispatcherRepositoryType" value="ContactRoute.Dispatcher.DispatcherSqlRepository, CRDispatcherLink" />
    </application>

    <application id="acd" name="CrAcd" type="NixxisAcdApp" preload="true" sessionLess="true" debug="true">
    </application>

    <application id="dialer" name="CrDialer" type="NixxisDialerApp" preload="true" sessionLess="true" serviceId="dialer">
    </application>

    <application id="admin" name="CrAdmin" type="NixxisAdminApp" preload="true" sessionLess="true" serviceId="admin,signon" debug="true">
      <add key="campaignDatabasePatern" value="{0}_Data_"/>

      <add key="reportServerUrl" value="http://localhost/ReportServer"/>
      <add key="reportsBasePath" value="Nixxis administrator"/>
      <add key="reportsStatsBasePath" value="/"/>

      <add key="maintenanceTime" value="0200"/>
      <add key="maintenanceBackupPath" value="{0}.bak"/>

      <add key="pathSounds" value="HomeSounds\{0}"/>
      <add key="pathMoh" value="HomeSounds\{0}\Moh\"/>
      <add key="pathConfigs" value="HomeSounds\{0}\Configs\"/>
      <add key="pathAttachments" value="Attachments\{0}"/>
      <add key="pathImportExports" value="ImportExports\{0}"/>
      <add key="soundsSync" value="/home/soundsv2/{1}/"/>
      <add key="mohSync" value="/srv/www/lighttpd/MohReload"/>

      <add key="socialNetworkActive" value="false"/>

      <add key="basicSchema" value="Main.xsd"/>
      <add key="referencesSchema" value="References.xsd"/>
      <add key="ignoreValidationErrors" value="false"/>
      <add key="preferredEncoding" value="UTF-8"/>
    </application>

    <application id="reporting" name="CrReporting" type="NixxisReportingApp" preload="true" sessionLess="true" debug="true">
      <add key="ReportingDatabaseConnectionString" value="Initial Catalog={0}_ContactRouteReport"/>
      <add key="NixxisReportingDatabaseConnectionString" value="Initial Catalog={0}_NixxisReporting"/>
      <add key="StateMachineFolder" value="{0}_{1}"/>

      <add key="version" value="2"/>
      <add key="Statemachine_InsertInToAgentStat" value="true"/>
      <add key="Statemachine_InsertInToAgentStates" value="true"/>
      <add key="Statemachine_InsertInToAgentActions" value="true"/>
      <add key="EventLoadingCycle" value="10000"/>
      <add key="EventLoadingCycleMax" value="60000"/>
      <add key="EventLoadingCycleIncreaseTime" value="5000"/>
      <add key="EventLoadingCycleTries" value="3"/>
      <add key="EventSqlQueryWrnTime" value="-1"/>
      <add key="SaveIvrInfo" value="true"/>
      <add key="AgentSplitWaitingVoiceState" value="false"/>

      <add key="Debug_Global" value="true"/>
      <add key="Debug_StateMachine" value="false"/>
      <add key="Debug_DispatcherPublisher" value="false"/>
      <add key="Debug_DispatcherClientTriggers" value="false"/>
      <add key="Debug_Database" value="false"/>
      <add key="Debug_EventServer" value="false"/>
      <add key="Debug_LevelDebug" value="false"/>
      <add key="Debug_LevelInfo" value="false"/>
      <add key="Debug_LevelWarning" value="false"/>
      <add key="Debug_LevelError" value="true"/>
      <add key="Debug_LevelCritical" value="true"/>
    </application>

    <application id="agent" name="Test App 2" type="NixxisClientApp" debug="true" sessionKey="agentScript" preload="true" serviceId="agent,supervision">
      <add key="filesPath" value="StaticFiles" />
      <add key="filesSettings" value="specificExt='.txt.html.htm.js.vbs.css';cacheControl='private';cacheDuration='500'" />
      <add key="defaultFile" value="CrLoginScreen.htm" />
      <add key="agtFile" value="CrAgent.htm"/>
      <add key="supFile" value="Client_Sup.html"/>
      <add key="loginFile" value="CrLoginScreen.htm" />
      <add key="ManualCallList" value=""/>
      <add key="allowTeamSelection" value="true"/>

      <add key="autoReady" value="-2"/>
      <add key="concurrentVoice" value="1"/>
      <add key="concurrentVoiceActive" value="1"/>

      <add key="concurrentMail" value="0"/>
      <add key="concurrentMailActive" value="0"/>
      <add key="concurrentChat" value="0"/>
      <add key="concurrentChatActive" value="0"/>

      <add key="client_AllowWaitingForChat" value="false" />
      <add key="client_AllowWaitingForMail" value="false" />
    </application>

    <application id="eventserver" name="Event server" type="NixxisEventServerApp" preload="true" sessionLess="true" serviceId="eventserver" >
      <add key="StateMachineFolder" value="{0}_{1}"/>
      <add key="Supervision_NotInQueueTime" value="1000"/>
      <add key="Supervision_OnLogOutDeleteAgent" value="false"/>
      <add key="Supervision_OnLogOutDeleteAgentHistory" value="true"/>
      <add key="Supervision_SaveStateMachine" value="false"/>
      <add key="Supervision_AutologinAgent" value="true"/>
      <add key="Supervision_LoginEventDelay" value="2000"/>

      <add key="Debug_Global" value="true"/>
      <add key="Debug_StateMachine" value="false"/>
      <add key="Debug_DispatcherPublisher" value="false"/>
      <add key="Debug_DispatcherClientTriggers" value="false"/>
      <add key="Debug_Database" value="false"/>
      <add key="Debug_EventServer" value="false"/>
      <add key="Debug_LevelDebug" value="false"/>
      <add key="Debug_LevelInfo" value="false"/>
      <add key="Debug_LevelWarning" value="false"/>
      <add key="Debug_LevelError" value="true"/>
      <add key="Debug_LevelCritical" value="true"/>
    </application>

    <application id="upload" name="upload" type="StaticFile" allowedVerbs="GET;POST;PUT;DELETE;HEAD" sessionLess="true" serviceId="adminupload" debug="true">
      <add key="localPath" value="Upload" />
      <add key="filesSettings" value="specificExt='.txt.html.htm.js.vbs.css';cacheControl='private';cacheDuration='10'" />
      <add key="sendOptions" value="chunked" />
    </application>

    <application id="agenda" name="AgendaServer" type="AgendaServer" preload="true" debug="true" sessionKey="agentScript" serviceId="agenda" serviceClientType="ContactRoute.AdminWindow, AdminWindow">
      <add key="connectionString" value="Initial Catalog={0}_{1}_{2}" />
      <add key="areaWithoutMembers" value="true" />
    </application>

    <application id="data" name="ContextData" type="ContextData" preload="true" sessionLess="true" debug="true" serviceId="reporting">
      <add key="historyConnectionString" value="Initial Catalog={0}_ContactRouteReport" />
      <add key="Recording" value="Initial Catalog={0}_ContactRouteReport" />
      <add key="reporting" value="Initial Catalog={0}_NixxisReporting"/>
    </application>

    <application id="provisioning" name="Provisioning" type="ClientCheck"  debug="true" sessionLess="true" serviceId="provisioning">
      <add key="filesPath" value="Provisioning" />
      <add key="filesSettings" value="specificExt='.txt.html.htm.js.vbs.css';cacheControl='private';cacheDuration='10'" />
    </application>

    <application id="relay" name="relay" type="HttpRelay" sessionLess="true" serviceId="recording" serviceClientType="CrRecording.NixxisClientLauncher, CrRecordingWindow" debug="true">
      <add key="recording" value="ftp://b:b@2.2.2.2" />
    </application>

    <application id="blacklist" name="BlackList" type="BlackList"  debug="true" sessionLess="true" preload="true">
    </application>
  </domain>
</http>
