/**
 * Project YooLearn
 * File skills.selector
 * Path app/redux/skills
 * Created by BRICE ZELE
 * Date: 13/09/2021
 */
import {createSelector} from "reselect";

const selectInsuranceListReducer = (state) => state.insuranceList;
const selectSubscribeInsuranceReducer = (state) => state.subscribeInsurance;
const selectInsurancePrimeAmountReducer = (state) => state.insurancePrimeAmount;
const selectUploadInsuranceImagesReducerReducer = (state) => state.uploadInsuranceImagesReducer;
const selectGetSubscriptionListReducerReducer = (state) => state.subscriptionList;
const selectActivatePaySubscriptionReducer = (state) => state.activatePaySubscription;
const selectStopSubscriptionReducer = (state) => state.stopSubscription;
const selectAddBeneficiaryToSubscriptionReducer = (state) => state.addBeneficiaryToSubscription;
const selectGetUserByIdQRCodeReducer = (state) => state.getUserByIdQRCodeReducer;
const selectGetUserByNameOrNumberReducer = (state) => state.getUserByNameOrNumberReducer;
const selectGetDrugAppareilReducer = (state) => state.getDrugAppareilReducer;
const selectAddDrugReducer = (state) => state.addDrugReducer;
const selectGetProviderClassReducer = (state) => state.getProviderClassReducer;
const selectGetNetworkActReducer = (state) => state.getNetworkActReducer;
const selectCreateConsultationReducer = (state) => state.createConsultationReducer;
const selectGetAmountConsultationReducer = (state) => state.getAmountConsultationReducer;
const selectGetConsultationReducer = (state) => state.getConsultationReducer;
const selectAcceptRefuseConsultationReducer = (state) => state.acceptOrRejectConsultationReducer;
const selectExecutionPrescriptionReducerReducer = (state) => state.executionPrescriptionReducer;
const selectModifyPrescriptionReducer = (state) => state.modifyPrescriptionReducer;
const selectDemandeAutorisationSoinReducer = (state) => state.demandeAutorisationSoinReducer;
const selectDeleteBeneficiaryeducerReducer = (state) => state.deleteBeneficiaryeducer;
const selectFacturerSoinReducer = (state) => state.facturerSoinReducer;
const selectCheckInsuranceCoverageAmountReducer = (state) => state.checkInsuranceCoverageAmountReducer;
const selectGetExclusionReducer = (state) => state.getExclusionReducer;

export const selectInsuranceList = createSelector(
    [selectInsuranceListReducer],
    (insuranceList) => insuranceList
);

export const selectSubscribeInsurance = createSelector(
    [selectSubscribeInsuranceReducer],
    (subscribeInsurance) => subscribeInsurance
);

export const selectInsurancePrimeAmount = createSelector(
    [selectInsurancePrimeAmountReducer],
    (insurancePrimeAmount) => insurancePrimeAmount
);

export const selectUploadInsuranceImages = createSelector(
    [selectUploadInsuranceImagesReducerReducer],
    (uploadInsuranceImagesReducer) => uploadInsuranceImagesReducer
);

export const selectSubscriptionList = createSelector(
    [selectGetSubscriptionListReducerReducer],
    (subscriptionList) => subscriptionList
);

export const selectAddBeneficiaryToSubscription = createSelector(
    [selectAddBeneficiaryToSubscriptionReducer],
    (addBeneficiaryToSubscription) => addBeneficiaryToSubscription
);

export const selectActivatePaySubscription = createSelector(
    [selectActivatePaySubscriptionReducer],
    (activatePaySubscription) => activatePaySubscription
);

export const selectStopSubscription = createSelector(
    [selectStopSubscriptionReducer],
    (stopSubscription) => stopSubscription
);

export const selectGetUserByIdQRCode = createSelector(
    [selectGetUserByIdQRCodeReducer],
    (getUserByIdQRCode) => getUserByIdQRCode
);
export const selectGetUserByNameOrNumber = createSelector(
    [selectGetUserByNameOrNumberReducer],
    (getUserByNameOrNumber) => getUserByNameOrNumber
);
export const selectGetDrugAppareil = createSelector(
    [selectGetDrugAppareilReducer],
    (getDrugAppareil) => getDrugAppareil
);
export const selectAddDrug = createSelector(
    [selectAddDrugReducer],
    (addDrugReducer) => addDrugReducer
);
export const selectGetProviderClass = createSelector(
    [selectGetProviderClassReducer],
    (getProviderClassReducer) => getProviderClassReducer
);
export const selectCreateConsultation = createSelector(
    [selectCreateConsultationReducer],
    (createConsultationReducer) => createConsultationReducer
);
export const selectGetNetworkAct = createSelector(
    [selectGetNetworkActReducer],
    (getNetworkActReducer) => getNetworkActReducer
);
export const selectGetAmountConsultation = createSelector(
    [selectGetAmountConsultationReducer],
    (getAmountConsultationReducer) => getAmountConsultationReducer
);
export const selectGetConsultation = createSelector(
    [selectGetConsultationReducer],
    (selectGetConsultation) => selectGetConsultation
);
export const selectAcceptRefuseConsultation = createSelector(
    [selectAcceptRefuseConsultationReducer],
    (acceptRejectConsultation) => acceptRejectConsultation
);
export const selectExecutionPrescription = createSelector(
    [selectExecutionPrescriptionReducerReducer],
    (executionPrescription) => executionPrescription
);

export const selectModifyPrescription = createSelector(
    [selectModifyPrescriptionReducer],
    (modifyPrescriptionReducer) => modifyPrescriptionReducer
);

export const selectDemandeAutorisationSoin = createSelector(
    [selectDemandeAutorisationSoinReducer],
    (demandeAutorisationSoin) => demandeAutorisationSoin
);

export const selectDeleteBeneficiary = createSelector(
    [selectDeleteBeneficiaryeducerReducer],
    (deleteBeneficiary) => deleteBeneficiary
);

export const selectFacturerSoin = createSelector(
    [selectFacturerSoinReducer],
    (facturerSoin) => facturerSoin
);

export const selectCheckInsuranceCoverageAmount = createSelector(
    [selectCheckInsuranceCoverageAmountReducer],
    (checkInsuranceCoverageAmount) => checkInsuranceCoverageAmount
);

export const selectGetExclusion = createSelector(
    [selectGetExclusionReducer],
    (getExclusion) => getExclusion
);