File: //proc/thread-self/root/home/arjun/projects/buyercall/buyercall/assets/vue/mock/inboxMockAPI.js
import { GET, POST } from '../constants';
export default [
{
//Logic where contact manual status = new , call to node to get assignmnet status,based on that filter leads and identify the type
type: GET,
endpoint: '/inbox/type_new_count',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Inbox type new Count fetched successfully!',
data: {
'My Inbox': 10,
'Team Inbox': 5,
Unassigned: 7,
All: 8,
},
},
},
{
type: POST,
endpoint: '/inbox/manualInteractionStatusChange',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Lead status changed successfully!',
data: {},
},
},
{
type: POST,
endpoint: '/agents/inbox/sendmail',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Mail Send successfully!',
data: {},
},
},
{
type: GET,
endpoint: '/leads',
status: 200,
response: {
statusCode: 200,
success: true,
message: 'Lead data fetched successfully!',
data: [
{
leadId: '34eb6b26-1956-4356-b018-2f10ab8ec55',
name: 'Contact One',
primarytags: ['Hot', 'Qualified Lead'],
secondaryTags: ['Pre-approved'],
manualStatus: 'COMPLETED',
sort: 2,
},
{
leadId: '34eb6b26-1956-4356-b018-2f10ab567c55',
name: 'Contact Two',
primarytags: ['Hot'],
secondaryTags: ['Pre-approved'],
manualStatus: 'COMPLETED',
sort: 1,
},
// {
// leadId: '34eb6b26-1956-4356-b018-234534ab8ec55',
// name: 'Contact Three',
// primarytags: ['Hot'],
// secondaryTags: ['Pre-approved'],
// manualStatus: 'COMPLETED',
// // sources: ['28621081-af55-4bef-bc05-cdf3454e59c6'],
// sort: 3,
// },
// {
// leadId: '1111-2222-3333-4445',
// name: 'Harry Vermaak',
// primarytags: ['Hot'],
// secondaryTags: ['Loan'],
// manualStatus: '',
// sources: [
// {
// id: '23423-23423-5454-2342',
// name: 'Phone Channel One',
// },
// ],
// },
// {
// leadId: '1111-2222-3333-4446',
// name: 'Akarsh AS',
// primarytags: ['Hot', 'Qualified Lead'],
// secondaryTags: ['Pre-approved'],
// manualStatus: 'COMPLETED',
// sources: [
// {
// id: '23423-23423-5454-2342',
// name: 'Phone Channel One',
// },
// {
// id: '2333-2342-3444-3322',
// name: 'Test Sub Channel Number',
// },
// ],
// },
],
},
},
];