Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ringcentral/rc-unified-crm-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKingKong committed Jul 19, 2024
2 parents b06cc6a + 8242d1c commit 4490a7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/adapters/netsuite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function getUserInfo({ authHeader, additionalInfo, query }) {
console.log({ message: "Error in getting User Info", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Employee Record && Lists -> Employee' permission to authorize. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Employee Record & Lists -> Employee' permission to authorize. Please contact your administrator."
: "Error in getting NetSuite User Info.";
return {
successful: false,
Expand Down Expand Up @@ -179,7 +179,7 @@ async function findContact({ user, authHeader, phoneNumber, overridingFormat })
console.log({ message: "Error in Finding Contact/Customer", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Reports -> SuiteAnalytics Workbook, Lists -> Contacts && Lists -> Customer' permission to fetch details. Please contact your administrator."
? "Permission violation: Make Sure You have 'Reports -> SuiteAnalytics Workbook, Lists -> Contacts & Lists -> Customer' permission to fetch details. Please contact your administrator."
: "Error in Finding Contact.";
return {
successful: false,
Expand Down Expand Up @@ -257,7 +257,7 @@ async function createCallLog({ user, contactInfo, authHeader, callLog, note, add
console.log({ message: "Error in creating Call Log", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts && Lists -> Customers' permission to CallLog. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts & Lists -> Customers' permission to CallLog. Please contact your administrator."
: "Error in Creating Call Log";
return {
returnMessage: {
Expand Down Expand Up @@ -294,7 +294,7 @@ async function getCallLog({ user, callLogId, authHeader }) {
console.log({ message: "Error in getting Call Log", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts && Lists -> Customers' permission to CallLog. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts & Lists -> Customers' permission to CallLog. Please contact your administrator."
: "Error in getting NetSuite Call Log.";
return {
returnMessage: {
Expand Down Expand Up @@ -356,7 +356,7 @@ async function updateCallLog({ user, existingCallLog, authHeader, recordingLink,
console.log({ message: "Error in Updating Call Log", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts && Lists -> Customers' permission to CallLog. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts & Lists -> Customers' permission to CallLog. Please contact your administrator."
: "Error in getting Updating Call Log.";
return {
returnMessage: {
Expand Down Expand Up @@ -453,7 +453,7 @@ async function createMessageLog({ user, contactInfo, authHeader, message, additi
console.log({ message: "Error in creating Message Log", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts && Lists -> Customers' permission to Message Log. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts & Lists -> Customers' permission to Message Log. Please contact your administrator."
: "Error in Creating Message Log";
return {
returnMessage: {
Expand Down Expand Up @@ -504,7 +504,7 @@ async function updateMessageLog({ user, contactInfo, existingMessageLog, message
console.log({ message: "Error in Updating Message Log", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts && Lists -> Customers' permission to MessageLog. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Phone Calls, Lists -> Contacts & Lists -> Customers' permission to MessageLog. Please contact your administrator."
: "Error in Updating Message Log";
return {
returnMessage: {
Expand Down Expand Up @@ -632,7 +632,7 @@ async function createContact({ user, authHeader, phoneNumber, newContactName, ne
console.log({ message: "Error in creating Contact/Customer", error });
const isForbiddenError = isNetSuiteForbiddenError(error);
const errorMessage = isForbiddenError
? "Permission violation: Make Sure You have 'Lists -> Contacts && Lists -> Customers' permission to Create Contact/Customer. Please contact your administrator."
? "Permission violation: Make Sure You have 'Lists -> Contacts & Lists -> Customers' permission to Create Contact/Customer. Please contact your administrator."
: "Error in Creating Contact/Customer Log";
return {
returnMessage: {
Expand Down

0 comments on commit 4490a7e

Please sign in to comment.