#!/bin/bash
. /var/lib/asterisk/scripts/callcenter/bd
TBL_AGENTES="pbx_supervisor_agentes"
if [ -z "$1" ]
then
exit
fi
export PGPASSWORD=$SENHA
psql -c "delete from $TBL_AGENTES where matricula = '$1'" -h $HOST_DB -d $BASE_DB -U $USUARIO