<?xml version="1.0" encoding="ISO-8859-1"?>

<configuration
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
        xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">
    <external-component-plugins>
        <target-component>org.exoplatform.services.listener.ListenerService</target-component>
        <component-plugin>
            <name>org.exoplatform.web.GenericHttpListener.sessionDestroyed</name>
            <set-method>addListener</set-method>
            <type>org.exoplatform.addons.chat.listener.UpdateUserStatusListener</type>
        </component-plugin>
        <component-plugin>
            <name>exo.core.security.ConversationRegistry.register</name>
            <set-method>addListener</set-method>
            <type>org.exoplatform.addons.chat.listener.UserLoginListener</type>
            <description>Listener to update spaces of user on login</description>
        </component-plugin>
    </external-component-plugins>
    <external-component-plugins>
        <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
        <component-plugin>
            <name>UpdateUserEventListener</name>
            <set-method>addListenerPlugin</set-method>
            <type>org.exoplatform.addons.chat.listener.UpdateUserEventListener</type>
        </component-plugin>
    </external-component-plugins>
</configuration>
