Maintenance Order assignment to team
Endpoint: POST {{host}}/maintenance/orders/{{id}}/actions/attach-team/{{idTeam}}
Alternative for assignment to team connected for equipment
POST {{host}}/maintenance/orders/{{id}}/actions/attach-team
Input Parameters: assignedBy - user who assigns MO to team.

Steps:
If idTeam is provided, MO is assigned to this team.
If Setting parameter
automatic_assignment_to_responsible_team
andallow_maintenance_planning_mode_by_teams
are enabled and idTeam is not provided, team is used from relation between Equpiment and Responsible TamAssigned by user is updated in MO
MO Status is set to Assigned to Team - if status is not Assigned to user. In this case, status is not changed
Creates email notification for Assigned Maintenance Order to Team