From 68f02e06b78fcbf14a70f79865495ec5fd612acf Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 5 Dec 2024 14:26:31 +0530 Subject: [PATCH] feat: add fixtures for IG --- .../message/fixtures/instagramConversation.js | 1151 +++++++++++++++++ 1 file changed, 1151 insertions(+) create mode 100644 app/javascript/dashboard/components-next/message/fixtures/instagramConversation.js diff --git a/app/javascript/dashboard/components-next/message/fixtures/instagramConversation.js b/app/javascript/dashboard/components-next/message/fixtures/instagramConversation.js new file mode 100644 index 000000000..362bf8aa9 --- /dev/null +++ b/app/javascript/dashboard/components-next/message/fixtures/instagramConversation.js @@ -0,0 +1,1151 @@ +import camelcaseKeys from 'camelcase-keys'; + +export default camelcaseKeys( + [ + { + id: 26433202, + content: 'Hi, Jane here (testing)', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765935, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAxOTk2NDIwNjc5NDQ5NzE1NDMxNzMzMTQ2NDE5MgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433214, + content: 'Hey Jane, I am Jane', + inbox_id: 27355, + conversation_id: 26942, + message_type: 1, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765959, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDQzOTQ5ODg4NzY4NTUxMTc5Mzk5MjUzMTk2OAZDZD', + sender: { + id: 1, + name: 'Jane Doe', + available_name: 'Jane Doe', + avatar_url: + 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + type: 'user', + availability_status: 'online', + thumbnail: 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + }, + }, + { + id: 26433221, + content: 'Hi', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765971, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDYzMDMyMTgyMjA1MTgxMDYwOTM4OTg5NTY4MAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433223, + content: 'Hi', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765973, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDY1MDUzNTAwNzg5MTI3NDUxMzk1OTA5MjIyNAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433224, + content: 'Test', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765975, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDY3ODc5NTIzNTM0NDc1NjgwOTkzOTI4ODA2NAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433229, + content: 'One', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765976, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDcyOTA1Mzg2OTE4ODkyNDM5OTc2NTQyMjA4MAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433230, + content: 'Two', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765978, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDc3MDQ1NzU4NjI2MjM2NTQ4ODM2NzUzNDA4MAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433231, + content: 'Three', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765979, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDc4OTQ2MTQ0MDQ1Mzg0NTE0MjE1MTg4ODg5NgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433232, + content: 'Four', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765981, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDgxNTIxMDAzMzAyMTIyNzQ0MDQyMjI1NjY0MAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433234, + content: 'Five', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692765982, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjAyMDgzOTc4MzYwNDg4NDYwMjU4NzY3Mzc4ODQxNgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26433277, + content: 'Conversation was marked resolved by Jane Doe', + inbox_id: 27355, + conversation_id: 26942, + message_type: 2, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692766051, + private: false, + source_id: null, + }, + { + id: 26434177, + content: 'Hi, itโ€™s me again', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692767416, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjA0NzI5NjY0ODY1MDg1Nzg1MDAxMDk4MTEwNTY2NAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26434185, + content: 'Hi', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692767429, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjA0NzUxNjQ1NDAzOTYwMTYwNDk5ODcyMzUzNDg0OAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26434188, + content: 'It', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692767431, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjA0NzUyODEzODkyNjcyMDkxMTUwMzM4OTYyMjI3MgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26434190, + content: 'Is', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692767432, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjA0NzU0MzY1ODQzMDc2NDU0MDM4MTA5Nzg4NTY5NgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26434193, + content: 'Me', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692767434, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjA0NzU1OTg2MjEyNDU0NTg2MzE0NjA3NTU4NjU2MAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26434195, + content: 'Again', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692767435, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjA0NzU3Nzk3MzE1NjMyNDE3NTI1NzU2MTcyNjk3NgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 26434914, + content: 'Conversation was marked resolved by Jane Doe', + inbox_id: 27355, + conversation_id: 26942, + message_type: 2, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692768629, + private: false, + source_id: null, + }, + { + id: 26436726, + content: '๐Ÿ˜', + inbox_id: 27355, + conversation_id: 26942, + message_type: 1, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1692770672, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTIyNjEwNzM4NDA4NTgwMzUxNzY3OTYxNTM4MDI5MTU4NAZDZD', + sender: { + id: 10, + name: 'Sojan', + available_name: 'Sojan', + avatar_url: + 'https://app.chatwoot.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4a2c0c8e787a381c0a809905e7cb172d5a40f589/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2hOeVpYTnBlbVZmZEc5ZlptbHNiRnNIYVFINk1BPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--533c3ad7218e24c4b0e8f8959dc1953ce1d279b9/73185.jpeg', + type: 'user', + availability_status: 'offline', + thumbnail: + 'https://app.chatwoot.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4a2c0c8e787a381c0a809905e7cb172d5a40f589/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2hOeVpYTnBlbVZmZEc5ZlptbHNiRnNIYVFINk1BPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--533c3ad7218e24c4b0e8f8959dc1953ce1d279b9/73185.jpeg', + }, + }, + { + id: 27405598, + content: 'Guess what? I am back!', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694016247, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI0OTA4NDE2Mjk1NDQ4MTc3NzQyMDMxNjE3NjI4NTY5NgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 27405678, + content: null, + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694016327, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI0OTA4NTYwNDk1OTA2MzI4MDc4NjI2MDE5OTczNTI5NgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 27405690, + content: 'Some pictures from Thailand', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694016341, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI0OTA4NTg3MTk4NzkzMjM4NTc5Njk2Mjk4MzYwODMyMAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 27406085, + content: 'byeeee', + inbox_id: 27355, + conversation_id: 26942, + message_type: 1, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694016698, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI0OTA5MjUxODA3NzE2MDgxOTE5NDkwOTM0NTk3MjIyNAZDZD', + sender: { + id: 1, + name: 'Jane Doe', + available_name: 'Jane Doe', + avatar_url: + 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + type: 'user', + availability_status: 'online', + thumbnail: 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + }, + }, + { + id: 27406088, + content: 'Conversation was marked resolved by Jane Doe', + inbox_id: 27355, + conversation_id: 26942, + message_type: 2, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694016701, + private: false, + source_id: null, + }, + { + id: 27406404, + content: null, + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694017101, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI0OTA5OTkxNDU3Mzc0MDA2NTA4ODY0OTAzNzg3MzE1MgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + attachments: [ + { + id: 2201627, + message_id: 27406404, + file_type: 'image', + account_id: 1, + extension: null, + data_url: 'https://random.imagecdn.app/500/500', + thumb_url: 'https://random.imagecdn.app/500/500', + file_size: 141072, + width: 1170, + height: 1560, + }, + ], + }, + { + id: 27408430, + content: 'Conversation was marked resolved by Jane Doe', + inbox_id: 27355, + conversation_id: 26942, + message_type: 2, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694019236, + private: false, + source_id: null, + }, + { + id: 27788386, + content: 'Me again', + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694519468, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI1ODM2Njg4MTgxMDMyNzQxODM4OTc5NjEzMDY1MjE2MAZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 27788409, + content: "Yeah, it's you again", + inbox_id: 27355, + conversation_id: 26942, + message_type: 1, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694519479, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI1ODM2NzE5MzQ2NTQxMjIxMjU2NjA1NjUwNzUzOTQ1NgZDZD', + sender: { + id: 1, + name: 'Jane Doe', + available_name: 'Jane Doe', + avatar_url: + 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + type: 'user', + availability_status: 'online', + thumbnail: 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + }, + }, + { + id: 27788443, + content: null, + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694519516, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI1ODM2NzgxMjMzMjI3NzY2MjM5NjAxMDE0NDQ2NDg5NgZDZD', + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + attachments: [ + { + id: 2224875, + message_id: 27788443, + file_type: 'image', + account_id: 1, + extension: null, + data_url: 'https://random.imagecdn.app/500/500', + thumb_url: 'https://random.imagecdn.app/500/500', + file_size: 236151, + width: 1170, + height: 1560, + }, + ], + }, + { + id: 27788464, + content: 'Try this', + inbox_id: 27355, + conversation_id: 26942, + message_type: 1, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694519542, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI1ODM2ODQ3ODA4Mzg0OTAxODU2ODAwMjkwNzQwNjMzNgZDZD', + sender: { + id: 1, + name: 'Jane Doe', + available_name: 'Jane Doe', + avatar_url: + 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + type: 'user', + availability_status: 'online', + thumbnail: 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + }, + attachments: [ + { + id: 2224876, + message_id: 27788464, + file_type: 'image', + account_id: 1, + extension: null, + data_url: + 'https://app.chatwoot.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBL2lvYnc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--c7278d793ca8de35ea7a824cfbb82ffb630b410a/facebook.png', + thumb_url: + 'https://app.chatwoot.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBL2lvYnc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--c7278d793ca8de35ea7a824cfbb82ffb630b410a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--624b3ceb3fdf42c4b07c7818563fe60603b6095b/facebook.png', + file_size: 256, + width: 24, + height: 24, + }, + ], + }, + { + id: 27788479, + content: null, + inbox_id: 27355, + conversation_id: 26942, + message_type: 1, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694519551, + private: false, + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTI1ODM2ODQ2ODAxNjAwMzQ4NDc2Mjg3NzUzNTk3NzQ3MgZDZD', + attachments: [ + { + id: 2224877, + message_id: 27788479, + file_type: 'image', + account_id: 1, + extension: null, + data_url: + 'https://app.chatwoot.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBL21vYnc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--1ca7bc279638b97f4eec6eb86452d5a982a84c04/image-1478688519564287', + thumb_url: + 'https://app.chatwoot.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBL21vYnc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--1ca7bc279638b97f4eec6eb86452d5a982a84c04/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--624b3ceb3fdf42c4b07c7818563fe60603b6095b/image-1478688519564287', + file_size: 209, + width: 24, + height: 24, + }, + ], + }, + { + id: 27803044, + content: 'Assigned to Jane Doe by Pranav Raj', + inbox_id: 27355, + conversation_id: 26942, + message_type: 2, + content_type: 'text', + status: 'sent', + content_attributes: {}, + created_at: 1694530879, + private: false, + source_id: null, + }, + { + id: 28252665, + content: 'Conversation was marked resolved by Jane Doe', + account_id: 1, + inbox_id: 27355, + conversation_id: 26942, + message_type: 2, + created_at: 1695109325, + updated_at: '2023-09-19T07:42:06.172Z', + private: false, + status: 'sent', + source_id: null, + content_type: 'text', + content_attributes: {}, + sender_type: null, + sender_id: null, + external_source_ids: { + slack: 'cw-origin-1695109326.110599', + }, + additional_attributes: {}, + processed_message_content: 'Conversation was marked resolved by Jane Doe', + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1695109325, + contact_inbox: { + source_id: '6448268745221611', + }, + }, + }, + { + message_type: 0, + content_type: 'text', + processed_message_content: 'Hi', + id: 89088319, + content: 'Hi', + account_id: 1, + inbox_id: 27355, + conversation_id: 26942, + created_at: 1733387681, + updated_at: '2024-12-05T08:34:42.693Z', + private: false, + status: 'sent', + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTk3NTM1ODkwMDgwNTE5MTc3ODA4Nzg2Njg0Mzc5MTM2MAZDZD', + content_attributes: { + in_reply_to_external_id: null, + }, + sender_type: 'Contact', + sender_id: 70222869, + external_source_ids: { + slack: 'cw-origin-1733387682.631519', + }, + additional_attributes: {}, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1733387681, + contact_inbox: { + source_id: '6448268745221611', + }, + }, + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + previous_changes: { + updated_at: ['2024-12-05T08:34:41.463Z', '2024-12-05T08:34:42.693Z'], + external_source_ids: [ + {}, + { + slack: 'cw-origin-1733387682.631519', + }, + ], + }, + }, + { + message_type: 1, + content_type: 'text', + processed_message_content: 'Just testing here, ignore', + id: 89088510, + content: 'Just testing here, ignore', + account_id: 1, + inbox_id: 27355, + conversation_id: 26942, + created_at: 1733387731, + updated_at: '2024-12-05T08:35:32.207Z', + private: true, + status: 'sent', + source_id: null, + content_attributes: {}, + sender_type: 'User', + sender_id: 1, + external_source_ids: { + slack: 'cw-origin-1733387732.139069', + }, + additional_attributes: {}, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1733387731, + contact_inbox: { + source_id: '6448268745221611', + }, + }, + sender: { + id: 1, + name: 'Jane Doe', + available_name: 'Jane Doe', + avatar_url: + 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + type: 'user', + availability_status: null, + thumbnail: 'https://xsgames.co/randomusers/assets/avatars/pixel/22.jpg', + }, + previous_changes: { + updated_at: ['2024-12-05T08:35:31.809Z', '2024-12-05T08:35:32.207Z'], + external_source_ids: [ + {}, + { + slack: 'cw-origin-1733387732.139069', + }, + ], + }, + }, + { + id: 89088542, + content: null, + account_id: 1, + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + created_at: 1733387740, + updated_at: '2024-12-05T08:35:40.796Z', + private: false, + status: 'sent', + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTk3NTM2MDAyMjg0NTc1ODQ0NzY0NDcwNDU3NTA2MjAxNgZDZD', + content_type: 'text', + content_attributes: { + in_reply_to_external_id: null, + }, + sender_type: 'Contact', + sender_id: 70222869, + external_source_ids: {}, + additional_attributes: {}, + processed_message_content: null, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 1, + last_activity_at: 1733387740, + contact_inbox: { + source_id: '6448268745221611', + }, + }, + attachments: [ + { + id: 7141485, + message_id: 89088542, + file_type: 'image', + account_id: 1, + extension: null, + data_url: 'https://random.imagecdn.app/500/500', + thumb_url: 'https://random.imagecdn.app/500/500', + file_size: 63957, + width: null, + height: null, + }, + { + id: 7141486, + message_id: 89088542, + file_type: 'image', + account_id: 1, + extension: null, + data_url: 'https://random.imagecdn.app/500/500', + thumb_url: 'https://random.imagecdn.app/500/500', + file_size: 43486, + width: null, + height: null, + }, + ], + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + { + id: 89088799, + content: null, + account_id: 1, + inbox_id: 27355, + conversation_id: 26942, + message_type: 0, + created_at: 1733387803, + updated_at: '2024-12-05T08:36:43.200Z', + private: false, + status: 'sent', + source_id: + 'aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDQ3NTU5OTYxMzk4OjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTM2Nzg4MDM2MjUyNjUwNjozMTk3NTM2MTE2ODI4MTc0MDMzMDA3NzAwNzkxNTI1Mzc2MAZDZD', + content_type: 'text', + content_attributes: { + in_reply_to_external_id: null, + }, + sender_type: 'Contact', + sender_id: 70222869, + external_source_ids: {}, + additional_attributes: {}, + processed_message_content: null, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 1, + last_activity_at: 1733387803, + contact_inbox: { + source_id: '6448268745221611', + }, + }, + attachments: [ + { + id: 7141507, + message_id: 89088799, + file_type: 'ig_reel', + account_id: 1, + extension: null, + data_url: + 'https://videos.pexels.com/video-files/2023708/2023708-hd_720_1280_30fps.mp4', + thumb_url: + 'https://videos.pexels.com/video-files/2023708/2023708-hd_720_1280_30fps.mp4', + file_size: 2464867, + width: null, + height: null, + }, + ], + sender: { + additional_attributes: { + social_profiles: { + instagram: 'cwtestinglocal', + }, + }, + custom_attributes: {}, + email: null, + id: 70222869, + identifier: null, + name: 'Jane Doe', + phone_number: null, + thumbnail: '', + type: 'contact', + }, + }, + ], + { deep: true } +);