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_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727789130802','1','','4003','2024-10-01','2024-10-01','08:00:00','11:00:00','Pendente','90','90','','-1727789130802','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727789130802','1','proposta de inauguração de loja','4003','2024-10-01','2024-10-01','','','','','90','20132402','-1727790170408','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727790210210','2','','4003','2024-10-01','2024-10-01','08:00:00','11:00:00','Pendente','90','90','','-1727790210210','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727790210210','2','','4003','2024-10-01','2024-10-01','','','','','90','31482801','-1727790217014','','') - 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; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727790217014','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727790217014','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727790217014','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727790217014','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; UPDATE agenda_tarefa SET idPrimario = 36968 WHERE idPrimario = -1727386325471 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36968 WHERE tarefa = -1727386325471 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36969 WHERE tarefa = -1727386356959 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36969 WHERE tarefa = -1727386356959 - 90; UPDATE agenda_tarefa SET idPrimario = 36970 WHERE idPrimario = -1727386428825 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36970 WHERE tarefa = -1727386428825 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36971 WHERE tarefa = -1727386440135 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36971 WHERE tarefa = -1727386440135 - 90; UPDATE agenda_tarefa SET idPrimario = 36972 WHERE idPrimario = -1727386527173 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36972 WHERE tarefa = -1727386527173 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36973 WHERE tarefa = -1727386557945 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36973 WHERE tarefa = -1727386557945 - 90; UPDATE agenda_tarefa SET idPrimario = 36974 WHERE idPrimario = -1727386747994 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36974 WHERE tarefa = -1727386747994 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36975 WHERE tarefa = -1727386764766 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36975 WHERE tarefa = -1727386764766 - 90; UPDATE agenda_tarefa SET idPrimario = 36976 WHERE idPrimario = -1727386788450 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36976 WHERE tarefa = -1727386788450 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36977 WHERE tarefa = -1727386800226 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36977 WHERE tarefa = -1727386800226 - 90; UPDATE agenda_tarefa SET idPrimario = 36978 WHERE idPrimario = -1727386828834 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36978 WHERE tarefa = -1727386828834 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36979 WHERE tarefa = -1727386892012 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36979 WHERE tarefa = -1727386892012 - 90; UPDATE agenda_tarefa SET idPrimario = 36980 WHERE idPrimario = -1727789130802 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36980 WHERE tarefa = -1727789130802 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36981 WHERE tarefa = -1727790170408 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36981 WHERE tarefa = -1727790170408 - 90; UPDATE agenda_tarefa SET idPrimario = 36982 WHERE idPrimario = -1727790210210 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36982 WHERE tarefa = -1727790210210 - 90; UPDATE agenda_resposta_formulario SET tarefa = 36983 WHERE tarefa = -1727790217014 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 36983 WHERE tarefa = -1727790217014 - 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; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; DELETE FROM agenda_tarefa WHERE idPrimario ='-1727814243919' - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727814243919','1','','498','2024-10-01','2024-10-01','13:00:00','16:00:00','Pendente','90','90','','-1727814243919','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727814243919','1','apresentação da linha da linea para o comprador ','498','2024-10-01','2024-10-01','','','','','90','320805','-1727814319503','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727814410132','2','','498','2024-10-01','2024-10-01','13:00:00','16:00:00','Pendente','90','90','','-1727814410132','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727814410132','2','','498','2024-10-01','2024-10-01','','','','','90','320805','-1727814421781','','') - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814319503','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814421781','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814421781','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814421781','418','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727814421781','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; UPDATE agenda_tarefa SET idPrimario = 37017 WHERE idPrimario = -1727814243919 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37017 WHERE tarefa = -1727814243919 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37018 WHERE tarefa = -1727814319503 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37018 WHERE tarefa = -1727814319503 - 90; UPDATE agenda_tarefa SET idPrimario = 37019 WHERE idPrimario = -1727814410132 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37019 WHERE tarefa = -1727814410132 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37020 WHERE tarefa = -1727814421781 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37020 WHERE tarefa = -1727814421781 - 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;