From cb23741fa4327ab3967df2e40fc478fffeb30f4d Mon Sep 17 00:00:00 2001 From: Da Kong Date: Mon, 16 Dec 2024 12:20:25 +0800 Subject: [PATCH] update: name to App Connect --- README.md | 2 +- bin/index.js | 2 +- docs/crm/netsuite.md | 10 +++++----- package.json | 2 +- src/adapters/bullhorn/index.js | 8 ++++---- src/adapters/clio/index.js | 16 ++++++++-------- src/adapters/insightly/index.js | 16 ++++++++-------- src/adapters/manifest.json | 26 +++++++++++++------------- src/adapters/netsuite/index.js | 18 +++++++++--------- src/adapters/pipedrive/index.js | 8 ++++---- src/adapters/pipedrive/redirect.html | 2 +- src/adapters/redtail/index.js | 8 ++++---- src/adapters/testCRM/index.js | 4 ++-- 13 files changed, 61 insertions(+), 61 deletions(-) diff --git a/README.md b/README.md index d0040715..01d49661 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Unified CRM extension for Google Chrome and Microsoft Edge +# RingCentral App Connect for Google Chrome and Microsoft Edge [![Build Status](https://github.com/ringcentral/rc-unified-crm-extension/workflows/CI%20Pipeline/badge.svg?branch=main)](https://github.com/ringcentral/rc-unified-crm-extension/actions) [![Latest release](https://img.shields.io/github/v/release/ringcentral/rc-unified-crm-extension)](https://github.com/ringcentral/rc-unified-crm-extension/releases) [![Coverage Status](https://coveralls.io/repos/github/ringcentral/rc-unified-crm-extension/badge.svg?branch=main)](https://coveralls.io/github/ringcentral/rc-unified-crm-extension?branch=main) diff --git a/bin/index.js b/bin/index.js index 9964b9a5..21771124 100644 --- a/bin/index.js +++ b/bin/index.js @@ -6,7 +6,7 @@ import inquirer from 'inquirer'; const program = new Command(); -program.version(packageJson.version).description('RingCentral CRM Extension'); +program.version(packageJson.version).description('RingCentral App Connect'); program .command('release') diff --git a/docs/crm/netsuite.md b/docs/crm/netsuite.md index 363eaf47..c8f0ebe6 100644 --- a/docs/crm/netsuite.md +++ b/docs/crm/netsuite.md @@ -16,7 +16,7 @@ To begin using the NetSuite integration, users will first need to do the followi * Login to NetSuite, then visit the [RingCentral Suite App](https://www.suiteapp.com/RingCentral-Unified-CRM-Extension) page, or: * Click on the "SuiteApps" tab if your role gives you access to it * Search for "RingCentral" in the directory - * Click "RingCentral Unified CRM Extension" in the search results + * Click "RingCentral App Connect" in the search results * Click the "Install" button found in the upper right hand corner of the page If you see, "Not compatible" in place of an "Install" button, then you must be running an older version of NetSuite. You will need to upgrade to 2024.2 or later. @@ -25,13 +25,13 @@ Installing the app from the SuiteApp marketplace is a necessary step prior to in ## Setup roles and permissions in NetSuite -Upon installation of the SuiteApp, a role will be created automatically within your account called "RingCentral CRM Extension." This role has been specially tuned to contain the bare minimum number access level to fully operate the Chrome extension. You can see a detailed list of permissions below if you would like to incorporate these permissions into a custom role of your own. +Upon installation of the SuiteApp, a role will be created automatically within your account called "RingCentral App Connect." This role has been specially tuned to contain the bare minimum number access level to fully operate the Chrome extension. You can see a detailed list of permissions below if you would like to incorporate these permissions into a custom role of your own. ### NetSuite OneWorld instructions -Upon installing the SuiteApp from the Marketplace, a new custom role named **"RingCentral CRM Extension"** will be automatically created in your account. If you are a OneWorld license holder, you will need to take these additional steps. +Upon installing the SuiteApp from the Marketplace, a new custom role named **"RingCentral App Connect"** will be automatically created in your account. If you are a OneWorld license holder, you will need to take these additional steps. -1. Clone the "RingCentral CRM Extension" role by selecting the "Customize" option. +1. Clone the "RingCentral App Connect" role by selecting the "Customize" option. 2. While cloning, add the permission **"List -> Subsidiaries"** to the cloned role. Use this cloned role when logging into and connecting App Connect to NetSuite. @@ -48,7 +48,7 @@ REST Web Services is default to be invisible. We'll need to turn on the feature ### Create role with required permissions -We recommend using the "RingCentral CRM Extension" role created for you when you install the SuiteApp. However, if you would like to create a custom role that includes the permissions necessary to allow this extension to operate fully, consult the table below. +We recommend using the "RingCentral App Connect" role created for you when you install the SuiteApp. However, if you would like to create a custom role that includes the permissions necessary to allow this extension to operate fully, consult the table below. | Category | Permission | Level | | ------------ | ------------------------------------ | ----- | diff --git a/package.json b/package.json index 88ef10c7..226753c3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "rc-unified-crm-extension-server", "version": "1.3.2", - "description": "RingCentral Unified CRM Extension", + "description": "RingCentral App Connect", "main": "index.js", "bin": { "rc-unified-crm-extension": "bin/index.js" diff --git a/src/adapters/bullhorn/index.js b/src/adapters/bullhorn/index.js index a47ae603..2a8e414c 100644 --- a/src/adapters/bullhorn/index.js +++ b/src/adapters/bullhorn/index.js @@ -250,7 +250,7 @@ async function createContact({ user, authHeader, phoneNumber, newContactName, ne `${user.platformAdditionalInfo.restUrl}entity/ClientCorporation`, { name: "RingCentral_CRM_Extension_Placeholder_Company", - companyDescription: "This company was created automatically by the RingCentral Unified CRM Extension. Feel free to edit, or associate this company's contacts to more appropriate records. " + companyDescription: "This company was created automatically by the RingCentral App Connect. Feel free to edit, or associate this company's contacts to more appropriate records. " }, { headers: { @@ -450,15 +450,15 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi '' + '------------
' + 'END

