Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

53.4 KB
Raw Blame
import camelcaseKeys from 'camelcase-keys';

export default camelcaseKeys(
  [
    {
      id: 5296,
      content: 'Hey, I want to get my Macbook repaird',
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      content_type: 'text',
      status: 'sent',
      content_attributes: {
        in_reply_to: null,
      },
      created_at: 1732710571,
      private: false,
      source_id: null,
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      id: 5296,
      content: '',
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      content_type: 'text',
      status: 'sent',
      content_attributes: {
        in_reply_to: null,
      },
      created_at: 1732710571,
      private: false,
      source_id: null,
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
      attachments: [
        {
          id: 378,
          message_id: 5314,
          file_type: 'location',
          account_id: 2,
          coordinates_lat: 37.7937545,
          coordinates_long: -122.3997472,
          fallback_title: 'Chatwoot Inc',
          extension: null,
          file_size: 287949,
          width: null,
          height: null,
        },
      ],
    },
    {
      id: 5296,
      content: 'Shivam Mishra',
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      content_type: 'text',
      status: 'sent',
      content_attributes: {
        in_reply_to: null,
      },
      created_at: 1732710571,
      private: false,
      source_id: null,
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
      attachments: [
        {
          id: 378,
          message_id: 5314,
          file_type: 'contact',
          account_id: 2,
          coordinates_lat: 37.7937545,
          coordinates_long: -122.3997472,
          fallback_title: '+919999999999',
          extension: null,
          file_size: 287949,
          width: null,
          height: null,
        },
      ],
    },
    {
      id: 5297,
      content: 'Give the team a way to reach you.',
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 3,
      content_type: 'text',
      status: 'read',
      content_attributes: {},
      created_at: 1732710572,
      private: false,
      source_id: null,
    },
    {
      id: 5298,
      content: 'Get notified by email',
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 3,
      content_type: 'input_email',
      status: 'read',
      content_attributes: {
        submitted_email: '[email protected]',
      },
      created_at: 1732710572,
      private: false,
      source_id: null,
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content: 'Conversation was reopened by John',
      id: 5299,
      content: 'Conversation was reopened by John',
      account_id: 2,
      inbox_id: 486,
      message_type: 2,
      created_at: 1732710724,
      updated_at: '2024-11-27T12:32:43.389Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: null,
      sender_id: null,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732710762,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:32:04.150Z', '2024-11-27T12:32:43.389Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content: 'John self-assigned this conversation',
      id: 5300,
      content: 'John self-assigned this conversation',
      account_id: 2,
      inbox_id: 486,
      message_type: 2,
      created_at: 1732710731,
      updated_at: '2024-11-27T12:32:43.419Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: null,
      sender_id: null,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732710762,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:32:11.416Z', '2024-11-27T12:32:43.419Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        "Hey, I am Shivam, I'll be helping you today. What kind of repair are you looking for? I see you own a Macbook Pro 2022 Model. Is that correct?",
      id: 5301,
      content:
        "Hey, I am Shivam, I'll be helping you today. What kind of repair are you looking for? I see you own a Macbook Pro 2022 Model. Is that correct?",
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732710762,
      updated_at: '2024-11-27T12:32:43.458Z',
      private: false,
      source_id: null,
      content_attributes: {
        in_reply_to: 5296,
      },
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732710762,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:32:42.481Z', '2024-11-27T12:32:43.458Z'],
        status: ['sent', 'read'],
      },
    },
    {
      id: 5302,
      content:
        'I dropped my laptop and the screen is not cracked, can you fix it?',
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732710776,
      updated_at: '2024-11-27T12:32:56.684Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: 5301,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content:
        'I dropped my laptop and the screen is not cracked, can you fix it?',
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732710776,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content: 'John added repair',
      id: 5303,
      content: 'John added repair',
      account_id: 2,
      inbox_id: 486,
      message_type: 2,
      created_at: 1732710805,
      updated_at: '2024-11-27T12:33:30.138Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: null,
      sender_id: null,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732710809,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:33:25.620Z', '2024-11-27T12:33:30.138Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        'Sure, will it be possible to share an image of the same?',
      id: 5304,
      content: 'Sure, will it be possible to share an image of the same?',
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732710809,
      updated_at: '2024-11-27T12:33:30.167Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732710809,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:33:29.116Z', '2024-11-27T12:33:30.167Z'],
        status: ['sent', 'read'],
      },
    },
    {
      id: 5305,
      content: null,
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732710822,
      updated_at: '2024-11-27T12:33:42.634Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: null,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content: null,
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732710822,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      attachments: [
        {
          id: 17,
          message_id: 5305,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 983912,
          width: null,
          height: null,
        },
      ],
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      id: 5306,
      content: 'There you go',
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732710827,
      updated_at: '2024-11-27T12:33:47.262Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: null,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content: 'There you go',
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732710827,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      id: 5307,
      content: null,
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732710841,
      updated_at: '2024-11-27T12:34:01.991Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: null,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content: null,
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732710841,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      attachments: [
        {
          id: 18,
          message_id: 5307,
          file_type: 'file',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaUVLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4f7e671db635b73d12ee004e87608bc098ef6b3b/registrations.xls',
          thumb_url:
            'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaUVLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4f7e671db635b73d12ee004e87608bc098ef6b3b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9UY21WemFYcGxYM1J2WDJacGJHeGJCMmtCK2pBPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--5c454d5f03daf1f9f4068cb242cf9885cc1815b6/all-files.zip',
          file_size: 99844,
          width: null,
          height: null,
        },
      ],
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      id: 5308,
      content: "Here's the invoice too",
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732710847,
      updated_at: '2024-11-27T12:34:07.380Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: null,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content: "Here's the invoice too",
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732710847,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        '[@Bruce](mention://user/30/Bruce) do you think this is covered? Seems like they are out of damage insurance by a week',
      id: 5309,
      content:
        '[@Bruce](mention://user/30/Bruce) do you think this is covered? Seems like they are out of damage insurance by a week',
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732710890,
      updated_at: '2024-11-27T12:36:46.586Z',
      private: true,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711005,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:34:50.013Z', '2024-11-27T12:36:46.586Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        '[@John](mention://user/1/John) They have been a customer for a while, we can offer a 30% discount on the repair',
      id: 5310,
      content:
        '[@John](mention://user/1/John) They have been a customer for a while, we can offer a 30% discount on the repair',
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732710942,
      updated_at: '2024-11-27T12:36:46.631Z',
      private: true,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 30,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711005,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 30,
        name: 'Bruce',
        available_name: 'Bruce',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBc3dKIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--76f2acbf7e24fe4c4aa7b053051df9c74ea9d8aa/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--df796c2af3c0153e55236c2f3cf3a199ac2cb6f7/67.jpg',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBc3dKIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--76f2acbf7e24fe4c4aa7b053051df9c74ea9d8aa/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--df796c2af3c0153e55236c2f3cf3a199ac2cb6f7/67.jpg',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:35:42.614Z', '2024-11-27T12:36:46.631Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        "This document suggests you are out of the damage coverage period. But we can repair this for sure, and since you've been a customer for a while and the coverage is off just by a week, we can offer a 30% discount on the repair. Does that work?",
      id: 5311,
      content:
        "This document suggests you are out of the damage coverage period. But we can repair this for sure, and since you've been a customer for a while and the coverage is off just by a week, we can offer a 30% discount on the repair. Does that work?",
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732711005,
      updated_at: '2024-11-27T12:36:46.715Z',
      private: false,
      source_id: null,
      content_attributes: {
        in_reply_to: 5307,
        in_reply_to_external_id: null,
      },
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711005,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:36:45.557Z', '2024-11-27T12:36:46.715Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content: 'John set the priority to medium',
      id: 5312,
      content: 'John set the priority to medium',
      account_id: 2,
      inbox_id: 486,
      message_type: 2,
      created_at: 1732711008,
      updated_at: '2024-11-27T12:37:05.985Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: null,
      sender_id: null,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711025,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:36:48.047Z', '2024-11-27T12:37:05.985Z'],
        status: ['sent', 'read'],
      },
    },
    {
      id: 5313,
      content: 'This is perfect, thanks a lot. Let me know the next steps',
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732711025,
      updated_at: '2024-11-27T12:37:05.439Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: null,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content:
        'This is perfect, thanks a lot. Let me know the next steps',
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732711025,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        "Sure, you can fill this form and mail the item to us. And we will replace the screen within 5 business days and dispatch it for you. I've also attached and estimate for the repair and the shipping charges",
      id: 5314,
      content:
        "Sure, you can fill this form and mail the item to us. And we will replace the screen within 5 business days and dispatch it for you. I've also attached and estimate for the repair and the shipping charges",
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732711103,
      updated_at: '2024-11-27T12:38:24.668Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711103,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      attachments: [
        {
          id: 19,
          message_id: 5314,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 287949,
          width: null,
          height: null,
        },
        {
          id: 25,
          message_id: 5314,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 287949,
          width: null,
          height: null,
        },
        {
          id: 26,
          message_id: 5314,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 287949,
          width: null,
          height: null,
        },
        {
          id: 20,
          message_id: 5314,
          file_type: 'file',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaU1LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f15e48e101a6b85f454aacd5f9584039ba0a6b9/agreement.doc',
          thumb_url:
            'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaU1LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f15e48e101a6b85f454aacd5f9584039ba0a6b9/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9UY21WemFYcGxYM1J2WDJacGJHeGJCMmtCK2pBPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--5c454d5f03daf1f9f4068cb242cf9885cc1815b6/letterhead.pdf',
          file_size: 99844,
          width: null,
          height: null,
        },
        {
          id: 20,
          message_id: 5314,
          file_type: 'file',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaU1LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f15e48e101a6b85f454aacd5f9584039ba0a6b9/all-files.zip',
          thumb_url:
            'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaU1LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f15e48e101a6b85f454aacd5f9584039ba0a6b9/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9UY21WemFYcGxYM1J2WDJacGJHeGJCMmtCK2pBPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--5c454d5f03daf1f9f4068cb242cf9885cc1815b6/letterhead.pdf',
          file_size: 99844,
          width: null,
          height: null,
        },
        {
          id: 20,
          message_id: 5314,
          file_type: 'file',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaU1LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f15e48e101a6b85f454aacd5f9584039ba0a6b9/business-card.pdf',
          thumb_url:
            'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaU1LIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f15e48e101a6b85f454aacd5f9584039ba0a6b9/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9UY21WemFYcGxYM1J2WDJacGJHeGJCMmtCK2pBPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--5c454d5f03daf1f9f4068cb242cf9885cc1815b6/letterhead.pdf',
          file_size: 99844,
          width: null,
          height: null,
        },
        {
          id: 22,
          message_id: 5314,
          file_type: 'video',
          account_id: 2,
          extension: null,
          data_url:
            'https://videos.pexels.com/video-files/1739010/1739010-hd_1920_1080_30fps.mp4',
          thumb_url:
            'https://videos.pexels.com/video-files/1739010/1739010-hd_1920_1080_30fps.mp4',
          file_size: 287949,
          width: null,
          height: null,
        },
      ],
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:38:23.382Z', '2024-11-27T12:38:24.668Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        'This is a video demo of how to safely pack your device for mail',
      id: 5318,
      content:
        'This is a video demo of how to safely pack your device for mail',
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732788718,
      updated_at: '2024-11-28T10:11:59.587Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732788718,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      attachments: [
        {
          id: 21,
          message_id: 5318,
          file_type: 'video',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaVVLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2b713098fcdb9fde921f7575ac7d7539d0ffd5df/CleanShot%202024-11-26%20at%2018.07.56.mp4',
          thumb_url: '',
          file_size: 1176246,
          width: null,
          height: null,
        },
      ],
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-28T10:11:58.967Z', '2024-11-28T10:11:59.587Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content: null,
      id: 5319,
      content: "Here's a recording of the call",
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732788745,
      updated_at: '2024-11-28T10:12:25.906Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732788745,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      attachments: [
        {
          id: 22,
          message_id: 5319,
          file_type: 'audio',
          account_id: 2,
          extension: null,
          data_url:
            'https://cdn.freesound.org/previews/769/769025_16085454-lq.mp3',
          thumb_url: '',
          file_size: 345644,
          width: null,
          height: null,
        },
      ],
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-28T10:12:25.364Z', '2024-11-28T10:12:25.906Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content: null,
      id: 5319,
      content: null,
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732788745,
      updated_at: '2024-11-28T10:12:25.906Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732788745,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      attachments: [
        {
          id: 22,
          message_id: 5319,
          file_type: 'audio',
          account_id: 2,
          extension: null,
          data_url:
            'https://cdn.freesound.org/previews/769/769025_16085454-lq.mp3',
          thumb_url: '',
          file_size: 345644,
          width: null,
          height: null,
        },
      ],
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-28T10:12:25.364Z', '2024-11-28T10:12:25.906Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        'Hope this helps\n\n--\n\n~ John Acme  \n![](http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHNGIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--49eeccbbf9eea2ce5c72c6ed6a7eb0cf0be024b1/picologo.png?cw_image_height=24px)Picoletter',
      id: 5320,
      content:
        'Hope this helps\n\n--\n\n~ John Acme  \n![](http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHNGIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--49eeccbbf9eea2ce5c72c6ed6a7eb0cf0be024b1/picologo.png?cw_image_height=24px)Picoletter',
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732788759,
      updated_at: '2024-11-28T10:12:40.464Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732788759,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-28T10:12:39.665Z', '2024-11-28T10:12:40.464Z'],
        status: ['sent', 'read'],
      },
    },
    {
      id: 5315,
      content: "Great. I'll send it across. Thanks",
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 0,
      created_at: 1732711121,
      updated_at: '2024-11-27T12:38:41.127Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {
        in_reply_to: null,
      },
      sender_type: 'Contact',
      sender_id: 599,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content: "Great. I'll send it across. Thanks",
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 1,
        last_activity_at: 1732711121,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
    },
    {
      conversation_id: 1016,
      status: 'read',
      content_type: 'text',
      processed_message_content:
        'Glad I could help. Let me know if you need some other help',
      id: 5316,
      content: 'Glad I could help. Let me know if you need some other help',
      account_id: 2,
      inbox_id: 486,
      message_type: 1,
      created_at: 1732711141,
      updated_at: '2024-11-27T12:39:02.247Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711141,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: 'busy',
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-27T12:39:01.126Z', '2024-11-27T12:39:02.247Z'],
        status: ['sent', 'read'],
      },
    },
    {
      id: 5317,
      content: 'Conversation was marked resolved by John',
      account_id: 2,
      inbox_id: 486,
      conversation_id: 1016,
      message_type: 2,
      created_at: 1732711142,
      updated_at: '2024-11-27T12:39:02.911Z',
      private: false,
      status: 'sent',
      source_id: null,
      content_type: 'text',
      content_attributes: {},
      sender_type: null,
      sender_id: null,
      external_source_ids: {},
      additional_attributes: {},
      processed_message_content: 'Conversation was marked resolved by John',
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732711142,
        contact_inbox: {
          source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7',
        },
      },
    },
    {
      id: 5323,
      content: 'These are all the files you requested',
      inbox_id: 486,
      echo_id: '9f7432284767',
      conversation_id: 1016,
      message_type: 0,
      content_type: 'text',
      status: 'sent',
      content_attributes: {},
      created_at: 1732795624,
      private: false,
      source_id: null,
      sender_type: 'Contact',
      sender_id: 599,
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
      attachments: [
        {
          id: 27,
          message_id: 5323,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 26126,
          width: null,
          height: null,
        },
        {
          id: 28,
          message_id: 5323,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 58696,
          width: null,
          height: null,
        },
        {
          id: 28,
          message_id: 5323,
          file_type: 'file',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaXdLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3aa5f4c3a2a034b6e68800d4787d369254ab1eb4/multi.zip',
          thumb_url:
            'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaXdLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3aa5f4c3a2a034b6e68800d4787d369254ab1eb4/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBPZ2h3Ym1jNkUzSmxjMmw2WlY5MGIxOW1hV3hzV3dkcEFmb3ciLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--328463286cffa0d7d9a36a3a30bfa1daed3a5ee6/multi.webp',
          file_size: 58696,
          width: null,
          height: null,
        },
      ],
    },
    {
      id: 5323,
      content: null,
      inbox_id: 486,
      echo_id: '9f7432284767',
      conversation_id: 1016,
      message_type: 0,
      content_type: 'text',
      status: 'sent',
      content_attributes: {},
      created_at: 1732795624,
      private: false,
      source_id: null,
      sender_type: 'Contact',
      sender_id: 599,
      sender: {
        additional_attributes: {
          created_at_ip: '::1',
        },
        custom_attributes: {},
        email: '[email protected]',
        id: 599,
        identifier: null,
        name: 'anthony',
        phone_number: null,
        thumbnail: '',
        type: 'contact',
      },
      attachments: [
        {
          id: 27,
          message_id: 5323,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 26126,
          width: null,
          height: null,
        },
        {
          id: 28,
          message_id: 5323,
          file_type: 'image',
          account_id: 2,
          extension: null,
          data_url: 'https://picsum.photos/500',
          thumb_url: 'https://picsum.photos/500',
          file_size: 58696,
          width: null,
          height: null,
        },
        {
          id: 28,
          message_id: 5323,
          file_type: 'file',
          account_id: 2,
          extension: null,
          data_url:
            'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaXdLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3aa5f4c3a2a034b6e68800d4787d369254ab1eb4/list-with-all-data.csv',
          thumb_url:
            'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaXdLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3aa5f4c3a2a034b6e68800d4787d369254ab1eb4/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBPZ2h3Ym1jNkUzSmxjMmw2WlY5MGIxOW1hV3hzV3dkcEFmb3ciLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--328463286cffa0d7d9a36a3a30bfa1daed3a5ee6/multi.webp',
          file_size: 58696,
          width: null,
          height: null,
        },
      ],
    },
    {
      conversation_id: 43,
      status: 'progress',
      content_type: 'text',
      processed_message_content: ' Happy to help :)',
      id: 5285,
      content: ' Happy to help :)',
      account_id: 1,
      inbox_id: 475,
      message_type: 1,
      created_at: 1732195991,
      updated_at: '2024-11-21T13:33:12.229Z',
      private: false,
      source_id: null,
      content_attributes: {},
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732195991,
        contact_inbox: {
          source_id: 'b018c554-8e17-4102-8a0b-f6d20d021017',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-21T13:33:11.667Z', '2024-11-21T13:33:12.229Z'],
        status: ['sent', 'read'],
      },
    },
    {
      conversation_id: 43,
      status: 'failed',
      content_type: 'text',
      processed_message_content:
        "Let us know if you have any questions, I'll close this conversation for now",
      id: 5286,
      content:
        "Let us know if you have any questions, I'll close this conversation for now",
      account_id: 1,
      inbox_id: 475,
      message_type: 1,
      created_at: 1732196013,
      updated_at: '2024-11-21T13:33:33.879Z',
      private: false,
      source_id: null,
      content_attributes: {
        external_error:
          'Business account is restricted from messaging users in this country.',
      },
      sender_type: 'User',
      sender_id: 1,
      external_source_ids: {},
      additional_attributes: {},
      sentiment: {},
      conversation: {
        assignee_id: 1,
        unread_count: 0,
        last_activity_at: 1732196013,
        contact_inbox: {
          source_id: 'b018c554-8e17-4102-8a0b-f6d20d021017',
        },
      },
      sender: {
        id: 1,
        name: 'John',
        available_name: 'John',
        avatar_url:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
        type: 'user',
        availability_status: null,
        thumbnail:
          'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png',
      },
      previous_changes: {
        updated_at: ['2024-11-21T13:33:33.511Z', '2024-11-21T13:33:33.879Z'],
        status: ['sent', 'read'],
      },
    },
  ],
  { deep: true }
);