Fixes https://github.com/chatwoot/chatwoot/issues/5968 We will not support custom payload in V1.
73 lines
1.3 KiB
JavaScript
73 lines
1.3 KiB
JavaScript
export const MACRO_ACTION_TYPES = [
|
|
{
|
|
key: 'assign_team',
|
|
label: 'ASSIGN_TEAM',
|
|
inputType: 'search_select',
|
|
},
|
|
{
|
|
key: 'assign_agent',
|
|
label: 'ASSIGN_AGENT',
|
|
inputType: 'search_select',
|
|
},
|
|
{
|
|
key: 'add_label',
|
|
label: 'ADD_LABEL',
|
|
inputType: 'multi_select',
|
|
},
|
|
{
|
|
key: 'remove_label',
|
|
label: 'REMOVE_LABEL',
|
|
inputType: 'multi_select',
|
|
},
|
|
{
|
|
key: 'remove_assigned_team',
|
|
label: 'REMOVE_ASSIGNED_TEAM',
|
|
inputType: null,
|
|
},
|
|
{
|
|
key: 'send_email_transcript',
|
|
label: 'SEND_EMAIL_TRANSCRIPT',
|
|
inputType: 'email',
|
|
},
|
|
{
|
|
key: 'mute_conversation',
|
|
label: 'MUTE_CONVERSATION',
|
|
inputType: null,
|
|
},
|
|
{
|
|
key: 'snooze_conversation',
|
|
label: 'SNOOZE_CONVERSATION',
|
|
inputType: null,
|
|
},
|
|
{
|
|
key: 'resolve_conversation',
|
|
label: 'RESOLVE_CONVERSATION',
|
|
inputType: null,
|
|
},
|
|
{
|
|
key: 'send_attachment',
|
|
label: 'SEND_ATTACHMENT',
|
|
inputType: 'attachment',
|
|
},
|
|
{
|
|
key: 'send_message',
|
|
label: 'SEND_MESSAGE',
|
|
inputType: 'textarea',
|
|
},
|
|
{
|
|
key: 'add_private_note',
|
|
label: 'ADD_PRIVATE_NOTE',
|
|
inputType: 'textarea',
|
|
},
|
|
{
|
|
key: 'change_priority',
|
|
label: 'CHANGE_PRIORITY',
|
|
inputType: 'search_select',
|
|
},
|
|
{
|
|
key: 'send_webhook_event',
|
|
label: 'SEND_WEBHOOK_EVENT',
|
|
inputType: 'url',
|
|
},
|
|
];
|