2020-12-25 07:45:01 +00:00
|
|
|
export const MESSAGE_STATUS = {
|
|
|
|
FAILED: 'failed',
|
|
|
|
SENT: 'sent',
|
|
|
|
PROGRESS: 'progress',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const MESSAGE_TYPE = {
|
|
|
|
INCOMING: 0,
|
|
|
|
OUTGOING: 1,
|
|
|
|
ACTIVITY: 2,
|
|
|
|
TEMPLATE: 3,
|
|
|
|
};
|
2022-11-03 20:47:24 +00:00
|
|
|
|
|
|
|
export const CONVERSATION_STATUS = {
|
|
|
|
OPEN: 'open',
|
|
|
|
RESOLVED: 'resolved',
|
|
|
|
PENDING: 'pending',
|
|
|
|
SNOOZED: 'snoozed',
|
|
|
|
};
|
2021-04-15 16:58:19 +00:00
|
|
|
// Size in mega bytes
|
|
|
|
export const MAXIMUM_FILE_UPLOAD_SIZE = 40;
|
2022-08-23 13:05:31 +00:00
|
|
|
export const MAXIMUM_FILE_UPLOAD_SIZE_TWILIO_SMS_CHANNEL = 5;
|
2021-06-22 07:31:19 +00:00
|
|
|
|
2021-12-20 18:20:37 +00:00
|
|
|
export const ALLOWED_FILE_TYPES =
|
|
|
|
'image/*,' +
|
|
|
|
'audio/*,' +
|
|
|
|
'video/*,' +
|
|
|
|
'.3gpp,' +
|
|
|
|
'text/csv, text/plain, application/json, application/pdf, text/rtf,' +
|
|
|
|
'application/zip, application/x-7z-compressed application/vnd.rar application/x-tar,' +
|
|
|
|
'application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.oasis.opendocument.text,' +
|
|
|
|
'application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,' +
|
|
|
|
'application/vnd.openxmlformats-officedocument.wordprocessingml.document,';
|
|
|
|
|
2022-08-23 13:05:31 +00:00
|
|
|
export const ALLOWED_FILE_TYPES_FOR_TWILIO_WHATSAPP =
|
|
|
|
'image/png, image/jpeg,' +
|
|
|
|
'audio/mpeg, audio/opus, audio/ogg, audio/amr,' +
|
|
|
|
'video/mp4,' +
|
|
|
|
'application/pdf,';
|
|
|
|
|
2021-06-22 07:31:19 +00:00
|
|
|
export const CSAT_RATINGS = [
|
|
|
|
{
|
|
|
|
key: 'disappointed',
|
|
|
|
emoji: '😞',
|
2021-06-25 06:30:49 +00:00
|
|
|
value: 1,
|
2021-07-14 04:50:06 +00:00
|
|
|
color: '#FDAD2A',
|
2021-06-22 07:31:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'expressionless',
|
|
|
|
emoji: '😑',
|
2021-06-25 06:30:49 +00:00
|
|
|
value: 2,
|
2021-07-14 04:50:06 +00:00
|
|
|
color: '#FFC532',
|
2021-06-22 07:31:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'neutral',
|
|
|
|
emoji: '😐',
|
2021-06-25 06:30:49 +00:00
|
|
|
value: 3,
|
2021-07-14 04:50:06 +00:00
|
|
|
color: '#FCEC56',
|
2021-06-22 07:31:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'grinning',
|
|
|
|
emoji: '😀',
|
2021-06-25 06:30:49 +00:00
|
|
|
value: 4,
|
2021-07-14 04:50:06 +00:00
|
|
|
color: '#6FD86F',
|
2021-06-22 07:31:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'smiling',
|
|
|
|
emoji: '😍',
|
2021-06-25 06:30:49 +00:00
|
|
|
value: 5,
|
2021-07-14 04:50:06 +00:00
|
|
|
color: '#44CE4B',
|
2021-06-22 07:31:19 +00:00
|
|
|
},
|
|
|
|
];
|