Skip to content

Commit

Permalink
boyscout: spacing/reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelfaure committed Oct 10, 2023
1 parent 6cfc951 commit 0657b7c
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions config/datapass_webhooks_entreprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ development: &development
send_application: &send_application
emails:
- id: '11'

- id: '12'
when: 'in 14 days'

notify: &notify {}
review_application: &review_application {}
refuse_application: &refuse_application
emails:
- id: '51'
condition_on_authorization: 'demandeur_first_name_is_run?'

- id: '52'
condition_on_authorization: 'demandeur_last_name_is_run?'
to:
- 'authorization_request.contact_metier'
cc:
- 'authorization_request.contact_technique'
- 'authorization_request.demandeur'

validate_application: &validate_application {}

create: *created
Expand All @@ -39,24 +43,36 @@ production: &production
emails:
- id: '3098214' # embarquement_brouillon_en_attente
when: 'in 14 days'

updated: &updated {}
team_member_updated: &team_member_updated {}
send_application: &send_application
emails:
- id: '3098391' # demande_recue

- id: '3098436' # reassurance_demande_recue
when: 'in 14 days'

notify: &notify {}
review_application: &review_application
emails:
- id: '3098236' # embarquement_modifications_demandees

- id: '3098155' # embarquement_relance_modifications_demandees
when: 'in 14 days'

refuse_application: &refuse_application
emails:
- id: '3084277' # embarquement_demande_refusee

validate_application: &validate_application
emails:
- id: '3251161' # enquete_satisfaction
when: 'in 30 days'
condition_on_authorization: 'not_editor_authorization_request'
to:
- 'authorization_request.demandeur'

- id: '4254728' # embarquement_valide_to_editeur
condition_on_authorization: 'editor_authorization_request'
to:
Expand All @@ -68,17 +84,18 @@ production: &production
- id: '3090261' # embarquement_valide_to_demandeur_tech_metier
condition_on_authorization: 'not_editor_and_all_contacts_have_the_same_email?'


- id: '3090303' # embarquement_valide_to_demandeur_seulement
condition_on_authorization: 'not_editor_and_all_contacts_have_different_emails?'
to:
- 'authorization_request.demandeur'

- id: '3090321' # embarquement_valide_to_tech_cc_metier
condition_on_authorization: 'not_editor_and_all_contacts_have_different_emails?'
to:
- 'authorization_request.contact_technique'
cc:
- 'authorization_request.demandeur'

- id: '3084241' # embarquement_valide_to_metier_cc_demandeur_tech
condition_on_authorization: 'not_editor_and_all_contacts_have_different_emails?'
to:
Expand All @@ -87,35 +104,29 @@ production: &production
- 'authorization_request.demandeur'
- 'authorization_request.contact_technique'

- id: '3084241' # embarquement_valide_to_metier_cc_demandeur_tech
condition_on_authorization: 'not_editor_and_user_is_contact_technique_and_not_contact_metier?'
to:
- 'authorization_request.contact_metier'
cc:
- 'authorization_request.demandeur'

- id: '3090303' # embarquement_valide_to_demandeur_not_tech
condition_on_authorization: 'not_editor_and_user_is_contact_metier_and_not_contact_technique?'
to:
- 'authorization_request.demandeur'

- id: '3090321' # embarquement_demande_to_tech_cc_demandeur_metier
condition_on_authorization: 'not_editor_and_user_is_contact_metier_and_not_contact_technique?'
to:
- 'authorization_request.contact_technique'
cc:
- 'authorization_request.demandeur'


- id: '3090261' # embarquement_valide_to_demandeur_tech_not_metier
condition_on_authorization: 'not_editor_and_user_is_contact_technique_and_not_contact_metier?'
to:
- 'authorization_request.demandeur'
- id: '3084241' # embarquement_valide_to_metier_cc_demandeur_tech
condition_on_authorization: 'not_editor_and_user_is_contact_technique_and_not_contact_metier?'
to:
- 'authorization_request.contact_metier'
cc:
- 'authorization_request.demandeur'

- id: '3251161' # enquete_satisfaction
when: 'in 30 days'
condition_on_authorization: 'not_editor_authorization_request'
to:
- 'authorization_request.demandeur'

create: *created
update: *updated
Expand Down

0 comments on commit 0657b7c

Please sign in to comment.