package service

import (
	"amocrm/internal/brokers"
	"amocrm/pkg/amoClient"
	pena_social_auth "amocrm/pkg/pena-social-auth"
	"go.uber.org/zap"
	"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/dal"
)

type Deps struct {
	Repository       *dal.AmoDal
	Logger           *zap.Logger
	SocialAuthClient *pena_social_auth.Client
	AmoClient        *amoClient.Amo
	Producer         *brokers.Producer
}

type Service struct {
	repository       *dal.AmoDal
	logger           *zap.Logger
	socialAuthClient *pena_social_auth.Client
	amoClient        *amoClient.Amo
	producer         *brokers.Producer
}

func NewService(deps Deps) *Service {
	return &Service{
		repository:       deps.Repository,
		logger:           deps.Logger,
		socialAuthClient: deps.SocialAuthClient,
		amoClient:        deps.AmoClient,
		producer:         deps.Producer,
	}
}
