HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/self/root/home/arjun/projects/buyercall/buyercall/assets/vue/mock/channelsMockAPI.js
import { GET, POST, PUT } from '../constants';
export default [
  {
    type: GET,
    endpoint: '/channels/meta',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Channel Meta details fetched successfully!',
      data: {
        chat: 10,
        phonenumbers: 5,
        emails: 6,
      },
    },
  },
  {
    type: POST,
    endpoint: '/channels/',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Chat channel created successfully!',
      data: {},
    },
  },
  {
    type: GET,
    endpoint: '/channels/type/chat',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Chat channels fetched successfully!',
      data: [
        {
          id: '1',
          updated_at: '2021-08-04T00:24:17.915203+00:00',
          created_at: '2021-08-04T00:24:17.915203+00:00',
          created_by: 'Agent One',
          updated_by: 'Agnet One',
          created_by_agent_id: '2324-234234-435345-34534',
          updated_by_agent_id: '2324-234234-435345-34534',
          partnership_id: '43534-6767-43563-234234',
          partnership_account_id: '43534-6767-43563-234234',
          partnershipName: 'Partnership Name',
          partnershipAccountname: 'Partnership Account Name',
          sourceId: '8b53a56d-9a44-44ca-8db7-2d1f686afa12',
          name: 'New One Test',
          description: 'New One Test',
        },
      ],
    },
  },
  {
    type: GET,
    endpoint: '/channels/1',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Chat channel details fetched successfully!',
      data: {
        id: '1',
        updated_at: '2021-08-04T00:24:17.915203+00:00',
        created_at: '2021-08-04T00:24:17.915203+00:00',
        created_by: 'Agent One',
        updated_by: 'Agnet One',
        created_by_agent_id: '2324-234234-435345-34534',
        updated_by_agent_id: '2324-234234-435345-34534',
        partnership_id: '43534-6767-43563-234234',
        partnership_account_id: '43534-6767-43563-234234',
        partnershipName: 'Partnership Name',
        partnershipAccountname: 'Partnership Account Name',
        sourceId: '8b53a56d-9a44-44ca-8db7-2d1f686afa12',
        name: 'New One Test',
        description: 'New One Test',
        widget: ['2'],
      },
    },
  },
  {
    type: POST,
    endpoint: '/channels/1',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Chat channel updated successfully!',
      data: {},
    },
  },
  {
    type: POST,
    endpoint: '/omni-channel',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Omni channel widget created successfully!',
      data: {},
    },
  },
  {
    type: PUT,
    endpoint: '/omni-channel/:id',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Omni channel widget updated successfully!',
      data: {},
    },
  },
  {
    type: GET,
    endpoint: '/channels/phone-number',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Phone Number Channels fetched successfully!',
      data: [
        {
          id: '31dda27c-e849-44b8-a6cf-73f3888a20df',

          updated_at: '2021-08-04T00:24:17.915203+00:00',
          created_at: '2021-08-04T00:24:17.915203+00:00',
          created_by: 'Agent One',
          updated_by: 'Agnet One',
          created_by_agent_id: '2324-234234-435345-34534',
          updated_by_agent_id: '2324-234234-435345-34534',
          partnership_id: '43534-6767-43563-234234',
          partnership_account_id: '43534-6767-43563-234234',
          partnershipName: 'Partnership Name',
          partnershipAccountname: 'Partnership Account Name',
          sourceId: 'ea6cff11-0a99-40d7-aebf-875e0b762352',
          name: 'New One Test',
          numberType: 'Toll Free',
          areaCode: '',
          provisionedPhoneNumber: '18332678711',
        },
        {
          id: '2324-234234-435345-34535',

          updated_at: '2021-08-04T00:24:17.915203+00:00',
          created_at: '2021-08-04T00:24:17.915203+00:00',
          created_by: 'Agent One',
          updated_by: '',
          created_by_agent_id: '2324-234234-435345-34534',
          updated_by_agent_id: '',
          partnership_id: '43534-6767-43563-234234',
          partnership_account_id: '43534-6767-43563-234234',
          partnershipName: 'Partnership Name',
          partnershipAccountname: 'Partnership Account Name',
          sourceId: '4db1679c-0789-41ab-bf83-549b4cccc9c7',
          name: 'Phone Channel 2',
          numberType: 'Toll Free',
          areaCode: '232',
          provisionedPhoneNumber: '(773) 345-5774',
        },
      ],
    },
  },
  {
    type: GET,
    endpoint: '/phone-numbers/us-states',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'States fetched successfully!',
      data: [
        {
          abbr: 'AL',
          name: 'Alabama',
        },
        {
          abbr: 'AK',
          name: 'Alaska',
        },
      ],
    },
  },
  {
    type: POST,
    endpoint: '/phone-numbers/search',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Phone numbers fetched successfully!',
      data: [
        {
          value: '(773) 345-5773',
        },
        {
          value: '(773) 345-5774',
        },
        {
          value: '(773) 345-5775',
        },
      ],
    },
  },
  {
    type: POST,
    endpoint: '/phone-numbers/create',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Phone number channel created successfully!',
      data: {
        sourceChannelId: '23423-235235-456456-456456',
      },
    },
  },
  {
    type: PUT,
    endpoint: '/source-channel/phone_number/23423-235235-456456-456456',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Phone number channel updated successfully!',
      data: {
        sourceChannelId: '23423-235235-456456-456456',
      },
    },
  },
  {
    type: GET,
    endpoint: '/source-channel/phone_number/23423-235235-456456-456456',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Phone number channel fetched successfully!',
      data: {
        sourceChannelId: '23423-235235-456456-456456',
        name: 'Hello',
        numberType: 'Toll Free',
        areaCode: '232',
        provisionedPhoneNumber: '(773) 345-5773',
        enableSMS: false,
        leadNumAsCallerIDForIncomingCalls: false,
        requestCallAcceptance: false,
        enableCallRecording: false,
        enablePlayingCustGreeMsg: true,
        customGreetMessageType: 3,
        textToSpeechToSpeakCustGreetMsg: null,
        textToSpeechaccentVoice: null,
        enablePlayCustBeforeConnect: false,
        enablePlayCustBeforeConnectMessage: null,
        state: null,
        city: null,
        uploadedSelfRecordAudio:
          'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3',
        timeStamp: new Date().toDateString,
        enableVoiceMail: true,
        usecustomvoicemail: 2,
        usetexttospeech: null,
        texttospeechmessage: null,
        voicemailaccentVoice: null,
        uploadedCustomVoiceMail: null,
      },
    },
  },
  {
    type: GET,
    endpoint: '/channels/type/email',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Chat channels fetched successfully!',
      data: [
        {
          id: '1',
          updated_at: '2021-08-04T00:24:17.915203+00:00',
          created_at: '2021-08-04T00:24:17.915203+00:00',
          created_by: 'Agent One',
          updated_by: 'Agnet One',
          created_by_agent_id: '2324-234234-435345-34534',
          updated_by_agent_id: '2324-234234-435345-34534',
          partnership_id: '43534-6767-43563-234234',
          partnership_account_id: '43534-6767-43563-234234',
          partnershipName: 'Partnership Name',
          partnershipAccountname: 'Partnership Account Name',
          sourceId: '8b53a56d-9a44-44ca-8db7-2d1f686afa12',
          name: 'New One Test',
          description: 'New One Test',
          partnerDomain: 'spericorn.com',
          emailprefix: 'abcd',
        },
      ],
    },
  },
  {
    type: POST,
    endpoint: '/channels',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Email channel created successfully!',
      data: {},
    },

    // sourceId: 'ea6cff11-0a99-40d7-aebf-875e0b762352',
    // name: 'New One Test',
    // description: 'New One Test',
    // widget : null,
    //emailprefix :  "abcd"
  },
  {
    type: PUT,
    endpoint: '/channel/email/1',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Email channel updated successfully!',
      data: {},
    },

    // sourceId: 'ea6cff11-0a99-40d7-aebf-875e0b762352',
    // name: 'New One Test',
    // description: 'New One Test',
    // widget : null,
  },
  {
    type: GET,
    endpoint: '/channel/email/1',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Email channel fetched successfully!',
      data: {
        id: '1',
        updated_at: '2021-08-04T00:24:17.915203+00:00',
        created_at: '2021-08-04T00:24:17.915203+00:00',
        created_by: 'Agent One',
        updated_by: 'Agnet One',
        created_by_agent_id: '2324-234234-435345-34534',
        updated_by_agent_id: '2324-234234-435345-34534',
        partnership_id: '43534-6767-43563-234234',
        partnership_account_id: '43534-6767-43563-234234',
        partnershipName: 'Partnership Name',
        partnershipAccountname: 'Partnership Account Name',
        sourceId: '8b53a56d-9a44-44ca-8db7-2d1f686afa12',
        name: 'New One Test',
        description: 'New One Test',
        partnerDomain: 'spericorn.com',
        emailprefix: 'abcd',
        widget: ['2'],
      },
    },
  },
  {
    type: GET,
    endpoint: '/channel/email/checkisvalid/test',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Email prefix validity status fetched successfully!',
      data: {
        isValid: true,
      },
    },
  },
];