@@ -59,7 +59,6 @@ import * as campaignAssessmentParticipationRepository from '../../../src/prescri
59
59
import * as campaignAssessmentParticipationResultRepository from '../../../src/prescription/campaign-participation/infrastructure/repositories/campaign-assessment-participation-result-repository.js' ;
60
60
import * as campaignParticipationBCRepository from '../../../src/prescription/campaign-participation/infrastructure/repositories/campaign-participation-repository.js' ;
61
61
import * as campaignProfileRepository from '../../../src/prescription/campaign-participation/infrastructure/repositories/campaign-profile-repository.js' ;
62
- import * as poleEmploiSendingRepository from '../../../src/prescription/campaign-participation/infrastructure/repositories/pole-emploi-sending-repository.js' ;
63
62
import * as supOrganizationLearnerRepository from '../../../src/prescription/learner-management/infrastructure/repositories/sup-organization-learner-repository.js' ;
64
63
import * as organizationLearnerActivityRepository from '../../../src/prescription/organization-learner/infrastructure/repositories/organization-learner-activity-repository.js' ;
65
64
import * as activityAnswerRepository from '../../../src/school/infrastructure/repositories/activity-answer-repository.js' ;
@@ -109,6 +108,8 @@ import * as resetPasswordService from '../../domain/services/reset-password-serv
109
108
import * as scoringCertificationService from '../../domain/services/scoring/scoring-certification-service.js' ;
110
109
import * as sessionPublicationService from '../../domain/services/session-publication-service.js' ;
111
110
import * as verifyCertificateCodeService from '../../domain/services/verify-certificate-code-service.js' ;
111
+ import * as disabledPoleEmploiNotifier from '../../infrastructure/externals/pole-emploi/disabled-pole-emploi-notifier.js' ;
112
+ import * as poleEmploiNotifier from '../../infrastructure/externals/pole-emploi/pole-emploi-notifier.js' ;
112
113
import * as accountRecoveryDemandRepository from '../../infrastructure/repositories/account-recovery-demand-repository.js' ;
113
114
import * as attachableTargetProfileRepository from '../../infrastructure/repositories/attachable-target-profiles-repository.js' ;
114
115
import * as badgeAcquisitionRepository from '../../infrastructure/repositories/badge-acquisition-repository.js' ;
@@ -150,6 +151,7 @@ import * as organizationMemberIdentityRepository from '../../infrastructure/repo
150
151
import * as organizationTagRepository from '../../infrastructure/repositories/organization-tag-repository.js' ;
151
152
import * as participantResultRepository from '../../infrastructure/repositories/participant-result-repository.js' ;
152
153
import { participantResultsSharedRepository } from '../../infrastructure/repositories/participant-results-shared-repository.js' ;
154
+ import * as poleEmploiSendingRepository from '../../infrastructure/repositories/pole-emploi-sending-repository.js' ;
153
155
import * as resetPasswordDemandRepository from '../../infrastructure/repositories/reset-password-demands-repository.js' ;
154
156
import * as scoCertificationCandidateRepository from '../../infrastructure/repositories/sco-certification-candidate-repository.js' ;
155
157
import * as studentRepository from '../../infrastructure/repositories/student-repository.js' ;
@@ -171,8 +173,17 @@ import * as userReconciliationService from '../services/user-reconciliation-serv
171
173
import * as organizationCreationValidator from '../validators/organization-creation-validator.js' ;
172
174
import * as organizationValidator from '../validators/organization-with-tags-and-target-profiles-script.js' ;
173
175
import { findTargetProfileOrganizations as findPaginatedFilteredTargetProfileOrganizations } from './find-paginated-filtered-target-profile-organizations.js' ;
176
+
174
177
const oidcAuthenticationServiceRegistry = new OidcAuthenticationServiceRegistry ( { oidcProviderRepository } ) ;
175
178
179
+ function requirePoleEmploiNotifier ( ) {
180
+ if ( config . poleEmploi . pushEnabled ) {
181
+ return poleEmploiNotifier ;
182
+ } else {
183
+ return disabledPoleEmploiNotifier ;
184
+ }
185
+ }
186
+
176
187
/**
177
188
* Using {@link https://jsdoc.app/tags-type "Closure Compiler's syntax"} to document injected dependencies
178
189
*
@@ -302,6 +313,7 @@ const dependencies = {
302
313
pickChallengeService,
303
314
pixAuthenticationService,
304
315
placementProfileService,
316
+ poleEmploiNotifier : requirePoleEmploiNotifier ( ) ,
305
317
poleEmploiSendingRepository,
306
318
refreshTokenService,
307
319
resetPasswordDemandRepository,
0 commit comments