' + - '--- Created via RingCentral CRM Extension'; + '--- Created via RingCentral App Connect'; break; case 'Voicemail': subject = `Voicemail left by ${contactInfo.name} - ${moment(message.creationTime).utcOffset(Number(user.timezoneOffset)).format('YY/MM/DD')}`; - comments = `
${subject}
Voicemail recording link: ${recordingLink}

--- Created via RingCentral CRM Extension`; + comments = `
${subject}
Voicemail recording link: ${recordingLink}

--- Created via RingCentral App Connect`; break; case 'Fax': subject = `Fax document sent from ${contactInfo.name} - ${moment(message.creationTime).utcOffset(Number(user.timezoneOffset)).format('YY/MM/DD')}`; - comments = `
${subject}
Fax document link: ${faxDocLink}

--- Created via RingCentral CRM Extension`; + comments = `
${subject}
Fax document link: ${faxDocLink}

--- Created via RingCentral App Connect`; break; } diff --git a/src/adapters/clio/index.js b/src/adapters/clio/index.js index 70c00576..ece7212c 100644 --- a/src/adapters/clio/index.js +++ b/src/adapters/clio/index.js @@ -193,7 +193,7 @@ async function createCallLog({ user, contactInfo, authHeader, callLog, note, add const postBody = { data: { subject: callLog.customSubject ?? `[Call] ${callLog.direction} Call ${callLog.direction === 'Outbound' ? 'to' : 'from'} ${contactInfo.name} [${contactInfo.phone}]`, - body: `\nContact Number: ${contactInfo.phoneNumber}\nCall Result: ${callLog.result}\nNote: ${note}${callLog.recording ? `\n[Call recording link] ${callLog.recording.link}` : ''}\n\n--- Created via RingCentral CRM Extension`, + body: `\nContact Number: ${contactInfo.phoneNumber}\nCall Result: ${callLog.result}\nNote: ${note}${callLog.recording ? `\n[Call recording link] ${callLog.recording.link}` : ''}\n\n--- Created via RingCentral App Connect`, type: 'PhoneCommunication', received_at: moment(callLog.startTime).toISOString(), senders: [sender], @@ -254,8 +254,8 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink, let patchBody = {}; if (!!recordingLink) { const urlDecodedRecordingLink = decodeURIComponent(recordingLink); - if (logBody.includes('\n\n--- Created via RingCentral CRM Extension')) { - logBody = logBody.replace('\n\n--- Created via RingCentral CRM Extension', `\n[Call recording link]${urlDecodedRecordingLink}\n\n--- Created via RingCentral CRM Extension`); + if (logBody.includes('\n\n--- Created via RingCentral App Connect')) { + logBody = logBody.replace('\n\n--- Created via RingCentral App Connect', `\n[Call recording link]${urlDecodedRecordingLink}\n\n--- Created via RingCentral App Connect`); } else { logBody += `\n[Call recording link]${urlDecodedRecordingLink}`; @@ -273,7 +273,7 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink, originalNote = logBody.split('\n[Call recording link]')[0].split('Note: ')[1]; } else { - originalNote = logBody.split('\n\n--- Created via RingCentral CRM Extension')[0].split('Note: ')[1]; + originalNote = logBody.split('\n\n--- Created via RingCentral App Connect')[0].split('Note: ')[1]; } logBody = logBody.replace(`Note: ${originalNote}`, `Note: ${note}`); @@ -337,15 +337,15 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi `${message.subject}\n` + '------------\n' + 'END\n\n' + - '--- Created via RingCentral CRM Extension'; + '--- Created via RingCentral App Connect'; break; case 'Voicemail': logSubject = `Voicemail left by ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - logBody = `Voicemail recording link: ${recordingLink} \n\n--- Created via RingCentral CRM Extension`; + logBody = `Voicemail recording link: ${recordingLink} \n\n--- Created via RingCentral App Connect`; break; case 'Fax': logSubject = `Fax document sent from ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - logBody = `Fax document link: ${faxDocLink} \n\n--- Created via RingCentral CRM Extension`; + logBody = `Fax document link: ${faxDocLink} \n\n--- Created via RingCentral App Connect`; break; } const postBody = { @@ -429,7 +429,7 @@ async function getCallLog({ user, callLogId, authHeader }) { }); const note = getLogRes.data.data.body.includes('[Call recording link]') ? getLogRes.data.data.body.split('Note: ')[1].split('\n[Call recording link]')[0] : - getLogRes.data.data.body.split('Note: ')[1].split('\n\n--- Created via RingCentral CRM Extension')[0]; + getLogRes.data.data.body.split('Note: ')[1].split('\n\n--- Created via RingCentral App Connect')[0]; const contactId = getLogRes.data.data.senders[0].type == 'Person' ? getLogRes.data.data.senders[0].id : getLogRes.data.data.receivers[0].id; diff --git a/src/adapters/insightly/index.js b/src/adapters/insightly/index.js index 0039b6cc..00f8ad4b 100644 --- a/src/adapters/insightly/index.js +++ b/src/adapters/insightly/index.js @@ -263,7 +263,7 @@ async function createCallLog({ user, contactInfo, authHeader, callLog, note, add const callRecordingDetail = callLog.recording ? `\nCall recording link: ${callLog.recording.link}` : ""; const postBody = { TITLE: callLog.customSubject ?? `${callLog.direction} Call ${callLog.direction === 'Outbound' ? 'to' : 'from'} ${contactInfo.name}`, - DETAILS: `This was a ${callLog.duration} seconds call ${callLog.direction === 'Outbound' ? `to ${contactInfo.name}(${callLog.to.phoneNumber})` : `from ${contactInfo.name}(${callLog.from.phoneNumber})`}.${noteDetail}${callRecordingDetail}\n\n--- Created via RingCentral CRM Extension`, + DETAILS: `This was a ${callLog.duration} seconds call ${callLog.direction === 'Outbound' ? `to ${contactInfo.name}(${callLog.to.phoneNumber})` : `from ${contactInfo.name}(${callLog.from.phoneNumber})`}.${noteDetail}${callRecordingDetail}\n\n--- Created via RingCentral App Connect`, START_DATE_UTC: moment(callLog.startTime).utc(), END_DATE_UTC: moment(callLog.startTime).utc().add(callLog.duration, 'seconds') } @@ -355,8 +355,8 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink, let logBody = getLogRes.data.DETAILS; let logSubject = getLogRes.data.TITLE; if (!!recordingLink) { - if (logBody.includes('\n\n--- Created via RingCentral CRM Extension')) { - logBody = logBody.replace('\n\n--- Created via RingCentral CRM Extension', `\n[Call recording link]${urlDecodedRecordingLink}\n\n--- Created via RingCentral CRM Extension`); + if (logBody.includes('\n\n--- Created via RingCentral App Connect')) { + logBody = logBody.replace('\n\n--- Created via RingCentral App Connect', `\n[Call recording link]${urlDecodedRecordingLink}\n\n--- Created via RingCentral App Connect`); } else { logBody += `\n[Call recording link]${urlDecodedRecordingLink}`; @@ -368,7 +368,7 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink, originalNote = logBody.split('\n[Call recording link]')[0].split('Agent notes: ')[1]; } else { - originalNote = logBody.split('\n\n--- Created via RingCentral CRM Extension')[0].split('Agent notes: ')[1]; + originalNote = logBody.split('\n\n--- Created via RingCentral App Connect')[0].split('Agent notes: ')[1]; } logBody = logBody.replace(`Agent notes: ${originalNote}`, `Agent notes: ${note}`); @@ -405,7 +405,7 @@ async function getCallLog({ user, callLogId, authHeader }) { }); const note = getLogRes.data.DETAILS.includes('[Call recording link]') ? getLogRes.data.DETAILS?.split('Agent notes: ')[1]?.split('\n[Call recording link]')[0] : - getLogRes.data.DETAILS?.split('Agent notes: ')[1]?.split('\n\n--- Created via RingCentral CRM Extension')[0]; + getLogRes.data.DETAILS?.split('Agent notes: ')[1]?.split('\n\n--- Created via RingCentral App Connect')[0]; const contactRes = await axios.get( `${user.platformAdditionalInfo.apiUrl}/${process.env.INSIGHTLY_API_VERSION}/${getLogRes.data.LINKS[0].LINK_OBJECT_NAME}s/${getLogRes.data.LINKS[0].LINK_OBJECT_ID}`, { @@ -447,15 +447,15 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi `${message.subject}\n` + '------------\n' + 'END\n\n' + - '--- Created via RingCentral CRM Extension'; + '--- Created via RingCentral App Connect'; break; case 'Voicemail': title = `Voicemail left by ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - details = `Voicemail recording link: ${recordingLink} \n\n--- Created via RingCentral CRM Extension`; + details = `Voicemail recording link: ${recordingLink} \n\n--- Created via RingCentral App Connect`; break; case 'Fax': title = `Fax document sent from ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - details = `Fax document link: ${faxDocLink} \n\n--- Created via RingCentral CRM Extension`; + details = `Fax document link: ${faxDocLink} \n\n--- Created via RingCentral App Connect`; break; } diff --git a/src/adapters/manifest.json b/src/adapters/manifest.json index 8ba3fb1b..ee580d86 100644 --- a/src/adapters/manifest.json +++ b/src/adapters/manifest.json @@ -1,5 +1,5 @@ { - "serverUrl": "https://unified-crm-extension.labs.ringcentral.com", + "serverUrl": "https://lite-http-tunnel-s52m.onrender.com", "redirectUri": "https://ringcentral.github.io/ringcentral-embeddable/redirect.html", "author": { "name": "RingCentral Labs", @@ -52,13 +52,13 @@ "elements": [ { "const": "pageDescription", - "title": "RingCentral CRM Extension is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", + "title": "RingCentral App Connect is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", "type": "string", "bold": false }, { "const": "scoreDescription", - "title": "How likely are you to recommend the Unified CRM Extension to a friend or colleague?", + "title": "How likely are you to recommend the App Connect to a friend or colleague?", "type": "string", "bold": true }, @@ -232,13 +232,13 @@ "elements": [ { "const": "pageDescription", - "title": "RingCentral CRM Extension is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", + "title": "RingCentral App Connect is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", "type": "string", "bold": false }, { "const": "scoreDescription", - "title": "How likely are you to recommend the Unified CRM Extension to a friend or colleague?", + "title": "How likely are you to recommend the App Connect to a friend or colleague?", "type": "string", "bold": true }, @@ -359,13 +359,13 @@ "elements": [ { "const": "pageDescription", - "title": "RingCentral CRM Extension is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", + "title": "RingCentral App Connect is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", "type": "string", "bold": false }, { "const": "scoreDescription", - "title": "How likely are you to recommend the Unified CRM Extension to a friend or colleague?", + "title": "How likely are you to recommend the App Connect to a friend or colleague?", "type": "string", "bold": true }, @@ -483,13 +483,13 @@ "elements": [ { "const": "pageDescription", - "title": "RingCentral CRM Extension is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", + "title": "RingCentral App Connect is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", "type": "string", "bold": false }, { "const": "scoreDescription", - "title": "How likely are you to recommend the Unified CRM Extension to a friend or colleague?", + "title": "How likely are you to recommend the App Connect to a friend or colleague?", "type": "string", "bold": true }, @@ -684,13 +684,13 @@ "elements": [ { "const": "pageDescription", - "title": "RingCentral CRM Extension is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", + "title": "RingCentral App Connect is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", "type": "string", "bold": false }, { "const": "scoreDescription", - "title": "How likely are you to recommend the Unified CRM Extension to a friend or colleague?", + "title": "How likely are you to recommend the App Connect to a friend or colleague?", "type": "string", "bold": true }, @@ -810,13 +810,13 @@ "elements": [ { "const": "pageDescription", - "title": "RingCentral CRM Extension is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", + "title": "RingCentral App Connect is currently in beta. We welcome any problem reports, feedback, ideas and feature requests you may have.", "type": "string", "bold": false }, { "const": "scoreDescription", - "title": "How likely are you to recommend the Unified CRM Extension to a friend or colleague?", + "title": "How likely are you to recommend the App Connect to a friend or colleague?", "type": "string", "bold": true }, diff --git a/src/adapters/netsuite/index.js b/src/adapters/netsuite/index.js index e8259ad3..8554a623 100644 --- a/src/adapters/netsuite/index.js +++ b/src/adapters/netsuite/index.js @@ -297,7 +297,7 @@ async function createCallLog({ user, contactInfo, authHeader, callLog, note, add startTime: startTimeSLot, endTime: endTimeSlot, timedEvent: true, - message: `Note: ${note}${callLog.recording ? `\nCall recording link ${callLog.recording.link}` : ''}\n\n--- Created via RingCentral CRM Extension`, + message: `Note: ${note}${callLog.recording ? `\nCall recording link ${callLog.recording.link}` : ''}\n\n--- Created via RingCentral App Connect`, }; if (contactInfo.type?.toUpperCase() === 'CONTACT') { const contactInfoRes = await axios.get(`https://${user.hostname.split(".")[0]}.suitetalk.api.netsuite.com/services/rest/record/v1/contact/${contactInfo.id}`, { @@ -369,7 +369,7 @@ async function getCallLog({ user, callLogId, authHeader }) { }); const note = getLogRes.data?.message.includes('Call recording link') ? getLogRes.data?.message.split('Note: ')[1].split('\nCall recording link')[0] : - getLogRes.data?.message.split('Note: ')[1].split('\n\n--- Created via RingCentral CRM Extension')[0]; + getLogRes.data?.message.split('Note: ')[1].split('\n\n--- Created via RingCentral App Connect')[0]; return { callLogInfo: { subject: getLogRes.data.title, @@ -400,8 +400,8 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink, let patchBody = { title: subject }; if (!!recordingLink) { const urlDecodedRecordingLink = decodeURIComponent(recordingLink); - if (messageBody.includes('\n\n--- Created via RingCentral CRM Extension')) { - messageBody = messageBody.replace('\n\n--- Created via RingCentral CRM Extension', `\nCall recording link${urlDecodedRecordingLink}\n\n--- Created via RingCentral CRM Extension`); + if (messageBody.includes('\n\n--- Created via RingCentral App Connect')) { + messageBody = messageBody.replace('\n\n--- Created via RingCentral App Connect', `\nCall recording link${urlDecodedRecordingLink}\n\n--- Created via RingCentral App Connect`); } else { messageBody += `\nCall recording link${urlDecodedRecordingLink}`; @@ -413,7 +413,7 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink, originalNote = messageBody.split('\nCall recording link')[0].split('Note: ')[1]; } else { - originalNote = messageBody.split('\n\n--- Created via RingCentral CRM Extension')[0].split('Note: ')[1]; + originalNote = messageBody.split('\n\n--- Created via RingCentral App Connect')[0].split('Note: ')[1]; } messageBody = messageBody.replace(`Note: ${originalNote}`, `Note: ${note}`); @@ -477,16 +477,16 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi `${message.subject}\n` + '------------\n' + 'END\n\n' + - '--- Created via RingCentral CRM Extension'; + '--- Created via RingCentral App Connect'; break; case 'Voicemail': const decodedRecordingLink = decodeURIComponent(recordingLink); title = `Voicemail left by ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - logBody = `Voicemail recording link: ${decodedRecordingLink} \n\n--- Created via RingCentral CRM Extension`; + logBody = `Voicemail recording link: ${decodedRecordingLink} \n\n--- Created via RingCentral App Connect`; break; case 'Fax': title = `Fax document sent from ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - logBody = `Fax document link: ${faxDocLink} \n\n--- Created via RingCentral CRM Extension`; + logBody = `Fax document link: ${faxDocLink} \n\n--- Created via RingCentral App Connect`; break; } const postBody = { @@ -606,7 +606,7 @@ async function createContact({ user, authHeader, phoneNumber, newContactName, ne else { let companyPostBody = { companyName: 'RingCentral_CRM_Extension_Placeholder_Company', - comments: "This company was created automatically by the RingCentral Unified CRM Extension. Feel free to edit, or associate this company's contacts to more appropriate records.", + comments: "This company was created automatically by the RingCentral App Connect. Feel free to edit, or associate this company's contacts to more appropriate records.", }; if (oneWorldEnabled !== undefined && oneWorldEnabled === true) { companyPostBody.subsidiary = { id: subsidiaryId }; diff --git a/src/adapters/pipedrive/index.js b/src/adapters/pipedrive/index.js index 0c60a406..3f499e18 100644 --- a/src/adapters/pipedrive/index.js +++ b/src/adapters/pipedrive/index.js @@ -182,7 +182,7 @@ async function createCallLog({ user, contactInfo, authHeader, callLog, note, add person_id: contactInfo.id, org_id: orgId, deal_id: dealId, - note: `

