<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  <context:annotation-config/>
  <bean class="com.appian.agent.chat.controller.AgentChatController">
    <constructor-arg ref="agentChatService"/>
  </bean>
  <bean id="agentChatGson" class="com.appian.agent.chat.latest.invoker.JSON" factory-method="getGson"/>
  <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
    <property name="messageConverters">
      <list>
        <bean class="org.springframework.http.converter.json.GsonHttpMessageConverter">
          <property name="gson" ref="agentChatGson"/>
        </bean>
      </list>
    </property>
    <property name="asyncRequestTimeout" value="3600000"/>
  </bean>
</beans>
