<gatein-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_resources_1_3 http://www.gatein.org/xml/ns/gatein_resources_1_3"
                  xmlns="http://www.gatein.org/xml/ns/gatein_resources_1_3">
    <portlet>
        <name>ChatApplication</name>
        <module>
            <depends>
                <module>uiMiniCalendar</module>
            </depends>
            <depends>
                <module>bootbox</module>
            </depends>
            <depends>
                <module>uiChatPopupWindow</module>
            </depends>
            <depends>
                <module>chatCometD</module>
            </depends>
        </module>
    </portlet>
    <module>
        <name>uiMiniCalendar</name>
        <script>
            <path>/js/UIMiniCalendar.js</path>
        </script>
        <depends>
            <module>common</module>
        </depends>
        <depends>
            <module>base</module>
        </depends>
        <depends>
            <module>jquery</module>
        </depends>
        <depends>
            <module>I18NMessage</module>
        </depends>
    </module>
    <module>
        <name>uiChatPopupWindow</name>
        <script>
            <path>/js/UIPopupWindow.js</path>
        </script>
        <depends>
            <module>common</module>
        </depends>
        <depends>
            <module>uiPopup</module>
        </depends>
        <depends>
            <module>uiMaskLayer</module>
        </depends>
        <depends>
            <module>base</module>
        </depends>
        <depends>
            <module>jquery</module>
        </depends>
    </module>
    <module>
        <name>bootbox</name>
        <script>
            <adapter>
                (function($) {
                var _$ = window.jQuery; window.jQuery = $;
                <include>/js/bootbox.js</include>
                window.jQuery = _$;
                })($);
            </adapter>
        </script>
        <depends>
            <module>bts_modal</module>
        </depends>
        <depends>
            <module>jquery</module>
        </depends>
    </module>
    <module>
        <name>chatCometD</name>
        <as>cCometD</as>
        <script>
            <path>/js/commons-cometd3.js</path>
        </script>
        <depends>
            <module>jquery</module>
        </depends>
        <depends>
            <module>jquery_cometd</module>
        </depends>
    </module>
</gatein-resources>