[Phone Number] ${contactInfo.phoneNumber}

[Time] ${moment(callLog.startTime).utcOffset(user.timezoneOffset).format('YYYY-MM-DD hh:mm:ss A')}

[Duration] ${callLog.duration} seconds

[Call result] ${callLog.result}

[Note]${note}

${callLog.recording ? `

[Call recording link] open

` : ''}

[Created via] RingCentral CRM Extension

`, + note: `

[Phone Number] ${contactInfo.phoneNumber}

[Time] ${moment(callLog.startTime).utcOffset(user.timezoneOffset).format('YYYY-MM-DD hh:mm:ss A')}

[Duration] ${callLog.duration} seconds

[Call result] ${callLog.result}

[Note]${note}

${callLog.recording ? `

[Call recording link] open

` : ''}

[Created via] RingCentral App Connect

`, done: true, due_date: dateUtc, due_time: timeUtc @@ -285,15 +285,15 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi '' + '------------
' + 'END

' + - '--- Created via RingCentral CRM Extension'; + '--- Created via RingCentral App Connect'; break; case 'Voicemail': subject = `Voicemail left by ${contactInfo.name} - ${moment(message.creationTime).utcOffset(user.timezoneOffset).format('YY/MM/DD')}`; - note = `
${subject}
Voicemail recording link: ${recordingLink}

