Configuração de SLA - Nettown Analytics {#if showAddModal}
e.target === e.currentTarget && (showAddModal = false)} onkeydown={(e) => e.key === 'Escape' && (showAddModal = false)} role="dialog" aria-modal="true" tabindex="-1" >

Adicionar Departamento

{/if}

Configuração de SLA

Defina os tempos de atendimento por departamento. O sistema alertará automaticamente quando os limites estiverem próximos de estourar.

{#if isLoading}
{#each [1, 2, 3] as _}
{/each}
{:else}
{#each departments as dept, i} {@const badge = statusBadge(dept.liveStatus)} {@const StatusIcon = statusIcon(dept.liveStatus)}

{dept.name}

{badge.label}
{dept.liveDetail}
h
min
horas
% do tempo
Primeira resposta: {dept.firstResponseH > 0 ? `${dept.firstResponseH}h ` : ''}{dept.firstResponseM > 0 ? `${dept.firstResponseM}min` : dept.firstResponseH === 0 ? '0min' : ''} Resolução: {dept.resolutionH}h Alerta em: {dept.alertPct}%
{#if savedDeptIds.includes(dept.id)} SLA do {dept.name} atualizado {/if}
{/each}
{/if} {#if !isLoading}
{/if} {#if !isLoading}

Status de SLA em Tempo Real

{#each departments as dept} {@const badge = statusBadge(dept.liveStatus)} {@const StatusIcon = statusIcon(dept.liveStatus)} {/each}
Departamento Status atual Situação Primeira resposta máx. Resolução máx. Atualizado
{dept.name}
{dept.liveDetail}
{badge.label} {dept.firstResponseH > 0 ? `${dept.firstResponseH}h` : ''}{dept.firstResponseM > 0 ? ` ${dept.firstResponseM}min` : ''} {dept.firstResponseH === 0 && dept.firstResponseM === 0 ? '—' : ''} {dept.resolutionH}h {dept.lastUpdated}
{/if}