<?php

namespace Webkul\UVDesk\CoreFrameworkBundle\UIComponents\Dashboard\Panel\Items\Settings;

use Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments\PanelSidebarItemInterface;
use Webkul\UVDesk\CoreFrameworkBundle\UIComponents\Dashboard\Panel\Sidebars\Settings;

class SwiftMailer implements PanelSidebarItemInterface
{
    public static function getTitle() : string
    {
        return "Swift Mailer";
    }

    public static function getRouteName() : string
    {
        return 'helpdesk_member_swiftmailer_settings';
    }

    public static function getSupportedRoutes() : array
    {
        return [
            'helpdesk_member_swiftmailer_settings',
            'helpdesk_member_swiftmailer_create_mailer_configuration',
            'helpdesk_member_swiftmailer_update_mailer_configuration',
        ];
    }

    public static function getRoles() : array
    {
        return ['ROLE_AGENT_MANAGE_EMAIL_TEMPLATE'];
    }

    public static function getSidebarReferenceId() : string
    {
        return Settings::class;
    }
}
