package providers

const (
	Gladly   Provider = "gladly"
	GladlyQA Provider = "gladlyQA"
)

// nolint:funlen
func init() {
	// Gladly production environment
	SetInfo(Gladly, ProviderInfo{
		DisplayName: "Gladly",
		AuthType:    Basic,
		BaseURL:     "https://{{.workspace}}.gladly.com/api",
		Support: Support{
			BulkWrite: BulkWriteSupport{
				Insert: false,
				Update: false,
				Upsert: false,
				Delete: false,
			},
			Proxy:     false,
			Read:      false,
			Subscribe: false,
			Write:     false,
		},
		Media: &Media{
			DarkMode: &MediaTypeDarkMode{
				IconURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723973960/media/gladly_1723973958.png",
				LogoURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723974024/media/gladly_1723974023.jpg",
			},
			Regular: &MediaTypeRegular{
				IconURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723973960/media/gladly_1723973958.png",
				LogoURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723974024/media/gladly_1723974023.jpg",
			},
		},
		Metadata: &ProviderMetadata{
			Input: []MetadataItemInput{
				{
					Name:        "workspace",
					DisplayName: "Organization",
				},
			},
		},
	})
	// Gladly qa environment
	SetInfo(GladlyQA, ProviderInfo{
		DisplayName: "GladlyQA",
		AuthType:    Basic,
		BaseURL:     "https://{{.workspace}}.gladly.qa/api",
		Support: Support{
			BulkWrite: BulkWriteSupport{
				Insert: false,
				Update: false,
				Upsert: false,
				Delete: false,
			},
			Proxy:     false,
			Read:      false,
			Subscribe: false,
			Write:     false,
		},
		Media: &Media{
			DarkMode: &MediaTypeDarkMode{
				IconURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723973960/media/gladly_1723973958.png",
				LogoURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723974024/media/gladly_1723974023.jpg",
			},
			Regular: &MediaTypeRegular{
				IconURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723973960/media/gladly_1723973958.png",
				LogoURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1723974024/media/gladly_1723974023.jpg",
			},
		},
		Metadata: &ProviderMetadata{
			Input: []MetadataItemInput{
				{
					Name:        "workspace",
					DisplayName: "Organization",
				},
			},
		},
	})
}
