<?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>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>
    <external-component-plugins>
        <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
        <component-plugin>
            <name>external.user.listener</name>
            <set-method>addListenerPlugin</set-method>
            <type>org.exoplatform.addons.chat.listener.ExternalUserListener</type>
            <description>Update external user property</description>
        </component-plugin>
    </external-component-plugins>
</configuration>
