{"version":3,"sources":["node_modules/@vendasta/sales/fesm2020/vendasta-sales.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nimport { map, mapTo, share, switchMap } from 'rxjs/operators';\nimport { EMPTY, throwError, of } from 'rxjs';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar Archived = /*#__PURE__*/function (Archived) {\n Archived[Archived[\"ARCHIVED_ANY\"] = 0] = \"ARCHIVED_ANY\";\n Archived[Archived[\"ARCHIVED_YES\"] = 1] = \"ARCHIVED_YES\";\n Archived[Archived[\"ARCHIVED_NO\"] = 2] = \"ARCHIVED_NO\";\n return Archived;\n}(Archived || {});\nvar Campaign = /*#__PURE__*/function (Campaign) {\n Campaign[Campaign[\"CAMPAIGN_ANY\"] = 0] = \"CAMPAIGN_ANY\";\n Campaign[Campaign[\"CAMPAIGN_ON\"] = 1] = \"CAMPAIGN_ON\";\n Campaign[Campaign[\"CAMPAIGN_OFF\"] = 2] = \"CAMPAIGN_OFF\";\n return Campaign;\n}(Campaign || {});\nvar LifecycleStage = /*#__PURE__*/function (LifecycleStage) {\n LifecycleStage[LifecycleStage[\"LIFECYCLE_STAGE_UNSET\"] = 0] = \"LIFECYCLE_STAGE_UNSET\";\n LifecycleStage[LifecycleStage[\"LIFECYCLE_STAGE_LEAD\"] = 1] = \"LIFECYCLE_STAGE_LEAD\";\n LifecycleStage[LifecycleStage[\"LIFECYCLE_STAGE_PROSPECT\"] = 2] = \"LIFECYCLE_STAGE_PROSPECT\";\n LifecycleStage[LifecycleStage[\"LIFECYCLE_STAGE_CUSTOMER\"] = 3] = \"LIFECYCLE_STAGE_CUSTOMER\";\n return LifecycleStage;\n}(LifecycleStage || {});\nvar Snapshot = /*#__PURE__*/function (Snapshot) {\n Snapshot[Snapshot[\"SNAPSHOT_ANY\"] = 0] = \"SNAPSHOT_ANY\";\n Snapshot[Snapshot[\"SNAPSHOT_SENT\"] = 1] = \"SNAPSHOT_SENT\";\n Snapshot[Snapshot[\"SNAPSHOT_NOT_SENT\"] = 2] = \"SNAPSHOT_NOT_SENT\";\n return Snapshot;\n}(Snapshot || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar ActionCategory = /*#__PURE__*/function (ActionCategory) {\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_UNKNOWN\"] = 0] = \"ACTION_CATEGORY_UNKNOWN\";\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_CLICK\"] = 1] = \"ACTION_CATEGORY_CLICK\";\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_VIEW\"] = 2] = \"ACTION_CATEGORY_VIEW\";\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_LINGER\"] = 3] = \"ACTION_CATEGORY_LINGER\";\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_TYPED\"] = 4] = \"ACTION_CATEGORY_TYPED\";\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_PURCHASED\"] = 5] = \"ACTION_CATEGORY_PURCHASED\";\n ActionCategory[ActionCategory[\"ACTION_CATEGORY_ADDED_TO_CART\"] = 6] = \"ACTION_CATEGORY_ADDED_TO_CART\";\n return ActionCategory;\n}(ActionCategory || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar TicketPriority = /*#__PURE__*/function (TicketPriority) {\n TicketPriority[TicketPriority[\"TICKET_PRIORITY_UNSET\"] = 0] = \"TICKET_PRIORITY_UNSET\";\n TicketPriority[TicketPriority[\"TICKET_PRIORITY_LOW\"] = 1] = \"TICKET_PRIORITY_LOW\";\n TicketPriority[TicketPriority[\"TICKET_PRIORITY_MEDIUM\"] = 2] = \"TICKET_PRIORITY_MEDIUM\";\n TicketPriority[TicketPriority[\"TICKET_PRIORITY_HIGH\"] = 3] = \"TICKET_PRIORITY_HIGH\";\n TicketPriority[TicketPriority[\"TICKET_PRIORITY_URGENT\"] = 4] = \"TICKET_PRIORITY_URGENT\";\n return TicketPriority;\n}(TicketPriority || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar CriteriaMatchType = /*#__PURE__*/function (CriteriaMatchType) {\n CriteriaMatchType[CriteriaMatchType[\"CRITERIA_MATCH_TYPE_ALL\"] = 0] = \"CRITERIA_MATCH_TYPE_ALL\";\n CriteriaMatchType[CriteriaMatchType[\"CRITERIA_MATCH_TYPE_ANY\"] = 1] = \"CRITERIA_MATCH_TYPE_ANY\";\n return CriteriaMatchType;\n}(CriteriaMatchType || {});\nvar TagMatchType = /*#__PURE__*/function (TagMatchType) {\n TagMatchType[TagMatchType[\"TAG_MATCH_TYPE_ALL\"] = 0] = \"TAG_MATCH_TYPE_ALL\";\n TagMatchType[TagMatchType[\"TAG_MATCH_TYPE_ANY\"] = 1] = \"TAG_MATCH_TYPE_ANY\";\n return TagMatchType;\n}(TagMatchType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar Frequency = /*#__PURE__*/function (Frequency) {\n Frequency[Frequency[\"FREQUENCY_ONETIME\"] = 0] = \"FREQUENCY_ONETIME\";\n Frequency[Frequency[\"FREQUENCY_DAILY\"] = 1] = \"FREQUENCY_DAILY\";\n Frequency[Frequency[\"FREQUENCY_WEEKLY\"] = 2] = \"FREQUENCY_WEEKLY\";\n Frequency[Frequency[\"FREQUENCY_BIWEEKLY\"] = 3] = \"FREQUENCY_BIWEEKLY\";\n Frequency[Frequency[\"FREQUENCY_MONTHLY\"] = 4] = \"FREQUENCY_MONTHLY\";\n Frequency[Frequency[\"FREQUENCY_YEARLY\"] = 5] = \"FREQUENCY_YEARLY\";\n return Frequency;\n}(Frequency || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar Currency = /*#__PURE__*/function (Currency) {\n Currency[Currency[\"USD\"] = 0] = \"USD\";\n Currency[Currency[\"CAD\"] = 1] = \"CAD\";\n Currency[Currency[\"EUR\"] = 2] = \"EUR\";\n Currency[Currency[\"AUD\"] = 3] = \"AUD\";\n Currency[Currency[\"GBP\"] = 4] = \"GBP\";\n Currency[Currency[\"NZD\"] = 5] = \"NZD\";\n Currency[Currency[\"ZAR\"] = 6] = \"ZAR\";\n return Currency;\n}(Currency || {});\nvar DurationPeriod = /*#__PURE__*/function (DurationPeriod) {\n DurationPeriod[DurationPeriod[\"UNSPECIFIED\"] = 0] = \"UNSPECIFIED\";\n DurationPeriod[DurationPeriod[\"MONTH\"] = 1] = \"MONTH\";\n DurationPeriod[DurationPeriod[\"YEAR\"] = 2] = \"YEAR\";\n DurationPeriod[DurationPeriod[\"DAY\"] = 3] = \"DAY\";\n DurationPeriod[DurationPeriod[\"WEEK\"] = 4] = \"WEEK\";\n return DurationPeriod;\n}(DurationPeriod || {});\nvar RevenuePeriod = /*#__PURE__*/function (RevenuePeriod) {\n RevenuePeriod[RevenuePeriod[\"ONETIME\"] = 0] = \"ONETIME\";\n RevenuePeriod[RevenuePeriod[\"DAILY\"] = 1] = \"DAILY\";\n RevenuePeriod[RevenuePeriod[\"WEEKLY\"] = 2] = \"WEEKLY\";\n RevenuePeriod[RevenuePeriod[\"BIWEEKLY\"] = 3] = \"BIWEEKLY\";\n RevenuePeriod[RevenuePeriod[\"MONTHLY\"] = 4] = \"MONTHLY\";\n RevenuePeriod[RevenuePeriod[\"YEARLY\"] = 5] = \"YEARLY\";\n return RevenuePeriod;\n}(RevenuePeriod || {});\n// *********************************\n\nfunction enumStringToValue$a(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Salesperson {\n static fromProto(proto) {\n let m = new Salesperson();\n m = Object.assign(m, proto);\n if (proto.lastLogin) {\n m.lastLogin = new Date(proto.lastLogin);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.firstName !== 'undefined') {\n toReturn['firstName'] = this.firstName;\n }\n if (typeof this.lastName !== 'undefined') {\n toReturn['lastName'] = this.lastName;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n if (typeof this.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.photoUrlHttps !== 'undefined') {\n toReturn['photoUrlHttps'] = this.photoUrlHttps;\n }\n if (typeof this.lastLogin !== 'undefined' && this.lastLogin !== null) {\n toReturn['lastLogin'] = 'toApiJson' in this.lastLogin ? this.lastLogin.toApiJson() : this.lastLogin;\n }\n if (typeof this.jobTitle !== 'undefined') {\n toReturn['jobTitle'] = this.jobTitle;\n }\n if (typeof this.isSalesManager !== 'undefined') {\n toReturn['isSalesManager'] = this.isSalesManager;\n }\n if (typeof this.meetingBookingUrl !== 'undefined') {\n toReturn['meetingBookingUrl'] = this.meetingBookingUrl;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$9(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass SalesTeam {\n static fromProto(proto) {\n let m = new SalesTeam();\n m = Object.assign(m, proto);\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.teamName !== 'undefined') {\n toReturn['teamName'] = this.teamName;\n }\n if (typeof this.groupId !== 'undefined') {\n toReturn['groupId'] = this.groupId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$8(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass SalesActivity {\n static fromProto(proto) {\n let m = new SalesActivity();\n m = Object.assign(m, proto);\n if (proto.key) {\n m.key = SalesActivityKey.fromProto(proto.key);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.lastEdited) {\n m.lastEdited = new Date(proto.lastEdited);\n }\n if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.key !== 'undefined' && this.key !== null) {\n toReturn['key'] = 'toApiJson' in this.key ? this.key.toApiJson() : this.key;\n }\n if (typeof this.opportunityId !== 'undefined') {\n toReturn['opportunityId'] = this.opportunityId;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.salesStatus !== 'undefined') {\n toReturn['salesStatus'] = this.salesStatus;\n }\n if (typeof this.previousSalesStatus !== 'undefined') {\n toReturn['previousSalesStatus'] = this.previousSalesStatus;\n }\n if (typeof this.salespersonAction !== 'undefined') {\n toReturn['salespersonAction'] = this.salespersonAction;\n }\n if (typeof this.customActionName !== 'undefined') {\n toReturn['customActionName'] = this.customActionName;\n }\n if (typeof this.productName !== 'undefined') {\n toReturn['productName'] = this.productName;\n }\n if (typeof this.productPrice !== 'undefined') {\n toReturn['productPrice'] = this.productPrice;\n }\n if (typeof this.connected !== 'undefined') {\n toReturn['connected'] = this.connected;\n }\n if (typeof this.notes !== 'undefined') {\n toReturn['notes'] = this.notes;\n }\n if (typeof this.closedLostReason !== 'undefined') {\n toReturn['closedLostReason'] = this.closedLostReason;\n }\n if (typeof this.audioKey !== 'undefined') {\n toReturn['audioKey'] = this.audioKey;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.lastEdited !== 'undefined' && this.lastEdited !== null) {\n toReturn['lastEdited'] = 'toApiJson' in this.lastEdited ? this.lastEdited.toApiJson() : this.lastEdited;\n }\n if (typeof this.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.opportunityName !== 'undefined') {\n toReturn['opportunityName'] = this.opportunityName;\n }\n if (typeof this.salesPersonName !== 'undefined') {\n toReturn['salesPersonName'] = this.salesPersonName;\n }\n return toReturn;\n }\n}\nclass SalesActivityKey {\n static fromProto(proto) {\n let m = new SalesActivityKey();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesActivityId !== 'undefined') {\n toReturn['salesActivityId'] = this.salesActivityId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$7(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Business {\n static fromProto(proto) {\n let m = new Business();\n m = Object.assign(m, proto);\n if (proto.hotness) {\n m.hotness = parseInt(proto.hotness, 10);\n }\n if (proto.lastSalesActivityDate) {\n m.lastSalesActivityDate = new Date(proto.lastSalesActivityDate);\n }\n if (proto.lastCustomerActivityDate) {\n m.lastCustomerActivityDate = new Date(proto.lastCustomerActivityDate);\n }\n if (proto.latestSnapshotExpiry) {\n m.latestSnapshotExpiry = new Date(proto.latestSnapshotExpiry);\n }\n if (proto.lastConnectedDate) {\n m.lastConnectedDate = new Date(proto.lastConnectedDate);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.hotness !== 'undefined') {\n toReturn['hotness'] = this.hotness;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n if (typeof this.zip !== 'undefined') {\n toReturn['zip'] = this.zip;\n }\n if (typeof this.address !== 'undefined') {\n toReturn['address'] = this.address;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.lastSalesActivityDate !== 'undefined' && this.lastSalesActivityDate !== null) {\n toReturn['lastSalesActivityDate'] = 'toApiJson' in this.lastSalesActivityDate ? this.lastSalesActivityDate.toApiJson() : this.lastSalesActivityDate;\n }\n if (typeof this.lastCustomerActivityDate !== 'undefined' && this.lastCustomerActivityDate !== null) {\n toReturn['lastCustomerActivityDate'] = 'toApiJson' in this.lastCustomerActivityDate ? this.lastCustomerActivityDate.toApiJson() : this.lastCustomerActivityDate;\n }\n if (typeof this.salesStatus !== 'undefined') {\n toReturn['salesStatus'] = this.salesStatus;\n }\n if (typeof this.isRead !== 'undefined') {\n toReturn['isRead'] = this.isRead;\n }\n if (typeof this.salesPersonAction !== 'undefined') {\n toReturn['salesPersonAction'] = this.salesPersonAction;\n }\n if (typeof this.latestSnapshotExpiry !== 'undefined' && this.latestSnapshotExpiry !== null) {\n toReturn['latestSnapshotExpiry'] = 'toApiJson' in this.latestSnapshotExpiry ? this.latestSnapshotExpiry.toApiJson() : this.latestSnapshotExpiry;\n }\n if (typeof this.snapshotOrCampaignEmailStatus !== 'undefined') {\n toReturn['snapshotOrCampaignEmailStatus'] = this.snapshotOrCampaignEmailStatus;\n }\n if (typeof this.activityType !== 'undefined') {\n toReturn['activityType'] = this.activityType;\n }\n if (typeof this.lastConnectedDate !== 'undefined' && this.lastConnectedDate !== null) {\n toReturn['lastConnectedDate'] = 'toApiJson' in this.lastConnectedDate ? this.lastConnectedDate.toApiJson() : this.lastConnectedDate;\n }\n if (typeof this.lifecycleStage !== 'undefined') {\n toReturn['lifecycleStage'] = this.lifecycleStage;\n }\n return toReturn;\n }\n}\nclass BusinessPagedResponseMetadata {\n static fromProto(proto) {\n let m = new BusinessPagedResponseMetadata();\n m = Object.assign(m, proto);\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nclass BusinessSearchFilters {\n static fromProto(proto) {\n let m = new BusinessSearchFilters();\n m = Object.assign(m, proto);\n if (proto.fromDate) {\n m.fromDate = new Date(proto.fromDate);\n }\n if (proto.toDate) {\n m.toDate = new Date(proto.toDate);\n }\n if (proto.archived) {\n m.archived = enumStringToValue$7(Archived, proto.archived);\n }\n if (proto.onCampaign) {\n m.onCampaign = enumStringToValue$7(Campaign, proto.onCampaign);\n }\n if (proto.snapshotSent) {\n m.snapshotSent = enumStringToValue$7(Snapshot, proto.snapshotSent);\n }\n if (proto.lifecycleStage) {\n m.lifecycleStage = enumStringToValue$7(LifecycleStage, proto.lifecycleStage);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.salesStatuses !== 'undefined') {\n toReturn['salesStatuses'] = this.salesStatuses;\n }\n if (typeof this.salesAction !== 'undefined') {\n toReturn['salesAction'] = this.salesAction;\n }\n if (typeof this.fromDate !== 'undefined' && this.fromDate !== null) {\n toReturn['fromDate'] = 'toApiJson' in this.fromDate ? this.fromDate.toApiJson() : this.fromDate;\n }\n if (typeof this.toDate !== 'undefined' && this.toDate !== null) {\n toReturn['toDate'] = 'toApiJson' in this.toDate ? this.toDate.toApiJson() : this.toDate;\n }\n if (typeof this.archived !== 'undefined') {\n toReturn['archived'] = this.archived;\n }\n if (typeof this.accountTags !== 'undefined') {\n toReturn['accountTags'] = this.accountTags;\n }\n if (typeof this.businessCategories !== 'undefined') {\n toReturn['businessCategories'] = this.businessCategories;\n }\n if (typeof this.onCampaign !== 'undefined') {\n toReturn['onCampaign'] = this.onCampaign;\n }\n if (typeof this.snapshotSent !== 'undefined') {\n toReturn['snapshotSent'] = this.snapshotSent;\n }\n if (typeof this.query !== 'undefined') {\n toReturn['query'] = this.query;\n }\n if (typeof this.assignees !== 'undefined') {\n toReturn['assignees'] = this.assignees;\n }\n if (typeof this.goal !== 'undefined') {\n toReturn['goal'] = this.goal;\n }\n if (typeof this.trainingPriorities !== 'undefined') {\n toReturn['trainingPriorities'] = this.trainingPriorities;\n }\n if (typeof this.customFieldPartnerId !== 'undefined') {\n toReturn['customFieldPartnerId'] = this.customFieldPartnerId;\n }\n if (typeof this.lifecycleStage !== 'undefined') {\n toReturn['lifecycleStage'] = this.lifecycleStage;\n }\n return toReturn;\n }\n}\nclass BusinessSearchSortOptions {\n static fromProto(proto) {\n let m = new BusinessSearchSortOptions();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.sortKey !== 'undefined') {\n toReturn['sortKey'] = this.sortKey;\n }\n if (typeof this.sortAscending !== 'undefined') {\n toReturn['sortAscending'] = this.sortAscending;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$6(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass BulkUploadUserActionsRequest {\n static fromProto(proto) {\n let m = new BulkUploadUserActionsRequest();\n m = Object.assign(m, proto);\n if (proto.userActions) {\n m.userActions = proto.userActions.map(UserActionsRequest.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.userActions !== 'undefined' && this.userActions !== null) {\n toReturn['userActions'] = 'toApiJson' in this.userActions ? this.userActions.toApiJson() : this.userActions;\n }\n return toReturn;\n }\n}\nclass GetUserActionsRequest {\n static fromProto(proto) {\n let m = new GetUserActionsRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass UploadUserActionForCustomerIDRequest {\n static fromProto(proto) {\n let m = new UploadUserActionForCustomerIDRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$6(ActionCategory, proto.category);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.customerId !== 'undefined') {\n toReturn['customerId'] = this.customerId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n return toReturn;\n }\n}\nclass UserAction {\n static fromProto(proto) {\n let m = new UserAction();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.category) {\n m.category = enumStringToValue$6(ActionCategory, proto.category);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n return toReturn;\n }\n}\nclass UserActionsPagedResponseMetadata {\n static fromProto(proto) {\n let m = new UserActionsPagedResponseMetadata();\n m = Object.assign(m, proto);\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nclass UserActionsRequest {\n static fromProto(proto) {\n let m = new UserActionsRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$6(ActionCategory, proto.category);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n return toReturn;\n }\n}\nclass UserActionsResponse {\n static fromProto(proto) {\n let m = new UserActionsResponse();\n m = Object.assign(m, proto);\n if (proto.userActions) {\n m.userActions = proto.userActions.map(UserAction.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = UserActionsPagedResponseMetadata.fromProto(proto.pagingMetadata);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.userActions !== 'undefined' && this.userActions !== null) {\n toReturn['userActions'] = 'toApiJson' in this.userActions ? this.userActions.toApiJson() : this.userActions;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$5(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Contact {\n static fromProto(proto) {\n let m = new Contact();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.version !== 'undefined') {\n toReturn['version'] = this.version;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.contactId !== 'undefined') {\n toReturn['contactId'] = this.contactId;\n }\n if (typeof this.firstName !== 'undefined') {\n toReturn['firstName'] = this.firstName;\n }\n if (typeof this.lastName !== 'undefined') {\n toReturn['lastName'] = this.lastName;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n if (typeof this.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.phoneExtension !== 'undefined') {\n toReturn['phoneExtension'] = this.phoneExtension;\n }\n if (typeof this.title !== 'undefined') {\n toReturn['title'] = this.title;\n }\n if (typeof this.notes !== 'undefined') {\n toReturn['notes'] = this.notes;\n }\n if (typeof this.vbcUserId !== 'undefined') {\n toReturn['vbcUserId'] = this.vbcUserId;\n }\n if (typeof this.deleted !== 'undefined') {\n toReturn['deleted'] = this.deleted;\n }\n if (typeof this.deletedDate !== 'undefined') {\n toReturn['deletedDate'] = this.deletedDate;\n }\n if (typeof this.created !== 'undefined') {\n toReturn['created'] = this.created;\n }\n if (typeof this.updated !== 'undefined') {\n toReturn['updated'] = this.updated;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$4(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Access {\n static fromProto(proto) {\n let m = new Access();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.scope !== 'undefined') {\n toReturn['scope'] = this.scope;\n }\n if (typeof this.public !== 'undefined') {\n toReturn['public'] = this.public;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Attachment {\n static fromProto(proto) {\n let m = new Attachment();\n m = Object.assign(m, proto);\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.thumbnailUrl !== 'undefined') {\n toReturn['thumbnailUrl'] = this.thumbnailUrl;\n }\n return toReturn;\n }\n}\nclass Conversation {\n static fromProto(proto) {\n let m = new Conversation();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.attachments) {\n m.attachments = proto.attachments.map(Attachment.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.message !== 'undefined') {\n toReturn['message'] = this.message;\n }\n if (typeof this.fromEmail !== 'undefined') {\n toReturn['fromEmail'] = this.fromEmail;\n }\n if (typeof this.toEmails !== 'undefined') {\n toReturn['toEmails'] = this.toEmails;\n }\n if (typeof this.ticketId !== 'undefined') {\n toReturn['ticketId'] = this.ticketId;\n }\n if (typeof this.attachments !== 'undefined' && this.attachments !== null) {\n toReturn['attachments'] = 'toApiJson' in this.attachments ? this.attachments.toApiJson() : this.attachments;\n }\n return toReturn;\n }\n}\nclass Pagination {\n static fromProto(proto) {\n let m = new Pagination();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.pageIndex !== 'undefined') {\n toReturn['pageIndex'] = this.pageIndex;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass Ticket {\n static fromProto(proto) {\n let m = new Ticket();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 10);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.requested) {\n m.requested = new Date(proto.requested);\n }\n if (proto.requesterId) {\n m.requesterId = parseInt(proto.requesterId, 10);\n }\n if (proto.responderId) {\n m.responderId = parseInt(proto.responderId, 10);\n }\n if (proto.statusId) {\n m.statusId = parseInt(proto.statusId, 10);\n }\n if (proto.sourceId) {\n m.sourceId = parseInt(proto.sourceId, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.requested !== 'undefined' && this.requested !== null) {\n toReturn['requested'] = 'toApiJson' in this.requested ? this.requested.toApiJson() : this.requested;\n }\n if (typeof this.requesterId !== 'undefined') {\n toReturn['requesterId'] = this.requesterId;\n }\n if (typeof this.responderId !== 'undefined') {\n toReturn['responderId'] = this.responderId;\n }\n if (typeof this.subject !== 'undefined') {\n toReturn['subject'] = this.subject;\n }\n if (typeof this.statusId !== 'undefined') {\n toReturn['statusId'] = this.statusId;\n }\n if (typeof this.sourceId !== 'undefined') {\n toReturn['sourceId'] = this.sourceId;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$2(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass AutoAssignCriteriaAccountOriginCriteria {\n static fromProto(proto) {\n let m = new AutoAssignCriteriaAccountOriginCriteria();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.origin !== 'undefined') {\n toReturn['origin'] = this.origin;\n }\n return toReturn;\n }\n}\nclass AddContactToCampaignRequest {\n static fromProto(proto) {\n let m = new AddContactToCampaignRequest();\n m = Object.assign(m, proto);\n if (proto.contact) {\n m.contact = AddContactToCampaignRequestRecipient.fromProto(proto.contact);\n }\n if (proto.sender) {\n m.sender = AddContactToCampaignRequestSender.fromProto(proto.sender);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.campaignId !== 'undefined') {\n toReturn['campaignId'] = this.campaignId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.contact !== 'undefined' && this.contact !== null) {\n toReturn['contact'] = 'toApiJson' in this.contact ? this.contact.toApiJson() : this.contact;\n }\n if (typeof this.sender !== 'undefined' && this.sender !== null) {\n toReturn['sender'] = 'toApiJson' in this.sender ? this.sender.toApiJson() : this.sender;\n }\n return toReturn;\n }\n}\nclass AutoAssignRuleAppKey {\n static fromProto(proto) {\n let m = new AutoAssignRuleAppKey();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.editionId !== 'undefined') {\n toReturn['editionId'] = this.editionId;\n }\n return toReturn;\n }\n}\nclass AssignSalesTaskRequest {\n static fromProto(proto) {\n let m = new AssignSalesTaskRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.taskId !== 'undefined') {\n toReturn['taskId'] = this.taskId;\n }\n if (typeof this.salespersonUserId !== 'undefined') {\n toReturn['salespersonUserId'] = this.salespersonUserId;\n }\n return toReturn;\n }\n}\nclass AutoAssignCriteria {\n static fromProto(proto) {\n let m = new AutoAssignCriteria();\n m = Object.assign(m, proto);\n if (proto.locationCriteria) {\n m.locationCriteria = AutoAssignCriteriaLocationCriteria.fromProto(proto.locationCriteria);\n }\n if (proto.categoryCriteria) {\n m.categoryCriteria = AutoAssignCriteriaCategoryCriteria.fromProto(proto.categoryCriteria);\n }\n if (proto.tagCriteria) {\n m.tagCriteria = AutoAssignCriteriaTagCriteria.fromProto(proto.tagCriteria);\n }\n if (proto.conversionPointCriteria) {\n m.conversionPointCriteria = AutoAssignCriteriaConversionPointCriteria.fromProto(proto.conversionPointCriteria);\n }\n if (proto.accountOriginCriteria) {\n m.accountOriginCriteria = AutoAssignCriteriaAccountOriginCriteria.fromProto(proto.accountOriginCriteria);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.locationCriteria !== 'undefined' && this.locationCriteria !== null) {\n toReturn['locationCriteria'] = 'toApiJson' in this.locationCriteria ? this.locationCriteria.toApiJson() : this.locationCriteria;\n }\n if (typeof this.categoryCriteria !== 'undefined' && this.categoryCriteria !== null) {\n toReturn['categoryCriteria'] = 'toApiJson' in this.categoryCriteria ? this.categoryCriteria.toApiJson() : this.categoryCriteria;\n }\n if (typeof this.tagCriteria !== 'undefined' && this.tagCriteria !== null) {\n toReturn['tagCriteria'] = 'toApiJson' in this.tagCriteria ? this.tagCriteria.toApiJson() : this.tagCriteria;\n }\n if (typeof this.conversionPointCriteria !== 'undefined' && this.conversionPointCriteria !== null) {\n toReturn['conversionPointCriteria'] = 'toApiJson' in this.conversionPointCriteria ? this.conversionPointCriteria.toApiJson() : this.conversionPointCriteria;\n }\n if (typeof this.accountOriginCriteria !== 'undefined' && this.accountOriginCriteria !== null) {\n toReturn['accountOriginCriteria'] = 'toApiJson' in this.accountOriginCriteria ? this.accountOriginCriteria.toApiJson() : this.accountOriginCriteria;\n }\n return toReturn;\n }\n}\nclass AutoAssignRule {\n static fromProto(proto) {\n let m = new AutoAssignRule();\n m = Object.assign(m, proto);\n if (proto.criteria) {\n m.criteria = proto.criteria.map(AutoAssignCriteria.fromProto);\n }\n if (proto.criteriaMatchType) {\n m.criteriaMatchType = enumStringToValue$2(CriteriaMatchType, proto.criteriaMatchType);\n }\n if (proto.appKeys) {\n m.appKeys = proto.appKeys.map(AutoAssignRuleAppKey.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.criteria !== 'undefined' && this.criteria !== null) {\n toReturn['criteria'] = 'toApiJson' in this.criteria ? this.criteria.toApiJson() : this.criteria;\n }\n if (typeof this.salespersonIds !== 'undefined') {\n toReturn['salespersonIds'] = this.salespersonIds;\n }\n if (typeof this.criteriaMatchType !== 'undefined') {\n toReturn['criteriaMatchType'] = this.criteriaMatchType;\n }\n if (typeof this.campaignId !== 'undefined') {\n toReturn['campaignId'] = this.campaignId;\n }\n if (typeof this.appKeys !== 'undefined' && this.appKeys !== null) {\n toReturn['appKeys'] = 'toApiJson' in this.appKeys ? this.appKeys.toApiJson() : this.appKeys;\n }\n return toReturn;\n }\n}\nclass BusinessListRequest {\n static fromProto(proto) {\n let m = new BusinessListRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketIds !== 'undefined') {\n toReturn['marketIds'] = this.marketIds;\n }\n if (typeof this.contactEmail !== 'undefined') {\n toReturn['contactEmail'] = this.contactEmail;\n }\n return toReturn;\n }\n}\nclass BusinessListResponse {\n static fromProto(proto) {\n let m = new BusinessListResponse();\n m = Object.assign(m, proto);\n if (proto.businesses) {\n m.businesses = proto.businesses.map(BusinessListResponseSalestoolBusiness.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businesses !== 'undefined' && this.businesses !== null) {\n toReturn['businesses'] = 'toApiJson' in this.businesses ? this.businesses.toApiJson() : this.businesses;\n }\n return toReturn;\n }\n}\nclass BusinessSearchRequest {\n static fromProto(proto) {\n let m = new BusinessSearchRequest();\n m = Object.assign(m, proto);\n if (proto.filters) {\n m.filters = BusinessSearchFilters.fromProto(proto.filters);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n if (proto.sortOptions) {\n m.sortOptions = BusinessSearchSortOptions.fromProto(proto.sortOptions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.filters !== 'undefined' && this.filters !== null) {\n toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {\n toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;\n }\n return toReturn;\n }\n}\nclass BusinessSearchResponse {\n static fromProto(proto) {\n let m = new BusinessSearchResponse();\n m = Object.assign(m, proto);\n if (proto.businesses) {\n m.businesses = proto.businesses.map(Business.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = BusinessPagedResponseMetadata.fromProto(proto.pagingMetadata);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businesses !== 'undefined' && this.businesses !== null) {\n toReturn['businesses'] = 'toApiJson' in this.businesses ? this.businesses.toApiJson() : this.businesses;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass AutoAssignCriteriaCategoryCriteria {\n static fromProto(proto) {\n let m = new AutoAssignCriteriaCategoryCriteria();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.categories !== 'undefined') {\n toReturn['categories'] = this.categories;\n }\n return toReturn;\n }\n}\nclass ContactCreateRequest {\n static fromProto(proto) {\n let m = new ContactCreateRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n if (typeof this.firstName !== 'undefined') {\n toReturn['firstName'] = this.firstName;\n }\n if (typeof this.lastName !== 'undefined') {\n toReturn['lastName'] = this.lastName;\n }\n if (typeof this.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.phoneNumberCountry !== 'undefined') {\n toReturn['phoneNumberCountry'] = this.phoneNumberCountry;\n }\n if (typeof this.phoneExtension !== 'undefined') {\n toReturn['phoneExtension'] = this.phoneExtension;\n }\n if (typeof this.notes !== 'undefined') {\n toReturn['notes'] = this.notes;\n }\n return toReturn;\n }\n}\nclass ContactCreateResponse {\n static fromProto(proto) {\n let m = new ContactCreateResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.contactId !== 'undefined') {\n toReturn['contactId'] = this.contactId;\n }\n return toReturn;\n }\n}\nclass AutoAssignCriteriaConversionPointCriteria {\n static fromProto(proto) {\n let m = new AutoAssignCriteriaConversionPointCriteria();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.conversionPoint !== 'undefined') {\n toReturn['conversionPoint'] = this.conversionPoint;\n }\n return toReturn;\n }\n}\nclass CreateBusinessActivityRequest {\n static fromProto(proto) {\n let m = new CreateBusinessActivityRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.activityType !== 'undefined') {\n toReturn['activityType'] = this.activityType;\n }\n if (typeof this.activityDetail !== 'undefined') {\n toReturn['activityDetail'] = this.activityDetail;\n }\n if (typeof this.productName !== 'undefined') {\n toReturn['productName'] = this.productName;\n }\n if (typeof this.productId !== 'undefined') {\n toReturn['productId'] = this.productId;\n }\n if (typeof this.doNotSendEmail !== 'undefined') {\n toReturn['doNotSendEmail'] = this.doNotSendEmail;\n }\n return toReturn;\n }\n}\nclass CreateOrUpdateAutoAssignConfigRequest {\n static fromProto(proto) {\n let m = new CreateOrUpdateAutoAssignConfigRequest();\n m = Object.assign(m, proto);\n if (proto.rules) {\n m.rules = proto.rules.map(AutoAssignRule.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.rules !== 'undefined' && this.rules !== null) {\n toReturn['rules'] = 'toApiJson' in this.rules ? this.rules.toApiJson() : this.rules;\n }\n return toReturn;\n }\n}\nclass CreateSalesActivityRequest {\n static fromProto(proto) {\n let m = new CreateSalesActivityRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.submittedBy !== 'undefined') {\n toReturn['submittedBy'] = this.submittedBy;\n }\n if (typeof this.action !== 'undefined') {\n toReturn['action'] = this.action;\n }\n if (typeof this.customActionName !== 'undefined') {\n toReturn['customActionName'] = this.customActionName;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.notes !== 'undefined') {\n toReturn['notes'] = this.notes;\n }\n return toReturn;\n }\n}\nclass CreateSalesActivityResponse {\n static fromProto(proto) {\n let m = new CreateSalesActivityResponse();\n m = Object.assign(m, proto);\n if (proto.salesActivity) {\n m.salesActivity = SalesActivity.fromProto(proto.salesActivity);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesActivity !== 'undefined' && this.salesActivity !== null) {\n toReturn['salesActivity'] = 'toApiJson' in this.salesActivity ? this.salesActivity.toApiJson() : this.salesActivity;\n }\n return toReturn;\n }\n}\nclass CreateSalesTaskRequest {\n static fromProto(proto) {\n let m = new CreateSalesTaskRequest();\n m = Object.assign(m, proto);\n if (proto.dueDate) {\n m.dueDate = new Date(proto.dueDate);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.title !== 'undefined') {\n toReturn['title'] = this.title;\n }\n if (typeof this.dueDate !== 'undefined' && this.dueDate !== null) {\n toReturn['dueDate'] = 'toApiJson' in this.dueDate ? this.dueDate.toApiJson() : this.dueDate;\n }\n if (typeof this.salespersonIds !== 'undefined') {\n toReturn['salespersonIds'] = this.salespersonIds;\n }\n return toReturn;\n }\n}\nclass CreateSalesTaskResponse {\n static fromProto(proto) {\n let m = new CreateSalesTaskResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.taskId !== 'undefined') {\n toReturn['taskId'] = this.taskId;\n }\n if (typeof this.taskNamespace !== 'undefined') {\n toReturn['taskNamespace'] = this.taskNamespace;\n }\n return toReturn;\n }\n}\nclass ExternalIdentifierCreateRequest {\n static fromProto(proto) {\n let m = new ExternalIdentifierCreateRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.externalIdProvider !== 'undefined') {\n toReturn['externalIdProvider'] = this.externalIdProvider;\n }\n if (typeof this.internalId !== 'undefined') {\n toReturn['internalId'] = this.internalId;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n return toReturn;\n }\n}\nclass ExternalIdentifierGetByInternalIDRequest {\n static fromProto(proto) {\n let m = new ExternalIdentifierGetByInternalIDRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.externalIdProvider !== 'undefined') {\n toReturn['externalIdProvider'] = this.externalIdProvider;\n }\n if (typeof this.internalId !== 'undefined') {\n toReturn['internalId'] = this.internalId;\n }\n return toReturn;\n }\n}\nclass ExternalIdentifierGetByInternalIDResponse {\n static fromProto(proto) {\n let m = new ExternalIdentifierGetByInternalIDResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n return toReturn;\n }\n}\nclass GetAssignedSalespersonForPartnerRequest {\n static fromProto(proto) {\n let m = new GetAssignedSalespersonForPartnerRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n return toReturn;\n }\n}\nclass GetAssignedSalespersonForPartnerResponse {\n static fromProto(proto) {\n let m = new GetAssignedSalespersonForPartnerResponse();\n m = Object.assign(m, proto);\n if (proto.salesperson) {\n m.salesperson = Salesperson.fromProto(proto.salesperson);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesperson !== 'undefined' && this.salesperson !== null) {\n toReturn['salesperson'] = 'toApiJson' in this.salesperson ? this.salesperson.toApiJson() : this.salesperson;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n return toReturn;\n }\n}\nclass GetAutoAssignConfigRequest {\n static fromProto(proto) {\n let m = new GetAutoAssignConfigRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n return toReturn;\n }\n}\nclass GetAutoAssignConfigResponse {\n static fromProto(proto) {\n let m = new GetAutoAssignConfigResponse();\n m = Object.assign(m, proto);\n if (proto.rules) {\n m.rules = proto.rules.map(AutoAssignRule.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.rules !== 'undefined' && this.rules !== null) {\n toReturn['rules'] = 'toApiJson' in this.rules ? this.rules.toApiJson() : this.rules;\n }\n return toReturn;\n }\n}\nclass GetConfigurationRequest {\n static fromProto(proto) {\n let m = new GetConfigurationRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n return toReturn;\n }\n}\nclass GetConfigurationResponse {\n static fromProto(proto) {\n let m = new GetConfigurationResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.domain !== 'undefined') {\n toReturn['domain'] = this.domain;\n }\n if (typeof this.isValid !== 'undefined') {\n toReturn['isValid'] = this.isValid;\n }\n return toReturn;\n }\n}\nclass GetContactsByEmailRequest {\n static fromProto(proto) {\n let m = new GetContactsByEmailRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n return toReturn;\n }\n}\nclass GetContactsResponse {\n static fromProto(proto) {\n let m = new GetContactsResponse();\n m = Object.assign(m, proto);\n if (proto.contacts) {\n m.contacts = proto.contacts.map(Contact.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.contacts !== 'undefined' && this.contacts !== null) {\n toReturn['contacts'] = 'toApiJson' in this.contacts ? this.contacts.toApiJson() : this.contacts;\n }\n return toReturn;\n }\n}\nclass GetMembersRequest {\n static fromProto(proto) {\n let m = new GetMembersRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.groupId !== 'undefined') {\n toReturn['groupId'] = this.groupId;\n }\n return toReturn;\n }\n}\nclass GetMembersResponse {\n static fromProto(proto) {\n let m = new GetMembersResponse();\n m = Object.assign(m, proto);\n if (proto.salesPeople) {\n m.salesPeople = proto.salesPeople.map(Salesperson.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesPeople !== 'undefined' && this.salesPeople !== null) {\n toReturn['salesPeople'] = 'toApiJson' in this.salesPeople ? this.salesPeople.toApiJson() : this.salesPeople;\n }\n return toReturn;\n }\n}\nclass GetMultiCampaignsRequest {\n static fromProto(proto) {\n let m = new GetMultiCampaignsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.campaignIds !== 'undefined') {\n toReturn['campaignIds'] = this.campaignIds;\n }\n return toReturn;\n }\n}\nclass GetMultiCampaignsResponse {\n static fromProto(proto) {\n let m = new GetMultiCampaignsResponse();\n m = Object.assign(m, proto);\n if (proto.campaigns) {\n m.campaigns = proto.campaigns.map(SalesCampaign.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.campaigns !== 'undefined' && this.campaigns !== null) {\n toReturn['campaigns'] = 'toApiJson' in this.campaigns ? this.campaigns.toApiJson() : this.campaigns;\n }\n return toReturn;\n }\n}\nclass GetMultiSalesActivityRequest {\n static fromProto(proto) {\n let m = new GetMultiSalesActivityRequest();\n m = Object.assign(m, proto);\n if (proto.keys) {\n m.keys = proto.keys.map(SalesActivityKey.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.keys !== 'undefined' && this.keys !== null) {\n toReturn['keys'] = 'toApiJson' in this.keys ? this.keys.toApiJson() : this.keys;\n }\n return toReturn;\n }\n}\nclass GetMultiSalesActivityResponse {\n static fromProto(proto) {\n let m = new GetMultiSalesActivityResponse();\n m = Object.assign(m, proto);\n if (proto.salesActivities) {\n m.salesActivities = proto.salesActivities.map(GetMultiSalesActivityResponseSalesActivityContainer.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesActivities !== 'undefined' && this.salesActivities !== null) {\n toReturn['salesActivities'] = 'toApiJson' in this.salesActivities ? this.salesActivities.toApiJson() : this.salesActivities;\n }\n return toReturn;\n }\n}\nclass GetMultiSalesTeamRequest {\n static fromProto(proto) {\n let m = new GetMultiSalesTeamRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.groupIds !== 'undefined') {\n toReturn['groupIds'] = this.groupIds;\n }\n return toReturn;\n }\n}\nclass GetMultiSalesTeamResponse {\n static fromProto(proto) {\n let m = new GetMultiSalesTeamResponse();\n m = Object.assign(m, proto);\n if (proto.salesTeams) {\n m.salesTeams = proto.salesTeams.map(SalesTeam.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesTeams !== 'undefined' && this.salesTeams !== null) {\n toReturn['salesTeams'] = 'toApiJson' in this.salesTeams ? this.salesTeams.toApiJson() : this.salesTeams;\n }\n return toReturn;\n }\n}\nclass GetMultiSalespersonRequest {\n static fromProto(proto) {\n let m = new GetMultiSalespersonRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.salespersonIds !== 'undefined') {\n toReturn['salespersonIds'] = this.salespersonIds;\n }\n return toReturn;\n }\n}\nclass GetMultiSalespersonResponse {\n static fromProto(proto) {\n let m = new GetMultiSalespersonResponse();\n m = Object.assign(m, proto);\n if (proto.salespersons) {\n m.salespersons = proto.salespersons.map(Salesperson.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salespersons !== 'undefined' && this.salespersons !== null) {\n toReturn['salespersons'] = 'toApiJson' in this.salespersons ? this.salespersons.toApiJson() : this.salespersons;\n }\n return toReturn;\n }\n}\nclass GetSalespersonRequest {\n static fromProto(proto) {\n let m = new GetSalespersonRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nclass GetTeamsBySalespersonsRequest {\n static fromProto(proto) {\n let m = new GetTeamsBySalespersonsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salespersonIds !== 'undefined') {\n toReturn['salespersonIds'] = this.salespersonIds;\n }\n return toReturn;\n }\n}\nclass GetTeamsBySalespersonsResponse {\n static fromProto(proto) {\n let m = new GetTeamsBySalespersonsResponse();\n m = Object.assign(m, proto);\n if (proto.teamMapping) {\n m.teamMapping = proto.teamMapping.map(GetTeamsBySalespersonsResponseTeamsForSalesperson.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.teamMapping !== 'undefined' && this.teamMapping !== null) {\n toReturn['teamMapping'] = 'toApiJson' in this.teamMapping ? this.teamMapping.toApiJson() : this.teamMapping;\n }\n return toReturn;\n }\n}\nclass GetZoomMeetingInfoRequest {\n static fromProto(proto) {\n let m = new GetZoomMeetingInfoRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.meetingId !== 'undefined') {\n toReturn['meetingId'] = this.meetingId;\n }\n return toReturn;\n }\n}\nclass GetZoomMeetingInfoResponse {\n static fromProto(proto) {\n let m = new GetZoomMeetingInfoResponse();\n m = Object.assign(m, proto);\n if (proto.zoomMeeting) {\n m.zoomMeeting = ZoomMeeting.fromProto(proto.zoomMeeting);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.zoomMeeting !== 'undefined' && this.zoomMeeting !== null) {\n toReturn['zoomMeeting'] = 'toApiJson' in this.zoomMeeting ? this.zoomMeeting.toApiJson() : this.zoomMeeting;\n }\n return toReturn;\n }\n}\nclass ListSalesTeamsRequestListSalesTeamsFilters {\n static fromProto(proto) {\n let m = new ListSalesTeamsRequestListSalesTeamsFilters();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n return toReturn;\n }\n}\nclass ListSalesTeamsRequest {\n static fromProto(proto) {\n let m = new ListSalesTeamsRequest();\n m = Object.assign(m, proto);\n if (proto.filters) {\n m.filters = ListSalesTeamsRequestListSalesTeamsFilters.fromProto(proto.filters);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.filters !== 'undefined' && this.filters !== null) {\n toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n return toReturn;\n }\n}\nclass ListSalesTeamsResponse {\n static fromProto(proto) {\n let m = new ListSalesTeamsResponse();\n m = Object.assign(m, proto);\n if (proto.salesTeams) {\n m.salesTeams = proto.salesTeams.map(SalesTeam.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesTeams !== 'undefined' && this.salesTeams !== null) {\n toReturn['salesTeams'] = 'toApiJson' in this.salesTeams ? this.salesTeams.toApiJson() : this.salesTeams;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass ListSalespersonsRequestListSalespersonsFilters {\n static fromProto(proto) {\n let m = new ListSalespersonsRequestListSalespersonsFilters();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.onlySalesManagers !== 'undefined') {\n toReturn['onlySalesManagers'] = this.onlySalesManagers;\n }\n if (typeof this.searchTerm !== 'undefined') {\n toReturn['searchTerm'] = this.searchTerm;\n }\n return toReturn;\n }\n}\nclass ListSalespersonsRequest {\n static fromProto(proto) {\n let m = new ListSalespersonsRequest();\n m = Object.assign(m, proto);\n if (proto.filters) {\n m.filters = ListSalespersonsRequestListSalespersonsFilters.fromProto(proto.filters);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.filters !== 'undefined' && this.filters !== null) {\n toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n return toReturn;\n }\n}\nclass ListSalespersonsResponse {\n static fromProto(proto) {\n let m = new ListSalespersonsResponse();\n m = Object.assign(m, proto);\n if (proto.salespersons) {\n m.salespersons = proto.salespersons.map(Salesperson.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salespersons !== 'undefined' && this.salespersons !== null) {\n toReturn['salespersons'] = 'toApiJson' in this.salespersons ? this.salespersons.toApiJson() : this.salespersons;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass AutoAssignCriteriaLocationCriteria {\n static fromProto(proto) {\n let m = new AutoAssignCriteriaLocationCriteria();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n return toReturn;\n }\n}\nclass LookupCampaignsRequest {\n static fromProto(proto) {\n let m = new LookupCampaignsRequest();\n m = Object.assign(m, proto);\n if (proto.offset) {\n m.offset = parseInt(proto.offset, 10);\n }\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.focus !== 'undefined') {\n toReturn['focus'] = this.focus;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.offset !== 'undefined') {\n toReturn['offset'] = this.offset;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n if (typeof this.searchTerm !== 'undefined') {\n toReturn['searchTerm'] = this.searchTerm;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n return toReturn;\n }\n}\nclass LookupCampaignsResponse {\n static fromProto(proto) {\n let m = new LookupCampaignsResponse();\n m = Object.assign(m, proto);\n if (proto.campaigns) {\n m.campaigns = proto.campaigns.map(SalesCampaign.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.campaigns !== 'undefined' && this.campaigns !== null) {\n toReturn['campaigns'] = 'toApiJson' in this.campaigns ? this.campaigns.toApiJson() : this.campaigns;\n }\n return toReturn;\n }\n}\nclass LookupSalespersonsRequest {\n static fromProto(proto) {\n let m = new LookupSalespersonsRequest();\n m = Object.assign(m, proto);\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.searchTerm !== 'undefined') {\n toReturn['searchTerm'] = this.searchTerm;\n }\n if (typeof this.marketIds !== 'undefined') {\n toReturn['marketIds'] = this.marketIds;\n }\n if (typeof this.includeLastLogin !== 'undefined') {\n toReturn['includeLastLogin'] = this.includeLastLogin;\n }\n return toReturn;\n }\n}\nclass LookupSalespersonsResponse {\n static fromProto(proto) {\n let m = new LookupSalespersonsResponse();\n m = Object.assign(m, proto);\n if (proto.salespersons) {\n m.salespersons = proto.salespersons.map(Salesperson.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salespersons !== 'undefined' && this.salespersons !== null) {\n toReturn['salespersons'] = 'toApiJson' in this.salespersons ? this.salespersons.toApiJson() : this.salespersons;\n }\n return toReturn;\n }\n}\nclass PagedRequestOptions {\n static fromProto(proto) {\n let m = new PagedRequestOptions();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass PagedResponseMetadata {\n static fromProto(proto) {\n let m = new PagedResponseMetadata();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n return toReturn;\n }\n}\nclass PartnerSalesDomainRequest {\n static fromProto(proto) {\n let m = new PartnerSalesDomainRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n return toReturn;\n }\n}\nclass PartnerSalesDomainResponse {\n static fromProto(proto) {\n let m = new PartnerSalesDomainResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.domain !== 'undefined') {\n toReturn['domain'] = this.domain;\n }\n return toReturn;\n }\n}\nclass PublishAskQuestionEventRequest {\n static fromProto(proto) {\n let m = new PublishAskQuestionEventRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.vbcUserId !== 'undefined') {\n toReturn['vbcUserId'] = this.vbcUserId;\n }\n return toReturn;\n }\n}\nclass PublishClaimAccountEventRequest {\n static fromProto(proto) {\n let m = new PublishClaimAccountEventRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.userEmail !== 'undefined') {\n toReturn['userEmail'] = this.userEmail;\n }\n return toReturn;\n }\n}\nclass PublishPackageInterestEventRequest {\n static fromProto(proto) {\n let m = new PublishPackageInterestEventRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.packageId !== 'undefined') {\n toReturn['packageId'] = this.packageId;\n }\n if (typeof this.vbcUserId !== 'undefined') {\n toReturn['vbcUserId'] = this.vbcUserId;\n }\n if (typeof this.userEmail !== 'undefined') {\n toReturn['userEmail'] = this.userEmail;\n }\n return toReturn;\n }\n}\nclass PublishProductInterestEventRequest {\n static fromProto(proto) {\n let m = new PublishProductInterestEventRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.vbcUserId !== 'undefined') {\n toReturn['vbcUserId'] = this.vbcUserId;\n }\n if (typeof this.productId !== 'undefined') {\n toReturn['productId'] = this.productId;\n }\n if (typeof this.message !== 'undefined') {\n toReturn['message'] = this.message;\n }\n if (typeof this.userEmail !== 'undefined') {\n toReturn['userEmail'] = this.userEmail;\n }\n return toReturn;\n }\n}\nclass PublishSnapshotOpenEventRequest {\n static fromProto(proto) {\n let m = new PublishSnapshotOpenEventRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.snapshotId !== 'undefined') {\n toReturn['snapshotId'] = this.snapshotId;\n }\n return toReturn;\n }\n}\nclass AddContactToCampaignRequestRecipient {\n static fromProto(proto) {\n let m = new AddContactToCampaignRequestRecipient();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.emailAddress !== 'undefined') {\n toReturn['emailAddress'] = this.emailAddress;\n }\n return toReturn;\n }\n}\nclass RequestSubscriptionChangeRequest {\n static fromProto(proto) {\n let m = new RequestSubscriptionChangeRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.message !== 'undefined') {\n toReturn['message'] = this.message;\n }\n if (typeof this.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass GetMultiSalesActivityResponseSalesActivityContainer {\n static fromProto(proto) {\n let m = new GetMultiSalesActivityResponseSalesActivityContainer();\n m = Object.assign(m, proto);\n if (proto.salesActivity) {\n m.salesActivity = SalesActivity.fromProto(proto.salesActivity);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesActivity !== 'undefined' && this.salesActivity !== null) {\n toReturn['salesActivity'] = 'toApiJson' in this.salesActivity ? this.salesActivity.toApiJson() : this.salesActivity;\n }\n return toReturn;\n }\n}\nclass SalesCampaign {\n static fromProto(proto) {\n let m = new SalesCampaign();\n m = Object.assign(m, proto);\n if (proto.campaignSchedule) {\n m.campaignSchedule = proto.campaignSchedule.map(ScheduleStep.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.campaignStatus !== 'undefined') {\n toReturn['campaignStatus'] = this.campaignStatus;\n }\n if (typeof this.campaignId !== 'undefined') {\n toReturn['campaignId'] = this.campaignId;\n }\n if (typeof this.campaignSchedule !== 'undefined' && this.campaignSchedule !== null) {\n toReturn['campaignSchedule'] = 'toApiJson' in this.campaignSchedule ? this.campaignSchedule.toApiJson() : this.campaignSchedule;\n }\n return toReturn;\n }\n}\nclass BusinessListResponseSalestoolBusiness {\n static fromProto(proto) {\n let m = new BusinessListResponseSalestoolBusiness();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.address !== 'undefined') {\n toReturn['address'] = this.address;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.zip !== 'undefined') {\n toReturn['zip'] = this.zip;\n }\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.contactFirstName !== 'undefined') {\n toReturn['contactFirstName'] = this.contactFirstName;\n }\n if (typeof this.contactLastName !== 'undefined') {\n toReturn['contactLastName'] = this.contactLastName;\n }\n if (typeof this.contactEmail !== 'undefined') {\n toReturn['contactEmail'] = this.contactEmail;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n return toReturn;\n }\n}\nclass ScheduleStep {\n static fromProto(proto) {\n let m = new ScheduleStep();\n m = Object.assign(m, proto);\n if (proto.secondsAfterLastEmail) {\n m.secondsAfterLastEmail = parseInt(proto.secondsAfterLastEmail, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.stepType !== 'undefined') {\n toReturn['stepType'] = this.stepType;\n }\n if (typeof this.secondsAfterLastEmail !== 'undefined') {\n toReturn['secondsAfterLastEmail'] = this.secondsAfterLastEmail;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n return toReturn;\n }\n}\nclass SearchTicketsRequest {\n static fromProto(proto) {\n let m = new SearchTicketsRequest();\n m = Object.assign(m, proto);\n if (proto.pagination) {\n m.pagination = Pagination.fromProto(proto.pagination);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.pagination !== 'undefined' && this.pagination !== null) {\n toReturn['pagination'] = 'toApiJson' in this.pagination ? this.pagination.toApiJson() : this.pagination;\n }\n return toReturn;\n }\n}\nclass SearchTicketsResponse {\n static fromProto(proto) {\n let m = new SearchTicketsResponse();\n m = Object.assign(m, proto);\n if (proto.tickets) {\n m.tickets = proto.tickets.map(Ticket.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.tickets !== 'undefined' && this.tickets !== null) {\n toReturn['tickets'] = 'toApiJson' in this.tickets ? this.tickets.toApiJson() : this.tickets;\n }\n return toReturn;\n }\n}\nclass SendResetPasswordEmailRequest {\n static fromProto(proto) {\n let m = new SendResetPasswordEmailRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n return toReturn;\n }\n}\nclass AddContactToCampaignRequestSender {\n static fromProto(proto) {\n let m = new AddContactToCampaignRequestSender();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.emailAddress !== 'undefined') {\n toReturn['emailAddress'] = this.emailAddress;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n return toReturn;\n }\n}\nclass SetConfigurationRequest {\n static fromProto(proto) {\n let m = new SetConfigurationRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.domain !== 'undefined') {\n toReturn['domain'] = this.domain;\n }\n if (typeof this.apiKey !== 'undefined') {\n toReturn['apiKey'] = this.apiKey;\n }\n return toReturn;\n }\n}\nclass StoreZoomMeetingInfoRequest {\n static fromProto(proto) {\n let m = new StoreZoomMeetingInfoRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.meetingId !== 'undefined') {\n toReturn['meetingId'] = this.meetingId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.salesPersonId !== 'undefined') {\n toReturn['salesPersonId'] = this.salesPersonId;\n }\n return toReturn;\n }\n}\nclass AutoAssignCriteriaTagCriteria {\n static fromProto(proto) {\n let m = new AutoAssignCriteriaTagCriteria();\n m = Object.assign(m, proto);\n if (proto.matchType) {\n m.matchType = enumStringToValue$2(TagMatchType, proto.matchType);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.tags !== 'undefined') {\n toReturn['tags'] = this.tags;\n }\n if (typeof this.matchType !== 'undefined') {\n toReturn['matchType'] = this.matchType;\n }\n return toReturn;\n }\n}\nclass GetTeamsBySalespersonsResponseTeamsForSalesperson {\n static fromProto(proto) {\n let m = new GetTeamsBySalespersonsResponseTeamsForSalesperson();\n m = Object.assign(m, proto);\n if (proto.salesTeams) {\n m.salesTeams = proto.salesTeams.map(SalesTeam.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.salesTeams !== 'undefined' && this.salesTeams !== null) {\n toReturn['salesTeams'] = 'toApiJson' in this.salesTeams ? this.salesTeams.toApiJson() : this.salesTeams;\n }\n return toReturn;\n }\n}\nclass UpdatePartnerSalesDomainRequest {\n static fromProto(proto) {\n let m = new UpdatePartnerSalesDomainRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.domain !== 'undefined') {\n toReturn['domain'] = this.domain;\n }\n return toReturn;\n }\n}\nclass UpdateTeamNameRequest {\n static fromProto(proto) {\n let m = new UpdateTeamNameRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.groupId !== 'undefined') {\n toReturn['groupId'] = this.groupId;\n }\n if (typeof this.newTeamName !== 'undefined') {\n toReturn['newTeamName'] = this.newTeamName;\n }\n return toReturn;\n }\n}\nclass ViewTicketIncludeFields {\n static fromProto(proto) {\n let m = new ViewTicketIncludeFields();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.conversations !== 'undefined') {\n toReturn['conversations'] = this.conversations;\n }\n if (typeof this.requester !== 'undefined') {\n toReturn['requester'] = this.requester;\n }\n if (typeof this.company !== 'undefined') {\n toReturn['company'] = this.company;\n }\n if (typeof this.stats !== 'undefined') {\n toReturn['stats'] = this.stats;\n }\n return toReturn;\n }\n}\nclass ViewTicketRequest {\n static fromProto(proto) {\n let m = new ViewTicketRequest();\n m = Object.assign(m, proto);\n if (proto.ticketId) {\n m.ticketId = parseInt(proto.ticketId, 10);\n }\n if (proto.includeFields) {\n m.includeFields = ViewTicketIncludeFields.fromProto(proto.includeFields);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.ticketId !== 'undefined') {\n toReturn['ticketId'] = this.ticketId;\n }\n if (typeof this.includeFields !== 'undefined' && this.includeFields !== null) {\n toReturn['includeFields'] = 'toApiJson' in this.includeFields ? this.includeFields.toApiJson() : this.includeFields;\n }\n return toReturn;\n }\n}\nclass ViewTicketResponse {\n static fromProto(proto) {\n let m = new ViewTicketResponse();\n m = Object.assign(m, proto);\n if (proto.baseTicket) {\n m.baseTicket = Ticket.fromProto(proto.baseTicket);\n }\n if (proto.conversations) {\n m.conversations = proto.conversations.map(Conversation.fromProto);\n }\n if (proto.priority) {\n m.priority = enumStringToValue$2(TicketPriority, proto.priority);\n }\n if (proto.dueBy) {\n m.dueBy = new Date(proto.dueBy);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.baseTicket !== 'undefined' && this.baseTicket !== null) {\n toReturn['baseTicket'] = 'toApiJson' in this.baseTicket ? this.baseTicket.toApiJson() : this.baseTicket;\n }\n if (typeof this.tags !== 'undefined') {\n toReturn['tags'] = this.tags;\n }\n if (typeof this.conversations !== 'undefined' && this.conversations !== null) {\n toReturn['conversations'] = 'toApiJson' in this.conversations ? this.conversations.toApiJson() : this.conversations;\n }\n if (typeof this.priority !== 'undefined') {\n toReturn['priority'] = this.priority;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.dueBy !== 'undefined' && this.dueBy !== null) {\n toReturn['dueBy'] = 'toApiJson' in this.dueBy ? this.dueBy.toApiJson() : this.dueBy;\n }\n return toReturn;\n }\n}\nclass ZoomMeeting {\n static fromProto(proto) {\n let m = new ZoomMeeting();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.meetingId !== 'undefined') {\n toReturn['meetingId'] = this.meetingId;\n }\n if (typeof this.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.salesPersonId !== 'undefined') {\n toReturn['salesPersonId'] = this.salesPersonId;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass PriceComponent {\n static fromProto(proto) {\n let m = new PriceComponent();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = parseInt(proto.value, 10);\n }\n if (proto.frequency) {\n m.frequency = enumStringToValue$1(Frequency, proto.frequency);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n if (typeof this.frequency !== 'undefined') {\n toReturn['frequency'] = this.frequency;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass LineItemAppKey {\n static fromProto(proto) {\n let m = new LineItemAppKey();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.editionId !== 'undefined') {\n toReturn['editionId'] = this.editionId;\n }\n if (typeof this.packageId !== 'undefined') {\n toReturn['packageId'] = this.packageId;\n }\n if (typeof this.packageInstanceId !== 'undefined') {\n toReturn['packageInstanceId'] = this.packageInstanceId;\n }\n return toReturn;\n }\n}\nclass BillingPeriod {\n static fromProto(proto) {\n let m = new BillingPeriod();\n m = Object.assign(m, proto);\n if (proto.startDate) {\n m.startDate = new Date(proto.startDate);\n }\n if (proto.endDate) {\n m.endDate = new Date(proto.endDate);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.startDate !== 'undefined' && this.startDate !== null) {\n toReturn['startDate'] = 'toApiJson' in this.startDate ? this.startDate.toApiJson() : this.startDate;\n }\n if (typeof this.endDate !== 'undefined' && this.endDate !== null) {\n toReturn['endDate'] = 'toApiJson' in this.endDate ? this.endDate.toApiJson() : this.endDate;\n }\n return toReturn;\n }\n}\nclass Cost {\n static fromProto(proto) {\n let m = new Cost();\n m = Object.assign(m, proto);\n if (proto.customPrice) {\n m.customPrice = parseInt(proto.customPrice, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.customPrice !== 'undefined') {\n toReturn['customPrice'] = this.customPrice;\n }\n return toReturn;\n }\n}\nclass CustomPriceMapping {\n static fromProto(proto) {\n let m = new CustomPriceMapping();\n m = Object.assign(m, proto);\n if (proto.customPrice) {\n m.customPrice = parseInt(proto.customPrice, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.productId !== 'undefined') {\n toReturn['productId'] = this.productId;\n }\n if (typeof this.customPrice !== 'undefined') {\n toReturn['customPrice'] = this.customPrice;\n }\n return toReturn;\n }\n}\nclass Duration {\n static fromProto(proto) {\n let m = new Duration();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = parseInt(proto.value, 10);\n }\n if (proto.duration) {\n m.duration = enumStringToValue(DurationPeriod, proto.duration);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n if (typeof this.duration !== 'undefined') {\n toReturn['duration'] = this.duration;\n }\n return toReturn;\n }\n}\nclass LineItem {\n static fromProto(proto) {\n let m = new LineItem();\n m = Object.assign(m, proto);\n if (proto.appKey) {\n m.appKey = LineItemAppKey.fromProto(proto.appKey);\n }\n if (proto.currency) {\n m.currency = enumStringToValue(Currency, proto.currency);\n }\n if (proto.initialRevenue) {\n m.initialRevenue = Revenue.fromProto(proto.initialRevenue);\n }\n if (proto.currentRevenue) {\n m.currentRevenue = Revenue.fromProto(proto.currentRevenue);\n }\n if (proto.quantity) {\n m.quantity = parseInt(proto.quantity, 10);\n }\n if (proto.cost) {\n m.cost = Cost.fromProto(proto.cost);\n }\n if (proto.customPrices) {\n m.customPrices = proto.customPrices.map(CustomPriceMapping.fromProto);\n }\n if (proto.billingPeriod) {\n m.billingPeriod = BillingPeriod.fromProto(proto.billingPeriod);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.appKey !== 'undefined' && this.appKey !== null) {\n toReturn['appKey'] = 'toApiJson' in this.appKey ? this.appKey.toApiJson() : this.appKey;\n }\n if (typeof this.packageId !== 'undefined') {\n toReturn['packageId'] = this.packageId;\n }\n if (typeof this.currency !== 'undefined') {\n toReturn['currency'] = this.currency;\n }\n if (typeof this.initialRevenue !== 'undefined' && this.initialRevenue !== null) {\n toReturn['initialRevenue'] = 'toApiJson' in this.initialRevenue ? this.initialRevenue.toApiJson() : this.initialRevenue;\n }\n if (typeof this.currentRevenue !== 'undefined' && this.currentRevenue !== null) {\n toReturn['currentRevenue'] = 'toApiJson' in this.currentRevenue ? this.currentRevenue.toApiJson() : this.currentRevenue;\n }\n if (typeof this.quantity !== 'undefined') {\n toReturn['quantity'] = this.quantity;\n }\n if (typeof this.isTrial !== 'undefined') {\n toReturn['isTrial'] = this.isTrial;\n }\n if (typeof this.currencyCode !== 'undefined') {\n toReturn['currencyCode'] = this.currencyCode;\n }\n if (typeof this.cost !== 'undefined' && this.cost !== null) {\n toReturn['cost'] = 'toApiJson' in this.cost ? this.cost.toApiJson() : this.cost;\n }\n if (typeof this.customPrices !== 'undefined' && this.customPrices !== null) {\n toReturn['customPrices'] = 'toApiJson' in this.customPrices ? this.customPrices.toApiJson() : this.customPrices;\n }\n if (typeof this.billingPeriod !== 'undefined' && this.billingPeriod !== null) {\n toReturn['billingPeriod'] = 'toApiJson' in this.billingPeriod ? this.billingPeriod.toApiJson() : this.billingPeriod;\n }\n if (typeof this.autoBillable !== 'undefined') {\n toReturn['autoBillable'] = this.autoBillable;\n }\n if (typeof this.nonBillable !== 'undefined') {\n toReturn['nonBillable'] = this.nonBillable;\n }\n return toReturn;\n }\n}\nclass Revenue {\n static fromProto(proto) {\n let m = new Revenue();\n m = Object.assign(m, proto);\n if (proto.revenueComponents) {\n m.revenueComponents = proto.revenueComponents.map(RevenueComponent.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.revenueComponents !== 'undefined' && this.revenueComponents !== null) {\n toReturn['revenueComponents'] = 'toApiJson' in this.revenueComponents ? this.revenueComponents.toApiJson() : this.revenueComponents;\n }\n return toReturn;\n }\n}\nclass RevenueComponent {\n static fromProto(proto) {\n let m = new RevenueComponent();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = parseInt(proto.value, 10);\n }\n if (proto.period) {\n m.period = enumStringToValue(RevenuePeriod, proto.period);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n if (typeof this.period !== 'undefined') {\n toReturn['period'] = this.period;\n }\n if (typeof this.isStartingRevenue !== 'undefined') {\n toReturn['isStartingRevenue'] = this.isStartingRevenue;\n }\n return toReturn;\n }\n}\n\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'sales-api.vendasta-local.com',\n 'test': '',\n 'demo': 'sales-api-demo.apigateway.co',\n 'prod': 'sales-api-prod.apigateway.co',\n 'production': 'sales-api-prod.apigateway.co'\n};\nlet HostService = /*#__PURE__*/(() => {\n class HostService {\n get host() {\n return hostMap[environment.toLowerCase()];\n }\n get hostWithScheme() {\n return 'https://' + this.host;\n }\n }\n HostService.ɵfac = function HostService_Factory(t) {\n return new (t || HostService)();\n };\n HostService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: HostService,\n factory: HostService.ɵfac,\n providedIn: 'root'\n });\n return HostService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet BusinessActivityApiService = /*#__PURE__*/(() => {\n class BusinessActivityApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n createBusinessActivity(r) {\n const request = r.toApiJson ? r : new CreateBusinessActivityRequest(r);\n return this.http.post(this._host + \"/sales.v1.BusinessActivity/CreateBusinessActivity\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n BusinessActivityApiService.ɵfac = function BusinessActivityApiService_Factory(t) {\n return new (t || BusinessActivityApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n BusinessActivityApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BusinessActivityApiService,\n factory: BusinessActivityApiService.ɵfac,\n providedIn: 'root'\n });\n return BusinessActivityApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet BusinessApiService = /*#__PURE__*/(() => {\n class BusinessApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n search(r) {\n const request = r.toApiJson ? r : new BusinessSearchRequest(r);\n return this.http.post(this._host + \"/sales.v1.BusinessService/Search\", request.toApiJson(), this.apiOptions()).pipe(map(resp => BusinessSearchResponse.fromProto(resp)));\n }\n requestSubscriptionChange(r) {\n const request = r.toApiJson ? r : new RequestSubscriptionChangeRequest(r);\n return this.http.post(this._host + \"/sales.v1.BusinessService/RequestSubscriptionChange\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n list(r) {\n const request = r.toApiJson ? r : new BusinessListRequest(r);\n return this.http.post(this._host + \"/sales.v1.BusinessService/List\", request.toApiJson(), this.apiOptions()).pipe(map(resp => BusinessListResponse.fromProto(resp)));\n }\n }\n BusinessApiService.ɵfac = function BusinessApiService_Factory(t) {\n return new (t || BusinessApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n BusinessApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BusinessApiService,\n factory: BusinessApiService.ɵfac,\n providedIn: 'root'\n });\n return BusinessApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet CampaignApiService = /*#__PURE__*/(() => {\n class CampaignApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getMultiCampaigns(r) {\n const request = r.toApiJson ? r : new GetMultiCampaignsRequest(r);\n return this.http.post(this._host + \"/sales.v1.CampaignService/GetMultiCampaigns\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiCampaignsResponse.fromProto(resp)));\n }\n lookupCampaigns(r) {\n const request = r.toApiJson ? r : new LookupCampaignsRequest(r);\n return this.http.post(this._host + \"/sales.v1.CampaignService/LookupCampaigns\", request.toApiJson(), this.apiOptions()).pipe(map(resp => LookupCampaignsResponse.fromProto(resp)));\n }\n addContactToCampaign(r) {\n const request = r.toApiJson ? r : new AddContactToCampaignRequest(r);\n return this.http.post(this._host + \"/sales.v1.CampaignService/AddContactToCampaign\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n CampaignApiService.ɵfac = function CampaignApiService_Factory(t) {\n return new (t || CampaignApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n CampaignApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CampaignApiService,\n factory: CampaignApiService.ɵfac,\n providedIn: 'root'\n });\n return CampaignApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet ContactsApiService = /*#__PURE__*/(() => {\n class ContactsApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n create(r) {\n const request = r.toApiJson ? r : new ContactCreateRequest(r);\n return this.http.post(this._host + \"/sales.v1.Contacts/Create\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ContactCreateResponse.fromProto(resp)));\n }\n getContactsByEmail(r) {\n const request = r.toApiJson ? r : new GetContactsByEmailRequest(r);\n return this.http.post(this._host + \"/sales.v1.Contacts/GetContactsByEmail\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetContactsResponse.fromProto(resp)));\n }\n }\n ContactsApiService.ɵfac = function ContactsApiService_Factory(t) {\n return new (t || ContactsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n ContactsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ContactsApiService,\n factory: ContactsApiService.ɵfac,\n providedIn: 'root'\n });\n return ContactsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet ExternalIdentifiersApiService = /*#__PURE__*/(() => {\n class ExternalIdentifiersApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n create(r) {\n const request = r.toApiJson ? r : new ExternalIdentifierCreateRequest(r);\n return this.http.post(this._host + \"/sales.v1.ExternalIdentifiers/Create\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getByInternalId(r) {\n const request = r.toApiJson ? r : new ExternalIdentifierGetByInternalIDRequest(r);\n return this.http.post(this._host + \"/sales.v1.ExternalIdentifiers/GetByInternalID\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ExternalIdentifierGetByInternalIDResponse.fromProto(resp)));\n }\n }\n ExternalIdentifiersApiService.ɵfac = function ExternalIdentifiersApiService_Factory(t) {\n return new (t || ExternalIdentifiersApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n ExternalIdentifiersApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ExternalIdentifiersApiService,\n factory: ExternalIdentifiersApiService.ɵfac,\n providedIn: 'root'\n });\n return ExternalIdentifiersApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet FreshdeskApiService = /*#__PURE__*/(() => {\n class FreshdeskApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n setConfiguration(r) {\n const request = r.toApiJson ? r : new SetConfigurationRequest(r);\n return this.http.post(this._host + \"/sales.v1.Freshdesk/SetConfiguration\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getConfiguration(r) {\n const request = r.toApiJson ? r : new GetConfigurationRequest(r);\n return this.http.post(this._host + \"/sales.v1.Freshdesk/GetConfiguration\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetConfigurationResponse.fromProto(resp)));\n }\n searchTickets(r) {\n const request = r.toApiJson ? r : new SearchTicketsRequest(r);\n return this.http.post(this._host + \"/sales.v1.Freshdesk/SearchTickets\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SearchTicketsResponse.fromProto(resp)));\n }\n viewTicket(r) {\n const request = r.toApiJson ? r : new ViewTicketRequest(r);\n return this.http.post(this._host + \"/sales.v1.Freshdesk/ViewTicket\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ViewTicketResponse.fromProto(resp)));\n }\n }\n FreshdeskApiService.ɵfac = function FreshdeskApiService_Factory(t) {\n return new (t || FreshdeskApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n FreshdeskApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FreshdeskApiService,\n factory: FreshdeskApiService.ɵfac,\n providedIn: 'root'\n });\n return FreshdeskApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet LegacyEventsApiService = /*#__PURE__*/(() => {\n class LegacyEventsApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n publishSnapshotOpenEvent(r) {\n const request = r.toApiJson ? r : new PublishSnapshotOpenEventRequest(r);\n return this.http.post(this._host + \"/sales.v1.LegacyEvents/PublishSnapshotOpenEvent\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n publishAskQuestionEvent(r) {\n const request = r.toApiJson ? r : new PublishAskQuestionEventRequest(r);\n return this.http.post(this._host + \"/sales.v1.LegacyEvents/PublishAskQuestionEvent\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n publishClaimAccountEvent(r) {\n const request = r.toApiJson ? r : new PublishClaimAccountEventRequest(r);\n return this.http.post(this._host + \"/sales.v1.LegacyEvents/PublishClaimAccountEvent\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n publishProductInterestEvent(r) {\n const request = r.toApiJson ? r : new PublishProductInterestEventRequest(r);\n return this.http.post(this._host + \"/sales.v1.LegacyEvents/PublishProductInterestEvent\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n publishPackageInterestEvent(r) {\n const request = r.toApiJson ? r : new PublishPackageInterestEventRequest(r);\n return this.http.post(this._host + \"/sales.v1.LegacyEvents/PublishPackageInterestEvent\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n LegacyEventsApiService.ɵfac = function LegacyEventsApiService_Factory(t) {\n return new (t || LegacyEventsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n LegacyEventsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: LegacyEventsApiService,\n factory: LegacyEventsApiService.ɵfac,\n providedIn: 'root'\n });\n return LegacyEventsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet MeetingApiService = /*#__PURE__*/(() => {\n class MeetingApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n storeZoomMeetingInfo(r) {\n const request = r.toApiJson ? r : new StoreZoomMeetingInfoRequest(r);\n return this.http.post(this._host + \"/sales.v1.Meeting/StoreZoomMeetingInfo\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getZoomMeetingInfo(r) {\n const request = r.toApiJson ? r : new GetZoomMeetingInfoRequest(r);\n return this.http.post(this._host + \"/sales.v1.Meeting/GetZoomMeetingInfo\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetZoomMeetingInfoResponse.fromProto(resp)));\n }\n }\n MeetingApiService.ɵfac = function MeetingApiService_Factory(t) {\n return new (t || MeetingApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n MeetingApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MeetingApiService,\n factory: MeetingApiService.ɵfac,\n providedIn: 'root'\n });\n return MeetingApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet PartnerApiService = /*#__PURE__*/(() => {\n class PartnerApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getPartnerSalesDomain(r) {\n const request = r.toApiJson ? r : new PartnerSalesDomainRequest(r);\n return this.http.post(this._host + \"/sales.v1.PartnerService/GetPartnerSalesDomain\", request.toApiJson(), this.apiOptions()).pipe(map(resp => PartnerSalesDomainResponse.fromProto(resp)));\n }\n updatePartnerSalesDomain(r) {\n const request = r.toApiJson ? r : new UpdatePartnerSalesDomainRequest(r);\n return this.http.post(this._host + \"/sales.v1.PartnerService/UpdatePartnerSalesDomain\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n PartnerApiService.ɵfac = function PartnerApiService_Factory(t) {\n return new (t || PartnerApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n PartnerApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: PartnerApiService,\n factory: PartnerApiService.ɵfac,\n providedIn: 'root'\n });\n return PartnerApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet SalesApiService = /*#__PURE__*/(() => {\n class SalesApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getAutoAssignConfig(r) {\n const request = r.toApiJson ? r : new GetAutoAssignConfigRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/GetAutoAssignConfig\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAutoAssignConfigResponse.fromProto(resp)));\n }\n createOrUpdateAutoAssignConfig(r) {\n const request = r.toApiJson ? r : new CreateOrUpdateAutoAssignConfigRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/CreateOrUpdateAutoAssignConfig\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getSalesperson(r) {\n const request = r.toApiJson ? r : new GetSalespersonRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/GetSalesperson\", request.toApiJson(), this.apiOptions()).pipe(map(resp => Salesperson.fromProto(resp)));\n }\n getMultiSalesperson(r) {\n const request = r.toApiJson ? r : new GetMultiSalespersonRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/GetMultiSalesperson\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiSalespersonResponse.fromProto(resp)));\n }\n listSalespersons(r) {\n const request = r.toApiJson ? r : new ListSalespersonsRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/ListSalespersons\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListSalespersonsResponse.fromProto(resp)));\n }\n getAssignedSalespersonForPartner(r) {\n const request = r.toApiJson ? r : new GetAssignedSalespersonForPartnerRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/GetAssignedSalespersonForPartner\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAssignedSalespersonForPartnerResponse.fromProto(resp)));\n }\n lookupSalespersons(r) {\n const request = r.toApiJson ? r : new LookupSalespersonsRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/LookupSalespersons\", request.toApiJson(), this.apiOptions()).pipe(map(resp => LookupSalespersonsResponse.fromProto(resp)));\n }\n sendResetPasswordEmail(r) {\n const request = r.toApiJson ? r : new SendResetPasswordEmailRequest(r);\n return this.http.post(this._host + \"/sales.v1.Sales/SendResetPasswordEmail\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n SalesApiService.ɵfac = function SalesApiService_Factory(t) {\n return new (t || SalesApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n SalesApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SalesApiService,\n factory: SalesApiService.ɵfac,\n providedIn: 'root'\n });\n return SalesApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet SalesActivityApiService = /*#__PURE__*/(() => {\n class SalesActivityApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getMulti(r) {\n const request = r.toApiJson ? r : new GetMultiSalesActivityRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesActivityService/GetMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiSalesActivityResponse.fromProto(resp)));\n }\n create(r) {\n const request = r.toApiJson ? r : new CreateSalesActivityRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesActivityService/Create\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateSalesActivityResponse.fromProto(resp)));\n }\n }\n SalesActivityApiService.ɵfac = function SalesActivityApiService_Factory(t) {\n return new (t || SalesActivityApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n SalesActivityApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SalesActivityApiService,\n factory: SalesActivityApiService.ɵfac,\n providedIn: 'root'\n });\n return SalesActivityApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet SalesTeamApiService = /*#__PURE__*/(() => {\n class SalesTeamApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n list(r) {\n const request = r.toApiJson ? r : new ListSalesTeamsRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesTeamService/List\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListSalesTeamsResponse.fromProto(resp)));\n }\n getMulti(r) {\n const request = r.toApiJson ? r : new GetMultiSalesTeamRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesTeamService/GetMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiSalesTeamResponse.fromProto(resp)));\n }\n getMembers(r) {\n const request = r.toApiJson ? r : new GetMembersRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesTeamService/GetMembers\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMembersResponse.fromProto(resp)));\n }\n getTeamsBySalespersons(r) {\n const request = r.toApiJson ? r : new GetTeamsBySalespersonsRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesTeamService/GetTeamsBySalespersons\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetTeamsBySalespersonsResponse.fromProto(resp)));\n }\n updateTeamName(r) {\n const request = r.toApiJson ? r : new UpdateTeamNameRequest(r);\n return this.http.post(this._host + \"/sales.v1.SalesTeamService/UpdateTeamName\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n SalesTeamApiService.ɵfac = function SalesTeamApiService_Factory(t) {\n return new (t || SalesTeamApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n SalesTeamApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SalesTeamApiService,\n factory: SalesTeamApiService.ɵfac,\n providedIn: 'root'\n });\n return SalesTeamApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet TasksApiService = /*#__PURE__*/(() => {\n class TasksApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n createSalesTask(r) {\n const request = r.toApiJson ? r : new CreateSalesTaskRequest(r);\n return this.http.post(this._host + \"/sales.v1.Tasks/CreateSalesTask\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateSalesTaskResponse.fromProto(resp)));\n }\n assignSalesTask(r) {\n const request = r.toApiJson ? r : new AssignSalesTaskRequest(r);\n return this.http.post(this._host + \"/sales.v1.Tasks/AssignSalesTask\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n TasksApiService.ɵfac = function TasksApiService_Factory(t) {\n return new (t || TasksApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n TasksApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TasksApiService,\n factory: TasksApiService.ɵfac,\n providedIn: 'root'\n });\n return TasksApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet UserActionsProviderApiService = /*#__PURE__*/(() => {\n class UserActionsProviderApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n uploadUserAction(r) {\n const request = r.toApiJson ? r : new UserActionsRequest(r);\n return this.http.post(this._host + \"/sales.v1.UserActionsProvider/UploadUserAction\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n uploadUserActionForCustomerId(r) {\n const request = r.toApiJson ? r : new UploadUserActionForCustomerIDRequest(r);\n return this.http.post(this._host + \"/sales.v1.UserActionsProvider/UploadUserActionForCustomerID\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n bulkUploadUserActions(r) {\n const request = r.toApiJson ? r : new BulkUploadUserActionsRequest(r);\n return this.http.post(this._host + \"/sales.v1.UserActionsProvider/BulkUploadUserActions\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n listUserActions(r) {\n const request = r.toApiJson ? r : new GetUserActionsRequest(r);\n return this.http.post(this._host + \"/sales.v1.UserActionsProvider/ListUserActions\", request.toApiJson(), this.apiOptions()).pipe(map(resp => UserActionsResponse.fromProto(resp)));\n }\n }\n UserActionsProviderApiService.ɵfac = function UserActionsProviderApiService_Factory(t) {\n return new (t || UserActionsProviderApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n UserActionsProviderApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: UserActionsProviderApiService,\n factory: UserActionsProviderApiService.ɵfac,\n providedIn: 'root'\n });\n return UserActionsProviderApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet SalespersonService = /*#__PURE__*/(() => {\n class SalespersonService {\n constructor(_api) {\n this._api = _api;\n }\n /** @deprecated Use getSalespersonBySubjectId or getSalespersonByUserId */\n getSalesperson(partnerId, salespersonId, userId) {\n return salespersonId ? this.getSalespersonBySubjectId(partnerId, salespersonId) : this.getSalespersonByUserId(partnerId, userId || '');\n }\n getSalespersons(partnerId, markets, options) {\n const params = {\n partnerId: partnerId,\n marketIds: markets,\n includeLastLogin: options?.includeLastLogin ?? false\n };\n if (!!options?.searchTerm) {\n params.searchTerm = options.searchTerm;\n }\n if (!!options?.pageSize && !!options?.cursor) {\n params.pagingOptions = {\n pageSize: options.pageSize,\n cursor: options.cursor\n };\n }\n if (!!options?.pageSize && !options?.cursor) {\n params.pagingOptions = {\n pageSize: options.pageSize\n };\n }\n return this._api.lookupSalespersons(params).pipe(map(r => r.salespersons));\n }\n getSalespersonBySubjectId(partnerId, salespersonId) {\n return this._api.getSalesperson({\n partnerId: partnerId,\n salespersonId: salespersonId\n });\n }\n getSalespersonByUserId(partnerId, userId) {\n return this._api.getSalesperson({\n partnerId: partnerId,\n userId: userId\n });\n }\n listSalespersons(filters, cursor, pageSize) {\n return this._api.listSalespersons({\n filters: filters,\n pagingOptions: {\n cursor: cursor,\n pageSize: pageSize\n }\n }).pipe(map(resp => {\n return {\n results: resp.salespersons,\n nextCursor: resp.pagingMetadata.nextCursor,\n hasMore: resp.pagingMetadata.hasMore\n };\n }));\n }\n getAssignedSalespersonForPartner(partnerId, marketId) {\n return this._api.getAssignedSalespersonForPartner({\n partnerId: partnerId,\n marketId: marketId\n });\n }\n sendResetPasswordEmail(partnerId, salespersonId) {\n return this._api.sendResetPasswordEmail({\n partnerId: partnerId,\n salespersonId: salespersonId\n });\n }\n getMultiSalesperson(partnerId, salespersonIds) {\n return this._api.getMultiSalesperson({\n partnerId: partnerId,\n salespersonIds: salespersonIds\n }).pipe(map(resp => resp.salespersons));\n }\n }\n SalespersonService.ɵfac = function SalespersonService_Factory(t) {\n return new (t || SalespersonService)(i0.ɵɵinject(SalesApiService));\n };\n SalespersonService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SalespersonService,\n factory: SalespersonService.ɵfac,\n providedIn: 'root'\n });\n return SalespersonService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PagedResponse$2 = class PagedResponse {\n constructor(results, nextCursor, hasMore) {\n this.results = results;\n this.nextCursor = nextCursor;\n this.hasMore = hasMore;\n }\n};\nlet SalesTeamService = /*#__PURE__*/(() => {\n class SalesTeamService {\n constructor(_api) {\n this._api = _api;\n }\n list(partnerId, marketId, cursor, pageSize) {\n return this._api.list({\n filters: {\n partnerId: partnerId,\n marketId: marketId\n },\n pagingOptions: {\n cursor: cursor,\n pageSize: pageSize\n }\n }).pipe(map(resp => ({\n results: resp.salesTeams,\n nextCursor: resp.pagingMetadata.nextCursor,\n hasMore: resp.pagingMetadata.hasMore\n })));\n }\n getMembers(groupId) {\n return this._api.getMembers({\n groupId: groupId\n }).pipe(map(resp => resp.salesPeople || []));\n }\n updateTeamName(groupId, newTeamName) {\n return this._api.updateTeamName({\n groupId: groupId,\n newTeamName: newTeamName\n }).pipe(mapTo(null));\n }\n getSalesTeamsBySalesperson(salespersonId) {\n return this._api.getTeamsBySalespersons({\n salespersonIds: [salespersonId]\n }).pipe(map(resp => {\n if (!resp || !resp.teamMapping) {\n return [];\n }\n return resp.teamMapping.reduce((salesTeams, mapping) => {\n return [...salesTeams, ...((mapping || {\n salesTeams: []\n }).salesTeams || [])];\n }, []);\n }));\n }\n getMulti(groupIds) {\n return this._api.getMulti({\n groupIds: groupIds\n }).pipe(map(resp => resp.salesTeams || []));\n }\n }\n SalesTeamService.ɵfac = function SalesTeamService_Factory(t) {\n return new (t || SalesTeamService)(i0.ɵɵinject(SalesTeamApiService));\n };\n SalesTeamService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SalesTeamService,\n factory: SalesTeamService.ɵfac,\n providedIn: 'root'\n });\n return SalesTeamService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PagedResponse$1 = class PagedResponse {\n constructor(results, nextCursor, hasMore) {\n this.results = results;\n this.nextCursor = nextCursor;\n this.hasMore = hasMore;\n }\n};\nlet CampaignSDKService = /*#__PURE__*/(() => {\n class CampaignSDKService {\n constructor(campaignApiService) {\n this.campaignApiService = campaignApiService;\n }\n getMultiCampaigns(partnerId, marketId, accountGroupId, campaignIds) {\n return this.campaignApiService.getMultiCampaigns({\n partnerId: partnerId,\n marketId: marketId,\n accountGroupId: accountGroupId,\n campaignIds: campaignIds\n }).pipe(map(resp => resp.campaigns));\n }\n lookupCampaigns(partnerId, marketId, searchTerm, options) {\n const request = {\n partnerId: partnerId,\n marketId: marketId\n };\n if (!!searchTerm) {\n request.searchTerm = searchTerm;\n }\n request.offset = options?.offset || request.offset;\n request.pageSize = options?.pageSize || request.pageSize;\n request.focus = options?.filters?.focus || request.focus;\n request.state = options?.filters?.state || request.state;\n request.status = options?.filters?.status || request.status;\n return this.campaignApiService.lookupCampaigns(request).pipe(map(resp => resp.campaigns));\n }\n }\n CampaignSDKService.ɵfac = function CampaignSDKService_Factory(t) {\n return new (t || CampaignSDKService)(i0.ɵɵinject(CampaignApiService));\n };\n CampaignSDKService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CampaignSDKService,\n factory: CampaignSDKService.ɵfac,\n providedIn: 'root'\n });\n return CampaignSDKService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst defaultOptions = {\n withCredentials: true\n};\nlet Businesses = /*#__PURE__*/(() => {\n class Businesses {\n constructor(internal) {\n this.internal = internal;\n }\n search(partnerId, marketId, sortKey, sortAscending, searchOptions) {\n const options = searchOptions || {};\n const request = {\n filters: {\n partnerId: partnerId,\n marketId: marketId,\n query: options.searchTerm,\n salesStatuses: options.salesStatuses,\n salesAction: options.salesAction,\n fromDate: options.fromDate,\n toDate: options.toDate,\n archived: options.archived,\n accountTags: options.accountTags,\n businessCategories: options.businessCategories,\n onCampaign: options.onCampaign,\n snapshotSent: options.snapshotSent,\n assignees: options.assignees,\n goal: options.goal,\n trainingPriorities: options.trainingPriorities,\n customFieldPartnerId: options.customFieldPartnerId,\n lifecycleStage: options.lifecycleStage\n },\n pagingOptions: {\n cursor: options.cursor,\n pageSize: options.pageSize\n },\n sortOptions: {\n sortKey: sortKey,\n sortAscending: sortAscending\n }\n };\n return this.internal.search(request).pipe(map(resp => {\n const respBusinesses = resp.businesses || [];\n return {\n pagingMetadata: resp.pagingMetadata,\n businesses: respBusinesses\n };\n }), share());\n }\n requestSubscriptionChange(businessId, name, phoneNumber, message) {\n return this.internal.requestSubscriptionChange({\n businessId: businessId,\n message: message,\n phoneNumber: phoneNumber,\n name: name\n }).pipe(map(() => true));\n }\n }\n Businesses.ɵfac = function Businesses_Factory(t) {\n return new (t || Businesses)(i0.ɵɵinject(BusinessApiService));\n };\n Businesses.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Businesses,\n factory: Businesses.ɵfac,\n providedIn: 'root'\n });\n return Businesses;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet UserActionService = /*#__PURE__*/(() => {\n class UserActionService {\n constructor(_api) {\n this._api = _api;\n }\n listUserActions(accountGroupId, cursor, pageSize) {\n return this._api.listUserActions({\n accountGroupId: accountGroupId,\n cursor: cursor,\n pageSize: pageSize\n }).pipe(map(resp => ({\n results: resp.userActions,\n nextCursor: resp.pagingMetadata.nextCursor,\n hasMore: resp.pagingMetadata.hasMore\n })));\n }\n }\n UserActionService.ɵfac = function UserActionService_Factory(t) {\n return new (t || UserActionService)(i0.ɵɵinject(UserActionsProviderApiService));\n };\n UserActionService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: UserActionService,\n factory: UserActionService.ɵfac,\n providedIn: 'root'\n });\n return UserActionService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass PagedResponse {\n constructor(results, nextCursor, hasMore) {\n this.results = results;\n this.nextCursor = nextCursor;\n this.hasMore = hasMore;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar DiscountType = /*#__PURE__*/function (DiscountType) {\n DiscountType[DiscountType[\"DISCOUNT_TYPE_NO_DISCOUNT\"] = 0] = \"DISCOUNT_TYPE_NO_DISCOUNT\";\n DiscountType[DiscountType[\"DISCOUNT_TYPE_PERCENTAGE\"] = 1] = \"DISCOUNT_TYPE_PERCENTAGE\";\n DiscountType[DiscountType[\"DISCOUNT_TYPE_FIXED_AMOUNT\"] = 2] = \"DISCOUNT_TYPE_FIXED_AMOUNT\";\n return DiscountType;\n}(DiscountType || {});\nvar SortFields = /*#__PURE__*/function (SortFields) {\n SortFields[SortFields[\"SORT_FIELDS_CREATED\"] = 0] = \"SORT_FIELDS_CREATED\";\n SortFields[SortFields[\"SORT_FIELDS_UPDATED\"] = 1] = \"SORT_FIELDS_UPDATED\";\n return SortFields;\n}(SortFields || {});\nlet FreshdeskService = /*#__PURE__*/(() => {\n class FreshdeskService {\n constructor(_api) {\n this._api = _api;\n }\n getConfiguration(partnerId) {\n return this._api.getConfiguration(new GetConfigurationRequest({\n partnerId: partnerId\n }));\n }\n setConfiguration(partnerId, domain, apiKey) {\n const r = new SetConfigurationRequest({\n partnerId: partnerId,\n domain: domain,\n apiKey: apiKey\n });\n const errorInterceptor = httpResponse => httpResponse.pipe(switchMap(res => res.ok ? EMPTY : throwError(res.status)));\n return this._api.setConfiguration(r).pipe(errorInterceptor);\n }\n /**\n * Retrieves all tickets from Freshdesk for a given account group id\n * @param partnerID - Scopes the ticket search to a specific partner\n * @param accountGroupID - Scopes the ticket search to a particular accountGroupID\n * @param pagination - Includes pageIndex and pageSize used for paginating results\n *\n * @remarks\n * Freshdesk's API and the underlying µs explicitly uses 1-based page indexing, however this SDK uses 0-based page indexing.\n * Supplying `pageIndex=0` results in a call to the datasource using `pageIndex=1`\n **/\n searchTickets(partnerID, accountGroupID, pagination) {\n const req = new SearchTicketsRequest({\n pagination: {\n ...pagination,\n pageIndex: (pagination?.pageIndex || 0) + 1\n },\n accountGroupId: accountGroupID,\n partnerId: partnerID\n });\n return this._api.searchTickets(req).pipe(map(resp => {\n return resp.tickets ?? [];\n }));\n }\n viewTicket(partnerID, accountGroupId, ticketId, includeFields) {\n const req = new ViewTicketRequest({\n partnerId: partnerID,\n accountGroupId: accountGroupId,\n ticketId: ticketId,\n includeFields: includeFields\n });\n return this._api.viewTicket(req);\n }\n }\n FreshdeskService.ɵfac = function FreshdeskService_Factory(t) {\n return new (t || FreshdeskService)(i0.ɵɵinject(FreshdeskApiService));\n };\n FreshdeskService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FreshdeskService,\n factory: FreshdeskService.ɵfac,\n providedIn: \"root\"\n });\n return FreshdeskService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PartnerService = /*#__PURE__*/(() => {\n class PartnerService {\n constructor(_api) {\n this._api = _api;\n }\n getPartnerSalesDomain(partnerId) {\n const r = new PartnerSalesDomainRequest({\n partnerId: partnerId\n });\n return this._api.getPartnerSalesDomain(r).pipe(map(resp => resp.domain));\n }\n updatePartnerSalesDomain(partnerId, domain) {\n const r = new UpdatePartnerSalesDomainRequest({\n partnerId: partnerId,\n domain: domain\n });\n return this._api.updatePartnerSalesDomain(r).pipe(mapTo(null));\n }\n }\n PartnerService.ɵfac = function PartnerService_Factory(t) {\n return new (t || PartnerService)(i0.ɵɵinject(PartnerApiService));\n };\n PartnerService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: PartnerService,\n factory: PartnerService.ɵfac,\n providedIn: 'root'\n });\n return PartnerService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TasksService = /*#__PURE__*/(() => {\n class TasksService {\n constructor(_api) {\n this._api = _api;\n }\n createSalesTask(title, partnerId, marketId, accountGroupId, dueDate, salespersonIds) {\n const req = {\n partnerId: partnerId,\n marketId: marketId,\n accountGroupId: accountGroupId,\n dueDate: dueDate,\n salespersonIds: salespersonIds,\n title: title\n };\n return this._api.createSalesTask(req).pipe(switchMap(resp => {\n if (!resp.taskId) {\n return throwError('No task ID returned');\n }\n if (!resp.taskNamespace) {\n return throwError('No task namespace returned');\n }\n return of({\n taskId: resp.taskId,\n taskNamespace: resp.taskNamespace\n });\n }));\n }\n assignSalesTask(partnerId, marketId, taskId, salespersonUserId, accountGroupId) {\n const req = {\n partnerId: partnerId,\n marketId: marketId,\n accountGroupId: accountGroupId,\n taskId: taskId,\n salespersonUserId: salespersonUserId\n };\n return this._api.assignSalesTask(req).pipe(map(v => v.body));\n }\n }\n TasksService.ɵfac = function TasksService_Factory(t) {\n return new (t || TasksService)(i0.ɵɵinject(TasksApiService));\n };\n TasksService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TasksService,\n factory: TasksService.ɵfac,\n providedIn: 'root'\n });\n return TasksService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Archived, AutoAssignCriteria, AutoAssignCriteriaAccountOriginCriteria, AutoAssignCriteriaCategoryCriteria, AutoAssignCriteriaConversionPointCriteria, AutoAssignCriteriaLocationCriteria, AutoAssignCriteriaTagCriteria, AutoAssignRule, Businesses, Campaign, CampaignSDKService, CriteriaMatchType, DiscountType, FreshdeskService, GetAutoAssignConfigResponse, LifecycleStage, PagedResponse$1 as PagedResponse, PartnerService, SalesApiService, SalesTeamService, Salesperson, SalespersonService, Snapshot, SortFields, TagMatchType, TasksService, TicketPriority, UserAction, UserActionService };\n"],"mappings":"iMAaA,IAAIA,GAAwB,SAAUA,EAAU,CAC9C,OAAAA,EAASA,EAAS,aAAkB,CAAC,EAAI,eACzCA,EAASA,EAAS,aAAkB,CAAC,EAAI,eACzCA,EAASA,EAAS,YAAiB,CAAC,EAAI,cACjCA,CACT,EAAEA,IAAY,CAAC,CAAC,EACZC,GAAwB,SAAUA,EAAU,CAC9C,OAAAA,EAASA,EAAS,aAAkB,CAAC,EAAI,eACzCA,EAASA,EAAS,YAAiB,CAAC,EAAI,cACxCA,EAASA,EAAS,aAAkB,CAAC,EAAI,eAClCA,CACT,EAAEA,IAAY,CAAC,CAAC,EACZC,GAA8B,SAAUA,EAAgB,CAC1D,OAAAA,EAAeA,EAAe,sBAA2B,CAAC,EAAI,wBAC9DA,EAAeA,EAAe,qBAA0B,CAAC,EAAI,uBAC7DA,EAAeA,EAAe,yBAA8B,CAAC,EAAI,2BACjEA,EAAeA,EAAe,yBAA8B,CAAC,EAAI,2BAC1DA,CACT,EAAEA,IAAkB,CAAC,CAAC,EAClBC,GAAwB,SAAUA,EAAU,CAC9C,OAAAA,EAASA,EAAS,a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chType","Salesperson","_Salesperson","proto","m","kwargs","toReturn","SalesTeam","_SalesTeam","proto","m","kwargs","toReturn","enumStringToValue$7","enumRef","value","Business","_Business","proto","m","kwargs","toReturn","BusinessPagedResponseMetadata","_BusinessPagedResponseMetadata","BusinessSearchFilters","_BusinessSearchFilters","Archived","Campaign","Snapshot","LifecycleStage","BusinessSearchSortOptions","_BusinessSearchSortOptions","Attachment","_Attachment","proto","m","kwargs","toReturn","Conversation","_Conversation","Pagination","_Pagination","Ticket","_Ticket","enumStringToValue$2","enumRef","value","AutoAssignCriteriaAccountOriginCriteria","_AutoAssignCriteriaAccountOriginCriteria","AddContactToCampaignRequest","_AddContactToCampaignRequest","AddContactToCampaignRequestRecipient","AddContactToCampaignRequestSender","AutoAssignRuleAppKey","_AutoAssignRuleAppKey","AutoAssignCriteria","_AutoAssignCriteria","proto","m","AutoAssignCriteriaLocationCriteria","AutoAssignCriteriaCategoryCriteria","AutoAssignCriteriaTagCriteria","AutoAssignCriteriaConversionPointCriteria","AutoAssignCriteriaAccountOriginCriteria","kwargs","toReturn","AutoAssignRule","_AutoAssignRule","enumStringToValue$2","CriteriaMatchType","AutoAssignRuleAppKey","BusinessListRequest","_BusinessListRequest","BusinessListResponse","_BusinessListResponse","BusinessListResponseSalestoolBusiness","BusinessSearchRequest","_BusinessSearchRequest","BusinessSearchFilters","PagedRequestOptions","BusinessSearchSortOptions","BusinessSearchResponse","_BusinessSearchResponse","Business","BusinessPagedResponseMetadata","_AutoAssignCriteriaCategoryCriteria","AutoAssignCriteriaConversionPointCriteria","_AutoAssignCriteriaConversionPointCriteria","proto","m","kwargs","toReturn","CreateOrUpdateAutoAssignConfigRequest","_CreateOrUpdateAutoAssignConfigRequest","proto","m","AutoAssignRule","kwargs","toReturn","GetAssignedSalespersonForPartnerRequest","_GetAssignedSalespersonForPartnerRequest","proto","m","kwargs","toReturn","GetAssignedSalespersonForPartnerResponse","_GetAssignedSalespersonForPartnerResponse","Salesperson","GetAutoAssignConfigRequest","_GetAutoAssignConfigRequest","GetAutoAssignConfigResponse","_GetAutoAssignConfigResponse","AutoAssignRule","GetConfigurationRequest","_GetConfigurationRequest","GetConfigurationResponse","_GetConfigurationResponse","GetMembersRequest","_GetMembersRequest","proto","m","kwargs","toReturn","GetMembersResponse","_GetMembersResponse","Salesperson","GetMultiCampaignsRequest","_GetMultiCampaignsRequest","GetMultiCampaignsResponse","_GetMultiCampaignsResponse","SalesCampaign","GetMultiSalesTeamRequest","_GetMultiSalesTeamRequest","proto","m","kwargs","toReturn","GetMultiSalesTeamResponse","_GetMultiSalesTeamResponse","SalesTeam","GetMultiSalespersonRequest","_GetMultiSalespersonRequest","GetMultiSalespersonResponse","_GetMultiSalespersonResponse","Salesperson","GetSalespersonRequest","_GetSalespersonRequest","GetTeamsBySalespersonsRequest","_GetTeamsBySalespersonsRequest","GetTeamsBySalespersonsResponse","_GetTeamsBySalespersonsResponse","GetTeamsBySalespersonsResponseTeamsForSalesperson","ListSalesTeamsRequestListSalesTeamsFilters","_ListSalesTeamsRequestListSalesTeamsFilters","proto","m","kwargs","toReturn","ListSalesTeamsRequest","_ListSalesTeamsRequest","PagedRequestOptions","ListSalesTeamsResponse","_ListSalesTeamsResponse","SalesTeam","PagedResponseMetadata","ListSalespersonsRequestListSalespersonsFilters","_ListSalespersonsRequestListSalespersonsFilters","ListSalespersonsRequest","_ListSalespersonsRequest","ListSalespersonsResponse","_ListSalespersonsResponse","Salesperson","AutoAssignCriteriaLocationCriteria","_AutoAssignCriteriaLocationCriteria","LookupCampaignsRequest","_LookupCampaignsRequest","LookupCampaignsResponse","_LookupCampaignsResponse","SalesCampaign","LookupSalespersonsRequest","_LookupSalespersonsRequest","LookupSalespersonsResponse","_LookupSalespersonsResponse","_PagedRequestOptions","_PagedResponseMetadata","AddContactToCampaignRequestRecipient","_AddContactToCampaignRequestRecipient","proto","m","kwargs","toReturn","RequestSubscriptionChangeRequest","_RequestSubscriptionChangeRequest","SalesCampaign","_SalesCampaign","proto","m","ScheduleStep","kwargs","toReturn","BusinessListResponseSalestoolBusiness","_BusinessListResponseSalestoolBusiness","_ScheduleStep","SearchTicketsRequest","_SearchTicketsRequest","Pagination","SearchTicketsResponse","_SearchTicketsResponse","Ticket","SendResetPasswordEmailRequest","_SendResetPasswordEmailRequest","AddContactToCampaignRequestSender","_AddContactToCampaignRequestSender","SetConfigurationRequest","_SetConfigurationRequest","AutoAssignCriteriaTagCriteria","_AutoAssignCriteriaTagCriteria","proto","m","enumStringToValue$2","TagMatchType","kwargs","toReturn","GetTeamsBySalespersonsResponseTeamsForSalesperson","_GetTeamsBySalespersonsResponseTeamsForSalesperson","SalesTeam","UpdateTeamNameRequest","_UpdateTeamNameRequest","proto","m","kwargs","toReturn","ViewTicketIncludeFields","_ViewTicketIncludeFields","ViewTicketRequest","_ViewTicketRequest","ViewTicketResponse","_ViewTicketResponse","Ticket","Conversation","enumStringToValue$2","TicketPriority","environment","hostMap","HostService","t","ɵɵdefineInjectable","BusinessApiService","http","hostService","HttpHeaders","r","request","BusinessSearchRequest","map","resp","BusinessSearchResponse","RequestSubscriptionChangeRequest","__spreadProps","__spreadValues","BusinessListRequest","BusinessListResponse","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","CampaignApiService","GetMultiCampaignsRequest","GetMultiCampaignsResponse","LookupCampaignsRequest","LookupCampaignsResponse","AddContactToCampaignRequest","FreshdeskApiService","http","hostService","HttpHeaders","r","request","SetConfigurationRequest","__spreadProps","__spreadValues","GetConfigurationRequest","map","resp","GetConfigurationResponse","SearchTicketsRequest","SearchTicketsResponse","ViewTicketRequest","ViewTicketResponse","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","SalesApiService","http","hostService","HttpHeaders","r","request","GetAutoAssignConfigRequest","map","resp","GetAutoAssignConfigResponse","CreateOrUpdateAutoAssignConfigRequest","__spreadProps","__spreadValues","GetSalespersonRequest","Salesperson","GetMultiSalespersonRequest","GetMultiSalespersonResponse","ListSalespersonsRequest","ListSalespersonsResponse","GetAssignedSalespersonForPartnerRequest","GetAssignedSalespersonForPartnerResponse","LookupSalespersonsRequest","LookupSalespersonsResponse","SendResetPasswordEmailRequest","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","SalesTeamApiService","http","hostService","HttpHeaders","r","request","ListSalesTeamsRequest","map","resp","ListSalesTeamsResponse","GetMultiSalesTeamRequest","GetMultiSalesTeamResponse","GetMembersRequest","GetMembersResponse","GetTeamsBySalespersonsRequest","GetTeamsBySalespersonsResponse","UpdateTeamNameRequest","__spreadProps","__spreadValues","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","SalespersonService","_api","partnerId","salespersonId","userId","markets","options","params","map","r","filters","cursor","pageSize","resp","marketId","salespersonIds","t","ɵɵinject","SalesApiService","ɵɵdefineInjectable","SalesTeamService","_api","partnerId","marketId","cursor","pageSize","map","resp","groupId","newTeamName","mapTo","salespersonId","salesTeams","mapping","groupIds","t","ɵɵinject","SalesTeamApiService","ɵɵdefineInjectable","CampaignSDKService","campaignApiService","partnerId","marketId","accountGroupId","campaignIds","map","resp","searchTerm","options","request","t","ɵɵinject","CampaignApiService","ɵɵdefineInjectable","Businesses","internal","partnerId","marketId","sortKey","sortAscending","searchOptions","options","request","map","resp","respBusinesses","share","businessId","name","phoneNumber","message","t","ɵɵinject","BusinessApiService","ɵɵdefineInjectable","FreshdeskService","_api","partnerId","GetConfigurationRequest","domain","apiKey","r","SetConfigurationRequest","errorInterceptor","httpResponse","switchMap","res","EMPTY","throwError","partnerID","accountGroupID","pagination","req","SearchTicketsRequest","__spreadProps","__spreadValues","map","resp","accountGroupId","ticketId","includeFields","ViewTicketRequest","t","ɵɵinject","FreshdeskApiService","ɵɵdefineInjectable"],"x_google_ignoreList":[0]}