<?php

namespace App\Services\Communications;


use App\Models\Communication\CallQueue;

class QueueSelectionService {
    public function findActiveByType(int $solicitorId, string $type): ?CallQueue {
        return CallQueue::query()
            ->where('solicitor_id', $solicitorId)
            ->where('type', $type)
            ->where('is_active', true)
            ->first();
    }
}