From 61d6ecb03d1fcdc49a2a4ffd8682913e14d01417 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Thu, 21 Nov 2019 12:57:37 -0500 Subject: [PATCH] :lipstick: removed comments --- .../nodes/Intercom/Intercom.node.ts | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/packages/nodes-base/nodes/Intercom/Intercom.node.ts b/packages/nodes-base/nodes/Intercom/Intercom.node.ts index 7cdaec3833..bb59d277f3 100644 --- a/packages/nodes-base/nodes/Intercom/Intercom.node.ts +++ b/packages/nodes-base/nodes/Intercom/Intercom.node.ts @@ -170,18 +170,6 @@ export class Intercom implements INodeType { }); body.companies = companies; } - // console.log(options.segments) - // if (options.segments) { - // const segments: ISegment[] = []; - // // @ts-ignore - // options.segments.forEach( o => { - // const segment: ISegment = {}; - // segment.id = o; - // segment.type = 'segment'; - // segments.push(segment); - // }); - // body.segments = { segments }; - // } if (!jsonActive) { const customAttributesValues = (this.getNodeParameter('customAttributesUi', i) as IDataObject).customAttributesValues as IDataObject[]; if (customAttributesValues) { @@ -192,25 +180,7 @@ export class Intercom implements INodeType { } body.custom_attributes = customAttributes; } - // const socialProfilesValues = (this.getNodeParameter('socialProfilesUi', i) as IDataObject).socialProfilesValues as IDataObject[]; - // if (socialProfilesValues && socialProfilesValues.length > 0) { - // const socialProfiles: ISocialProfile[] = []; - // socialProfilesValues.forEach( o => { - // const socialProfile: ISocialProfile = {}; - // socialProfile.name = o.name as string; - // socialProfile.type = 'social_profile'; - // socialProfile.username = o.username as string; - // socialProfile.url = o.url as string; - // socialProfile.id = o.id as string; - // socialProfiles.push(socialProfile); - // }); - // body.social_profiles = socialProfiles; - // } } else { - // const socialProfilesJson = validateJSON(this.getNodeParameter('socialProfilesJson', i) as string); - // if (socialProfilesJson) { - // body.social_profiles = socialProfilesJson; - // } const customAttributesJson = validateJSON(this.getNodeParameter('customAttributesJson', i) as string); if (customAttributesJson) { body.custom_attributes = customAttributesJson;