feat: Adds automation view for assigning an agent (#6131)

* feat: Adds automation view for assigning an agent

Co-authored-by: Tejaswini Chile <tejaswini@chatwoot.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese
2023-01-10 11:35:56 +05:30
committed by GitHub
parent 28c8023bad
commit add33d032c
7 changed files with 39 additions and 10 deletions

View File

@@ -187,7 +187,7 @@ export default {
],
actions: [
{
action_name: 'assign_team',
action_name: 'assign_agent',
action_params: [],
},
],

View File

@@ -30,6 +30,11 @@ export const AUTOMATIONS = {
},
],
actions: [
{
key: 'assign_agent',
name: 'Assign to agent',
attributeI18nKey: 'ASSIGN_AGENT',
},
{
key: 'assign_team',
name: 'Assign a team',
@@ -129,6 +134,11 @@ export const AUTOMATIONS = {
},
],
actions: [
{
key: 'assign_agent',
name: 'Assign to agent',
attributeI18nKey: 'ASSIGN_AGENT',
},
{
key: 'assign_team',
name: 'Assign a team',
@@ -241,6 +251,11 @@ export const AUTOMATIONS = {
},
],
actions: [
{
key: 'assign_agent',
name: 'Assign to agent',
attributeI18nKey: 'ASSIGN_AGENT',
},
{
key: 'assign_team',
name: 'Assign a team',
@@ -311,6 +326,11 @@ export const AUTOMATION_RULE_EVENTS = [
];
export const AUTOMATION_ACTION_TYPES = [
{
key: 'assign_agent',
label: 'Assign to agent',
inputType: 'search_select',
},
{
key: 'assign_team',
label: 'Assign a team',