DELETE FROM agenda_tarefa WHERE idPrimario ='-1727386442188' - 90; DELETE FROM agenda_tarefa WHERE idPrimario ='-1727386828834' - 90; DELETE FROM agenda_tarefa WHERE idPrimario ='-1727386838364' - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386325471','1','','495','2024-09-26','2024-09-26','08:00:00','12:00:00','Pendente','90','90','','-1727386325471','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386325471','1','','495','2024-09-26','2024-09-26','','','','','90','348901','-1727386356959','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386428825','1','','491','2024-09-26','2024-09-26','08:00:00','12:00:00','Pendente','90','90','','-1727386428825','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386428825','1','','491','2024-09-26','2024-09-26','','','','','90','348901','-1727386440135','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386527173','1','','4003','2024-09-26','2024-09-26','15:00:00','18:00:00','Pendente','90','90','','-1727386527173','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386527173','1','','4003','2024-09-26','2024-09-26','','','','','90','237401','-1727386557945','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386747994','2','','495','2024-09-26','2024-09-26','08:00:00','12:00:00','Pendente','90','90','','-1727386747994','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386747994','2','','495','2024-09-26','2024-09-26','','','','','90','348901','-1727386764766','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386788450','2','','491','2024-09-26','2024-09-26','08:00:00','12:00:00','Pendente','90','90','','-1727386788450','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386788450','2','','491','2024-09-26','2024-09-26','','','','','90','348901','-1727386800226','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386828834','2','','4003','2024-09-26','2024-09-26','15:00:00','18:00:00','Pendente','90','90','','-1727386828834','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727386828834','2','','4003','2024-09-26','2024-09-26','','','','','90','237401','-1727386892012','','') - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386440135','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386356959','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386557945','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386764766','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386764766','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386764766','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386764766','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386800226','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386800226','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386800226','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386800226','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386892012','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386892012','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386892012','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727386892012','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; UPDATE agenda_tarefa SET idPrimario = 35254 WHERE idPrimario = -1727386325471 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35254 WHERE tarefa = -1727386325471 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35255 WHERE tarefa = -1727386356959 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35255 WHERE tarefa = -1727386356959 - 90; UPDATE agenda_tarefa SET idPrimario = 35256 WHERE idPrimario = -1727386428825 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35256 WHERE tarefa = -1727386428825 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35257 WHERE tarefa = -1727386440135 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35257 WHERE tarefa = -1727386440135 - 90; UPDATE agenda_tarefa SET idPrimario = 35258 WHERE idPrimario = -1727386527173 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35258 WHERE tarefa = -1727386527173 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35259 WHERE tarefa = -1727386557945 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35259 WHERE tarefa = -1727386557945 - 90; UPDATE agenda_tarefa SET idPrimario = 35260 WHERE idPrimario = -1727386747994 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35260 WHERE tarefa = -1727386747994 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35261 WHERE tarefa = -1727386764766 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35261 WHERE tarefa = -1727386764766 - 90; UPDATE agenda_tarefa SET idPrimario = 35262 WHERE idPrimario = -1727386788450 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35262 WHERE tarefa = -1727386788450 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35263 WHERE tarefa = -1727386800226 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35263 WHERE tarefa = -1727386800226 - 90; UPDATE agenda_tarefa SET idPrimario = 35264 WHERE idPrimario = -1727386828834 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35264 WHERE tarefa = -1727386828834 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35265 WHERE tarefa = -1727386892012 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35265 WHERE tarefa = -1727386892012 - 90; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 90; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 90; insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 90; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 90; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90;