{#
<script src="{{ asset('bundles/rxconnexion/admin/js/jquery-migrate.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/js/jquery.maskedinput.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/js/jquery.maskedMoney.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/js/jquery.chained.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/js/jquery.autocomplete.min.js') }}"></script>
#}
<script src="{{ asset('bundles/rxconnexion/admin/js/f12fc6e3a36d079b77cb79f4fe85c6af.js') }}?v=1.0.2"></script>

{#
<script src="{{ asset('bundles/rxconnexion/admin/5ef454dac126d1ac22606c4a315ae5cb/jquery-ui.min.js') }}"></script>
#}
{#<script src="{{ asset('bundles/rxconnexion/admin/js/jquery.min.js') }}"></script>#}
<script src="{{ asset('bundles/rxconnexion/admin/js/chart.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/5ef454dac126d1ac22606c4a315ae5cb/5ef454dac126d1ac22606c4a315ae5cb.js') }}?v=1.0.0"></script>

{#
Foundation 6
foundation.util.keyboard.js
foundation.util.box.js
foundation.util.triggers.js
foundation.util.mediaQuery.js
foundation.util.motion.js
#}
<script src="{{ asset('bundles/rxconnexion/admin/4f792254853c5828b4b5efac0dd31904/4f792254853c5828b4b5efac0dd31904.js') }}"></script>

{#
<script src="{{ asset('bundles/rxconnexion/admin/d60aa4380cd5bb17b2b140a53d701621/js/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/d60aa4380cd5bb17b2b140a53d701621/js/jquery.dataTables.responsive.min.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/admin/d60aa4380cd5bb17b2b140a53d701621/js/dataTables.foundation.min.js') }}"></script>
#}
<script src="{{ asset('bundles/rxconnexion/admin/d60aa4380cd5bb17b2b140a53d701621/js/d60aa4380cd5bb17b2b140a53d701621.js') }}?v=1.0.0"></script>

<script src="{{ asset('bundles/rxconnexion/admin/js/5319eb4afc1fc6343d3e95b91c30c120.js') }}?v=1.0.11"></script>
<script src="{{ asset('bundles/rxconnexion/admin/js/global_chat.js') }}?v=1.0.5"></script>
<script src="{{ asset('bundles/rxconnexion/admin/js/global_reminder.js') }}?v=1.0.5"></script>
<script src="{{ asset('bundles/rxconnexion/js/jquery.tablesorter.min.js') }}?v=1.0.5"></script>
<script src="{{ asset('bundles/rxconnexion/ckeditor/ckeditor.js') }}">


</script><script src="{{ asset('bundles/rxconnexion/js/jscolor.js') }}"></script>
<script src="{{ asset('bundles/rxconnexion/js/select2.min.js') }}"></script>

<script src="{{ asset('bundles/rxconnexion/socket.io/socket.io-client/socket.io.js') }}"></script>

{% if javascripts is defined %}
    {% for javascript in javascripts %}
        <script src="{{ asset('bundles/' ~ javascript ) }}"></script>
    {% endfor %}
{% endif %}

<script language="JavaScript">
    //<![C[DATA

    jQ(document).ready(function() {
        global.settings.url = "{{ app.request.getSchemeAndHttpHost() ~ app.request.baseUrl }}";
        {% if app.environment != 'dev' %}
            global_chat.settings.chat_url = "{{ path('chat') }}";
            global_chat.settings.countChat_url = "{{ path('chat_count_recent') }}";
            global_chat.settings.chatPopup_url = "{{ path('chat_popup') }}";
            global_chat.settings.chat_add_msgUrl = '{{ path('chat_send_message') }}';
            {% if app.session.has('userData') %}
                global_chat.userId = {{ app.session.get('userData').id }};
                global.io = io.connect('{{ ws_server }}', {'query': 'token=' + '{{ app.session.get('userData').ws_token }}', 'reconnect': true, 'transports': ['websocket', 'polling'], 'secure': true});
                global_chat.init();
            {% endif %}
        {% endif %}
        global.init();
        global_reminder.settings.reminder_form_url = '{{ path('account_user_reminder_form_global') }}';
        global_reminder.settings.reminder_list_url = '{{ path('account_user_reminder_list_global') }}';
        global_reminder.settings.reminder_count_url = '{{ path('account_user_reminder_count_global') }}';
        global_reminder.settings.patient_autocompleteUrl = '{{ path('patient_autocomplete_for_account_user_reminder') }}';
        global_reminder.settings.account_user_autocompleteUrl = '{{ path('account_user_active_autocomplete') }}';
        global_reminder.settings.user_group_autocompleteUrl = '{{ path('user_group_autocomplete') }}';
        {% if app.session.has('userData') and (app.session.get('userData').type != "Super Admin" and "Admin Account User Reminder" in app.session.get('userData').accesses)  %}
            global_reminder.init();
        {% endif %}
    });
    //]]>
</script>

