<?php

namespace App\Services;

class HelpDeskService extends KedebahService
{

    public function sendMessage(int $helpDeskId, string $message)
    {
        $response = $this->post("/help-desk/$helpDeskId/add-message", ['content' => $message]);

        return $response->object();
    }
    public function closeConversation(int $helpDeskId)
    {
        $response = $this->post("/help-desk/$helpDeskId/close-conversation");

        return $response->object();
    }

    protected function apiUrl(): string|null
    {
        return config('services.kedebah.hr_service_url');
    }

}