--- Created via RingCentral CRM Extension`; + note = `
${subject}
Voicemail recording link: ${recordingLink}

--- Created via RingCentral App Connect`; break; case 'Fax': subject = `Fax document sent from ${contactInfo.name} - ${moment(message.creationTime).utcOffset(user.timezoneOffset).format('YY/MM/DD')}`; - note = `
${subject}
Fax document link: ${faxDocLink}

--- Created via RingCentral CRM Extension`; + note = `
${subject}
Fax document link: ${faxDocLink}

--- Created via RingCentral App Connect`; break; } const postBody = { diff --git a/src/adapters/pipedrive/redirect.html b/src/adapters/pipedrive/redirect.html index cb8b0f8e..0a13d010 100644 --- a/src/adapters/pipedrive/redirect.html +++ b/src/adapters/pipedrive/redirect.html @@ -87,7 +87,7 @@ header.innerHTML = 'RingCentral Extension for Pipedrive'; contentDiv.appendChild(header); if (!window.location.search.includes('code')) { - header.innerHTML = 'Thank you for installing the RingCentral Unified CRM extension for Pipedrive'; + header.innerHTML = 'Thank you for installing the RingCentral App Connect for Pipedrive'; const descriptionDev = window.document.createElement('div'); contentDiv.appendChild(descriptionDev); descriptionDev.innerHTML = 'To connect to Pipedrive, please visit Pipdrive Marketplace and click "Install now"'; diff --git a/src/adapters/redtail/index.js b/src/adapters/redtail/index.js index fd35b87b..1df39ac2 100644 --- a/src/adapters/redtail/index.js +++ b/src/adapters/redtail/index.js @@ -137,7 +137,7 @@ async function createCallLog({ user, contactInfo, callLog, note }) { const callRecordingDetail = callLog.recording ? `\nCall recording link: open` : ""; const postBody = { subject: callLog.customSubject ?? `${callLog.direction} Call ${callLog.direction === 'Outbound' ? 'to' : 'from'} ${contactInfo.name}`, - description: `This was a ${callLog.duration} seconds call ${callLog.direction === 'Outbound' ? `to ${contactInfo.name}(${callLog.to.phoneNumber})` : `from ${contactInfo.name}(${callLog.from.phoneNumber})`}.
${descriptionNotes}
${callRecordingDetail}
Created via: RingCentral CRM Extension`, + description: `This was a ${callLog.duration} seconds call ${callLog.direction === 'Outbound' ? `to ${contactInfo.name}(${callLog.to.phoneNumber})` : `from ${contactInfo.name}(${callLog.from.phoneNumber})`}.
${descriptionNotes}
${callRecordingDetail}
Created via: RingCentral App Connect`, start_date: moment(callLog.startTime).utc().toISOString(), end_date: moment(callLog.startTime).utc().add(callLog.duration, 'seconds').toISOString(), activity_code_id: 3, @@ -260,15 +260,15 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi '' + '------------
' + 'END

' + - '--- Created via RingCentral CRM Extension'; + '--- Created via RingCentral App Connect'; break; case 'Voicemail': subject = `Voicemail left by ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - description = `
${subject}
Voicemail recording link: ${recordingLink}

--- Created via RingCentral CRM Extension`; + description = `
${subject}
Voicemail recording link: ${recordingLink}

--- Created via RingCentral App Connect`; break; case 'Fax': subject = `Fax document sent from ${contactInfo.name} - ${moment(message.creationTime).format('YY/MM/DD')}`; - description = `
${subject}
Fax document link: ${faxDocLink}

--- Created via RingCentral CRM Extension`; + description = `
${subject}
Fax document link: ${faxDocLink}

--- Created via RingCentral App Connect`; break; } diff --git a/src/adapters/testCRM/index.js b/src/adapters/testCRM/index.js index b4753042..3a2f0e66 100644 --- a/src/adapters/testCRM/index.js +++ b/src/adapters/testCRM/index.js @@ -214,7 +214,7 @@ async function createCallLog({ user, contactInfo, authHeader, callLog, note, add // const postBody = { // subject: callLog.customSubject ?? `[Call] ${callLog.direction} Call ${callLog.direction === 'Outbound' ? 'to' : 'from'} ${contactInfo.name} [${contactInfo.phone}]`, - // body: `\nContact Number: ${contactInfo.phoneNumber}\nCall Result: ${callLog.result}\nNote: ${note}${callLog.recording ? `\n[Call recording link] ${callLog.recording.link}` : ''}\n\n--- Created via RingCentral CRM Extension`, + // body: `\nContact Number: ${contactInfo.phoneNumber}\nCall Result: ${callLog.result}\nNote: ${note}${callLog.recording ? `\n[Call recording link] ${callLog.recording.link}` : ''}\n\n--- Created via RingCentral App Connect`, // type: 'PhoneCommunication', // received_at: moment(callLog.startTime).toISOString() // } @@ -344,7 +344,7 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi // const postBody = { // data: { // subject: `[SMS] ${message.direction} SMS - ${message.from.name ?? ''}(${message.from.phoneNumber}) to ${message.to[0].name ?? ''}(${message.to[0].phoneNumber})`, - // body: `${message.direction} SMS - ${message.direction == 'Inbound' ? `from ${message.from.name ?? ''}(${message.from.phoneNumber})` : `to ${message.to[0].name ?? ''}(${message.to[0].phoneNumber})`} \n${!!message.subject ? `[Message] ${message.subject}` : ''} ${!!recordingLink ? `\n[Recording link] ${recordingLink}` : ''}\n\n--- Created via RingCentral CRM Extension`, + // body: `${message.direction} SMS - ${message.direction == 'Inbound' ? `from ${message.from.name ?? ''}(${message.from.phoneNumber})` : `to ${message.to[0].name ?? ''}(${message.to[0].phoneNumber})`} \n${!!message.subject ? `[Message] ${message.subject}` : ''} ${!!recordingLink ? `\n[Recording link] ${recordingLink}` : ''}\n\n--- Created via RingCentral App Connect`, // type: 'Message' // } // }