<?php

use HelpGent\WpMVC\Enqueue\Enqueue;

defined( 'ABSPATH' ) || exit;

include_once __DIR__ . '/register.php';

if ( 'helpgent_page_helpgent' === get_current_screen()->id ) {
    wp_enqueue_code_editor( [ 'type' => 'text/html' ] );
    wp_enqueue_editor();
    wp_enqueue_media();
    wp_enqueue_script( 'helpgent/builder' );

    Enqueue::script( 'helpgent/admin', 'build/js/index', ['helpgent/notification'] );
    wp_set_script_translations( 'helpgent/admin', "helpgent" );

    wp_enqueue_style( 'helpgent/style' );
    wp_enqueue_script( 'helpgent/record-rtc' );
} else {
    wp_enqueue_script( 'helpgent/socket' );
}
