IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '35')
BEGIN
	INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'35', N'Defasagem de Cheque', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '45')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'45', N'Comissão Fracionada', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '69')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'69', N'Comissão Total', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '70')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'70', N'Comissão Total Endosso', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '107')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'107' , N'Emissão Cartão Porto Seguro', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '150')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'150' , N'Cartão Porto Seguro', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '5')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'5', N'Acerto Taxa', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '1')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'1', N'Antecipação', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '2')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'2', N'Recuperação Antecipação', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '21')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'21', N'Acerto Fracionado', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 259 AND [codigocia] = '1')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (259, N'1', N'Parcela Especial', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '149')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'149', N'Cartão Porto Seguro',0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '1391rv')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'1391rv', N'Desconsiderar Nº Endosso Vida',0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 501 AND [codigocia] = '1')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (501, N'1', N'Bônus "PLUS AUTO”', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 19 AND [codigocia] = '1')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (19, N'1', N'Bônus "PLUS”', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 595 AND [codigocia] = 'viacorretor')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (595, N'viacorretor', N'Importar Via Corretor', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 216 AND [codigocia] = 'Fed999')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (216, N'Fed999', N'Importar Sub. Fed. como 999', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 216 AND [codigocia] = 'Est999')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (216, N'Est999', N'Importar Sub. Est. como 999', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 92 AND [codigocia] = '1')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (92, N'1', N'Parcela Especial', 0);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '72')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'72', N'Cancelamento da Apólice', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 70 AND [codigocia] = '1')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (70, N'1', N'Parcela Especial', 1);
END

IF NOT EXISTS(SELECT 1 FROM [dbo].[extratoconfig] WHERE [idciaseg] = 400 AND [codigocia] = '148')
BEGIN
INSERT INTO [dbo].[extratoconfig] ([idciaseg], [codigocia], [descricao], [ativo]) VALUES (400, N'148', N'Cartão Porto Seguro', 1);
END