Add service-point routing so call-next cannot steal assigned tickets.
Deploy Ladill Queue / deploy (push) Successful in 2m17s
Deploy Ladill Queue / deploy (push) Successful in 2m17s
Counters gain destination/staff metadata; tickets can be pre-assigned to a service point with assigned_only queues for healthcare while shared_pool preserves generic bank/government behavior. Display and announcements expose ticket, staff, and destination clearly for Care and public boards. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,10 +40,10 @@ class ConsoleApiController extends Controller
|
||||
->latest('called_at')
|
||||
->first();
|
||||
|
||||
$waitingByQueue = collect($counter->serviceQueues)->mapWithKeys(function (ServiceQueue $queue) {
|
||||
$waitingByQueue = collect($counter->serviceQueues)->mapWithKeys(function (ServiceQueue $queue) use ($counter) {
|
||||
return [$queue->uuid => array_map(
|
||||
fn ($t) => TicketPresenter::toArray($t),
|
||||
$this->engine->waitingTickets($queue, 10),
|
||||
$this->engine->waitingTickets($queue, 10, $counter),
|
||||
)];
|
||||
});
|
||||
|
||||
@@ -61,6 +61,8 @@ class ConsoleApiController extends Controller
|
||||
'counter' => [
|
||||
'uuid' => $counter->uuid,
|
||||
'name' => $counter->name,
|
||||
'destination' => $counter->displayDestination(),
|
||||
'staff_display_name' => $counter->staff_display_name,
|
||||
'status' => $counter->status,
|
||||
'branch' => $counter->branch?->name,
|
||||
],
|
||||
@@ -69,6 +71,7 @@ class ConsoleApiController extends Controller
|
||||
'uuid' => $q->uuid,
|
||||
'name' => $q->name,
|
||||
'prefix' => $q->prefix,
|
||||
'routing_mode' => $q->routingMode(),
|
||||
]),
|
||||
'waiting_by_queue' => $waitingByQueue,
|
||||
'transfer_queues' => $allQueues,
|
||||
|
||||
Reference in New Issue
Block a user