{"version":3,"sources":["node_modules/@vendasta/support/fesm2020/vendasta-support.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 } from 'rxjs/operators';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar SortBy = /*#__PURE__*/function (SortBy) {\n SortBy[SortBy[\"SORT_BY_NOT_SPECIFIED\"] = 0] = \"SORT_BY_NOT_SPECIFIED\";\n SortBy[SortBy[\"SORT_BY_UPDATED_AT\"] = 1] = \"SORT_BY_UPDATED_AT\";\n SortBy[SortBy[\"SORT_BY_CREATED_AT\"] = 2] = \"SORT_BY_CREATED_AT\";\n SortBy[SortBy[\"SORT_BY_PRIORITY\"] = 3] = \"SORT_BY_PRIORITY\";\n SortBy[SortBy[\"SORT_BY_STATUS\"] = 4] = \"SORT_BY_STATUS\";\n SortBy[SortBy[\"SORT_BY_TICKET_TYPE\"] = 5] = \"SORT_BY_TICKET_TYPE\";\n return SortBy;\n}(SortBy || {});\nvar SortOrder = /*#__PURE__*/function (SortOrder) {\n SortOrder[SortOrder[\"SORT_ORDER_NOT_SPECIFIED\"] = 0] = \"SORT_ORDER_NOT_SPECIFIED\";\n SortOrder[SortOrder[\"SORT_ORDER_ASC\"] = 1] = \"SORT_ORDER_ASC\";\n SortOrder[SortOrder[\"SORT_ORDER_DESC\"] = 2] = \"SORT_ORDER_DESC\";\n return SortOrder;\n}(SortOrder || {});\nvar Status = /*#__PURE__*/function (Status) {\n Status[Status[\"STATUS_NOT_SPECIFIED\"] = 0] = \"STATUS_NOT_SPECIFIED\";\n Status[Status[\"STATUS_NEW\"] = 1] = \"STATUS_NEW\";\n Status[Status[\"STATUS_OPEN\"] = 2] = \"STATUS_OPEN\";\n Status[Status[\"STATUS_PENDING\"] = 3] = \"STATUS_PENDING\";\n Status[Status[\"STATUS_HOLD\"] = 4] = \"STATUS_HOLD\";\n Status[Status[\"STATUS_SOLVED\"] = 5] = \"STATUS_SOLVED\";\n Status[Status[\"STATUS_CLOSED\"] = 6] = \"STATUS_CLOSED\";\n return Status;\n}(Status || {});\n// *********************************\n\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Article {\n static fromProto(proto) {\n let m = new Article();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 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.body !== 'undefined') {\n toReturn['body'] = this.body;\n }\n if (typeof this.title !== 'undefined') {\n toReturn['title'] = this.title;\n }\n if (typeof this.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n return toReturn;\n }\n}\nclass Attachment {\n static fromProto(proto) {\n let m = new Attachment();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 10);\n }\n if (proto.size) {\n m.size = parseInt(proto.size, 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.fileName !== 'undefined') {\n toReturn['fileName'] = this.fileName;\n }\n if (typeof this.contentUrl !== 'undefined') {\n toReturn['contentUrl'] = this.contentUrl;\n }\n if (typeof this.contentType !== 'undefined') {\n toReturn['contentType'] = this.contentType;\n }\n if (typeof this.size !== 'undefined') {\n toReturn['size'] = this.size;\n }\n if (typeof this.inline !== 'undefined') {\n toReturn['inline'] = this.inline;\n }\n return toReturn;\n }\n}\nclass Group {\n static fromProto(proto) {\n let m = new Group();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 10);\n }\n if (proto.createdAt) {\n m.createdAt = new Date(proto.createdAt);\n }\n if (proto.updatedAt) {\n m.updatedAt = new Date(proto.updatedAt);\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.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.deleted !== 'undefined') {\n toReturn['deleted'] = this.deleted;\n }\n if (typeof this.createdAt !== 'undefined' && this.createdAt !== null) {\n toReturn['createdAt'] = 'toApiJson' in this.createdAt ? this.createdAt.toApiJson() : this.createdAt;\n }\n if (typeof this.updatedAt !== 'undefined' && this.updatedAt !== null) {\n toReturn['updatedAt'] = 'toApiJson' in this.updatedAt ? this.updatedAt.toApiJson() : this.updatedAt;\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.organizationId) {\n m.organizationId = parseInt(proto.organizationId, 10);\n }\n if (proto.requester) {\n m.requester = User.fromProto(proto.requester);\n }\n if (proto.collaborators) {\n m.collaborators = proto.collaborators.map(User.fromProto);\n }\n if (proto.dueAt) {\n m.dueAt = new Date(proto.dueAt);\n }\n if (proto.createdAt) {\n m.createdAt = new Date(proto.createdAt);\n }\n if (proto.updatedAt) {\n m.updatedAt = new Date(proto.updatedAt);\n }\n if (proto.followupSourceId) {\n m.followupSourceId = parseInt(proto.followupSourceId, 10);\n }\n if (proto.assignee) {\n m.assignee = User.fromProto(proto.assignee);\n }\n if (proto.group) {\n m.group = Group.fromProto(proto.group);\n }\n if (proto.via) {\n m.via = Via.fromProto(proto.via);\n }\n if (proto.comment) {\n m.comment = TicketComment.fromProto(proto.comment);\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.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.priority !== 'undefined') {\n toReturn['priority'] = this.priority;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.subject !== 'undefined') {\n toReturn['subject'] = this.subject;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.organizationId !== 'undefined') {\n toReturn['organizationId'] = this.organizationId;\n }\n if (typeof this.requester !== 'undefined' && this.requester !== null) {\n toReturn['requester'] = 'toApiJson' in this.requester ? this.requester.toApiJson() : this.requester;\n }\n if (typeof this.collaborators !== 'undefined' && this.collaborators !== null) {\n toReturn['collaborators'] = 'toApiJson' in this.collaborators ? this.collaborators.toApiJson() : this.collaborators;\n }\n if (typeof this.dueAt !== 'undefined' && this.dueAt !== null) {\n toReturn['dueAt'] = 'toApiJson' in this.dueAt ? this.dueAt.toApiJson() : this.dueAt;\n }\n if (typeof this.createdAt !== 'undefined' && this.createdAt !== null) {\n toReturn['createdAt'] = 'toApiJson' in this.createdAt ? this.createdAt.toApiJson() : this.createdAt;\n }\n if (typeof this.updatedAt !== 'undefined' && this.updatedAt !== null) {\n toReturn['updatedAt'] = 'toApiJson' in this.updatedAt ? this.updatedAt.toApiJson() : this.updatedAt;\n }\n if (typeof this.recipient !== 'undefined') {\n toReturn['recipient'] = this.recipient;\n }\n if (typeof this.followupSourceId !== 'undefined') {\n toReturn['followupSourceId'] = this.followupSourceId;\n }\n if (typeof this.assignee !== 'undefined' && this.assignee !== null) {\n toReturn['assignee'] = 'toApiJson' in this.assignee ? this.assignee.toApiJson() : this.assignee;\n }\n if (typeof this.group !== 'undefined' && this.group !== null) {\n toReturn['group'] = 'toApiJson' in this.group ? this.group.toApiJson() : this.group;\n }\n if (typeof this.via !== 'undefined' && this.via !== null) {\n toReturn['via'] = 'toApiJson' in this.via ? this.via.toApiJson() : this.via;\n }\n if (typeof this.tags !== 'undefined') {\n toReturn['tags'] = this.tags;\n }\n if (typeof this.comment !== 'undefined' && this.comment !== null) {\n toReturn['comment'] = 'toApiJson' in this.comment ? this.comment.toApiJson() : this.comment;\n }\n return toReturn;\n }\n}\nclass TicketComment {\n static fromProto(proto) {\n let m = new TicketComment();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 10);\n }\n if (proto.authorId) {\n m.authorId = parseInt(proto.authorId, 10);\n }\n if (proto.attachments) {\n m.attachments = proto.attachments.map(Attachment.fromProto);\n }\n if (proto.createdAt) {\n m.createdAt = new Date(proto.createdAt);\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.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.body !== 'undefined') {\n toReturn['body'] = this.body;\n }\n if (typeof this.htmlBody !== 'undefined') {\n toReturn['htmlBody'] = this.htmlBody;\n }\n if (typeof this.public !== 'undefined') {\n toReturn['public'] = this.public;\n }\n if (typeof this.authorId !== 'undefined') {\n toReturn['authorId'] = this.authorId;\n }\n if (typeof this.attachments !== 'undefined' && this.attachments !== null) {\n toReturn['attachments'] = 'toApiJson' in this.attachments ? this.attachments.toApiJson() : this.attachments;\n }\n if (typeof this.createdAt !== 'undefined' && this.createdAt !== null) {\n toReturn['createdAt'] = 'toApiJson' in this.createdAt ? this.createdAt.toApiJson() : this.createdAt;\n }\n return toReturn;\n }\n}\nclass User {\n static fromProto(proto) {\n let m = new User();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 10);\n }\n if (proto.createdAt) {\n m.createdAt = new Date(proto.createdAt);\n }\n if (proto.updatedAt) {\n m.updatedAt = new Date(proto.updatedAt);\n }\n if (proto.localeId) {\n m.localeId = parseInt(proto.localeId, 10);\n }\n if (proto.lastLoginAt) {\n m.lastLoginAt = new Date(proto.lastLoginAt);\n }\n if (proto.organizationId) {\n m.organizationId = parseInt(proto.organizationId, 10);\n }\n if (proto.customRoleId) {\n m.customRoleId = parseInt(proto.customRoleId, 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.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.alias !== 'undefined') {\n toReturn['alias'] = this.alias;\n }\n if (typeof this.createdAt !== 'undefined' && this.createdAt !== null) {\n toReturn['createdAt'] = 'toApiJson' in this.createdAt ? this.createdAt.toApiJson() : this.createdAt;\n }\n if (typeof this.updatedAt !== 'undefined' && this.updatedAt !== null) {\n toReturn['updatedAt'] = 'toApiJson' in this.updatedAt ? this.updatedAt.toApiJson() : this.updatedAt;\n }\n if (typeof this.active !== 'undefined') {\n toReturn['active'] = this.active;\n }\n if (typeof this.verified !== 'undefined') {\n toReturn['verified'] = this.verified;\n }\n if (typeof this.shared !== 'undefined') {\n toReturn['shared'] = this.shared;\n }\n if (typeof this.sharedAgent !== 'undefined') {\n toReturn['sharedAgent'] = this.sharedAgent;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.localeId !== 'undefined') {\n toReturn['localeId'] = this.localeId;\n }\n if (typeof this.timeZone !== 'undefined') {\n toReturn['timeZone'] = this.timeZone;\n }\n if (typeof this.lastLoginAt !== 'undefined' && this.lastLoginAt !== null) {\n toReturn['lastLoginAt'] = 'toApiJson' in this.lastLoginAt ? this.lastLoginAt.toApiJson() : this.lastLoginAt;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n if (typeof this.phone !== 'undefined') {\n toReturn['phone'] = this.phone;\n }\n if (typeof this.signature !== 'undefined') {\n toReturn['signature'] = this.signature;\n }\n if (typeof this.details !== 'undefined') {\n toReturn['details'] = this.details;\n }\n if (typeof this.notes !== 'undefined') {\n toReturn['notes'] = this.notes;\n }\n if (typeof this.organizationId !== 'undefined') {\n toReturn['organizationId'] = this.organizationId;\n }\n if (typeof this.role !== 'undefined') {\n toReturn['role'] = this.role;\n }\n if (typeof this.customRoleId !== 'undefined') {\n toReturn['customRoleId'] = this.customRoleId;\n }\n if (typeof this.moderator !== 'undefined') {\n toReturn['moderator'] = this.moderator;\n }\n if (typeof this.ticketRestriction !== 'undefined') {\n toReturn['ticketRestriction'] = this.ticketRestriction;\n }\n if (typeof this.onlyPrivateComments !== 'undefined') {\n toReturn['onlyPrivateComments'] = this.onlyPrivateComments;\n }\n if (typeof this.tags !== 'undefined') {\n toReturn['tags'] = this.tags;\n }\n if (typeof this.restrictedAgent !== 'undefined') {\n toReturn['restrictedAgent'] = this.restrictedAgent;\n }\n if (typeof this.suspended !== 'undefined') {\n toReturn['suspended'] = this.suspended;\n }\n return toReturn;\n }\n}\nclass Via {\n static fromProto(proto) {\n let m = new Via();\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.channel !== 'undefined') {\n toReturn['channel'] = this.channel;\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 CreateTicketRequest {\n static fromProto(proto) {\n let m = new CreateTicketRequest();\n m = Object.assign(m, proto);\n if (proto.ticket) {\n m.ticket = Ticket.fromProto(proto.ticket);\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.ticket !== 'undefined' && this.ticket !== null) {\n toReturn['ticket'] = 'toApiJson' in this.ticket ? this.ticket.toApiJson() : this.ticket;\n }\n return toReturn;\n }\n}\nclass CreateTicketResponse {\n static fromProto(proto) {\n let m = new CreateTicketResponse();\n m = Object.assign(m, proto);\n if (proto.ticket) {\n m.ticket = Ticket.fromProto(proto.ticket);\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.ticket !== 'undefined' && this.ticket !== null) {\n toReturn['ticket'] = 'toApiJson' in this.ticket ? this.ticket.toApiJson() : this.ticket;\n }\n return toReturn;\n }\n}\nclass GetArticleRequest {\n static fromProto(proto) {\n let m = new GetArticleRequest();\n m = Object.assign(m, proto);\n if (proto.id) {\n m.id = parseInt(proto.id, 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 return toReturn;\n }\n}\nclass GetArticleResponse {\n static fromProto(proto) {\n let m = new GetArticleResponse();\n m = Object.assign(m, proto);\n if (proto.article) {\n m.article = Article.fromProto(proto.article);\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.article !== 'undefined' && this.article !== null) {\n toReturn['article'] = 'toApiJson' in this.article ? this.article.toApiJson() : this.article;\n }\n return toReturn;\n }\n}\nclass GetUserByPhoneRequest {\n static fromProto(proto) {\n let m = new GetUserByPhoneRequest();\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.number !== 'undefined') {\n toReturn['number'] = this.number;\n }\n return toReturn;\n }\n}\nclass GetUserByPhoneResponse {\n static fromProto(proto) {\n let m = new GetUserByPhoneResponse();\n m = Object.assign(m, proto);\n if (proto.user) {\n m.user = User.fromProto(proto.user);\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.user !== 'undefined' && this.user !== null) {\n toReturn['user'] = 'toApiJson' in this.user ? this.user.toApiJson() : this.user;\n }\n if (typeof this.pid !== 'undefined') {\n toReturn['pid'] = this.pid;\n }\n return toReturn;\n }\n}\nclass ListCommentsRequest {\n static fromProto(proto) {\n let m = new ListCommentsRequest();\n m = Object.assign(m, proto);\n if (proto.ticketId) {\n m.ticketId = parseInt(proto.ticketId, 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.ticketId !== 'undefined') {\n toReturn['ticketId'] = this.ticketId;\n }\n return toReturn;\n }\n}\nclass ListCommentsResponse {\n static fromProto(proto) {\n let m = new ListCommentsResponse();\n m = Object.assign(m, proto);\n if (proto.comments) {\n m.comments = proto.comments.map(TicketComment.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.comments !== 'undefined' && this.comments !== null) {\n toReturn['comments'] = 'toApiJson' in this.comments ? this.comments.toApiJson() : this.comments;\n }\n return toReturn;\n }\n}\nclass ListTicketsRequest {\n static fromProto(proto) {\n let m = new ListTicketsRequest();\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.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n return toReturn;\n }\n}\nclass ListTicketsResponse {\n static fromProto(proto) {\n let m = new ListTicketsResponse();\n m = Object.assign(m, proto);\n if (proto.tickets) {\n m.tickets = proto.tickets.map(Ticket.fromProto);\n }\n if (proto.users) {\n m.users = proto.users.map(User.fromProto);\n }\n if (proto.count) {\n m.count = parseInt(proto.count, 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.tickets !== 'undefined' && this.tickets !== null) {\n toReturn['tickets'] = 'toApiJson' in this.tickets ? this.tickets.toApiJson() : this.tickets;\n }\n if (typeof this.users !== 'undefined' && this.users !== null) {\n toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;\n }\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.count !== 'undefined') {\n toReturn['count'] = this.count;\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.status) {\n m.status = enumStringToValue(Status, proto.status);\n }\n if (proto.sortBy) {\n m.sortBy = enumStringToValue(SortBy, proto.sortBy);\n }\n if (proto.sortOrder) {\n m.sortOrder = enumStringToValue(SortOrder, proto.sortOrder);\n }\n if (proto.statuses) {\n m.statuses = proto.statuses.map(v => enumStringToValue(Status, v));\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.searchTerm !== 'undefined') {\n toReturn['searchTerm'] = this.searchTerm;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.sortBy !== 'undefined') {\n toReturn['sortBy'] = this.sortBy;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.sortOrder !== 'undefined') {\n toReturn['sortOrder'] = this.sortOrder;\n }\n if (typeof this.statuses !== 'undefined') {\n toReturn['statuses'] = this.statuses;\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 if (proto.users) {\n m.users = proto.users.map(User.fromProto);\n }\n if (proto.count) {\n m.count = parseInt(proto.count, 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.tickets !== 'undefined' && this.tickets !== null) {\n toReturn['tickets'] = 'toApiJson' in this.tickets ? this.tickets.toApiJson() : this.tickets;\n }\n if (typeof this.users !== 'undefined' && this.users !== null) {\n toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;\n }\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.count !== 'undefined') {\n toReturn['count'] = this.count;\n }\n return toReturn;\n }\n}\n\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'support-api.vendasta-local.com',\n 'test': '',\n 'demo': 'support-api-demo.apigateway.co',\n 'prod': 'support-api-prod.apigateway.co',\n 'production': 'support-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 SupportApiService = /*#__PURE__*/(() => {\n class SupportApiService {\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 createTicket(r) {\n const request = r.toApiJson ? r : new CreateTicketRequest(r);\n return this.http.post(this._host + \"/support.v1.Support/CreateTicket\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateTicketResponse.fromProto(resp)));\n }\n getUserByPhone(r) {\n const request = r.toApiJson ? r : new GetUserByPhoneRequest(r);\n return this.http.post(this._host + \"/support.v1.Support/GetUserByPhone\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetUserByPhoneResponse.fromProto(resp)));\n }\n listTickets(r) {\n const request = r.toApiJson ? r : new ListTicketsRequest(r);\n return this.http.post(this._host + \"/support.v1.Support/ListTickets\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListTicketsResponse.fromProto(resp)));\n }\n listComments(r) {\n const request = r.toApiJson ? r : new ListCommentsRequest(r);\n return this.http.post(this._host + \"/support.v1.Support/ListComments\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListCommentsResponse.fromProto(resp)));\n }\n searchTickets(r) {\n const request = r.toApiJson ? r : new SearchTicketsRequest(r);\n return this.http.post(this._host + \"/support.v1.Support/SearchTickets\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SearchTicketsResponse.fromProto(resp)));\n }\n getArticle(r) {\n const request = r.toApiJson ? r : new GetArticleRequest(r);\n return this.http.post(this._host + \"/support.v1.Support/GetArticle\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetArticleResponse.fromProto(resp)));\n }\n }\n SupportApiService.ɵfac = function SupportApiService_Factory(t) {\n return new (t || SupportApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n SupportApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SupportApiService,\n factory: SupportApiService.ɵfac,\n providedIn: 'root'\n });\n return SupportApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Article, Attachment, CreateTicketRequest, CreateTicketResponse, GetArticleRequest, GetArticleResponse, GetUserByPhoneRequest, GetUserByPhoneResponse, Group, ListCommentsRequest, ListCommentsResponse, ListTicketsRequest, ListTicketsResponse, SearchTicketsRequest, SearchTicketsResponse, SortBy, SortOrder, Status, SupportApiService, Ticket, TicketComment, User, Via };\n"],"mappings":"uGAYA,IAAIA,EAAsB,SAAUA,EAAQ,CAC1C,OAAAA,EAAOA,EAAO,sBAA2B,CAAC,EAAI,wBAC9CA,EAAOA,EAAO,mBAAwB,CAAC,EAAI,qBAC3CA,EAAOA,EAAO,mBAAwB,CAAC,EAAI,qBAC3CA,EAAOA,EAAO,iBAAsB,CAAC,EAAI,mBACzCA,EAAOA,EAAO,eAAoB,CAAC,EAAI,iBACvCA,EAAOA,EAAO,oBAAyB,CAAC,EAAI,sBACrCA,CACT,EAAEA,GAAU,CAAC,CAAC,EACVC,EAAyB,SAAUA,EAAW,CAChD,OAAAA,EAAUA,EAAU,yBAA8B,CAAC,EAAI,2BACvDA,EAAUA,EAAU,eAAoB,CAAC,EAAI,iBAC7CA,EAAUA,EAAU,gBAAqB,CAAC,EAAI,kBACvCA,CACT,EAAEA,GAAa,CAAC,CAAC,EACbC,EAAsB,SAAUA,EAAQ,CAC1C,OAAAA,EAAOA,EAAO,qBAA0B,CAAC,EAAI,uBAC7CA,EAAOA,EAAO,WAAgB,CAAC,EAAI,aACnCA,EAAOA,EAAO,YAAiB,CAAC,EAAI,cACpCA,EAAOA,EAAO,eAAoB,CAAC,EAAI,iB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AAQ,kCAAmCC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKC,EAAIC,GAAQtB,EAAoB,UAAUsB,CAAI,CAAC,CAAC,CACrK,CACA,aAAaH,EAAG,CACd,IAAMC,EAAUD,EAAE,UAAYA,EAAI,IAAIzB,EAAoByB,CAAC,EAC3D,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,mCAAoCC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKC,EAAIC,GAAQ1B,EAAqB,UAAU0B,CAAI,CAAC,CAAC,CACvK,CACA,cAAcH,EAAG,CACf,IAAMC,EAAUD,EAAE,UAAYA,EAAI,IAAIjB,EAAqBiB,CAAC,EAC5D,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,oCAAqCC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKC,EAAIC,GAAQd,EAAsB,UAAUc,CAAI,CAAC,CAAC,CACzK,CACA,WAAWH,EAAG,CACZ,IAAMC,EAAUD,EAAE,UAAYA,EAAI,IAAIjC,EAAkBiC,CAAC,EACzD,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,iCAAkCC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKC,EAAIC,GAAQlC,EAAmB,UAAUkC,CAAI,CAAC,CAAC,CACnK,CACF,CACA,OAAAP,EAAkB,UAAO,SAAmCF,EAAG,CAC7D,OAAO,IAAKA,GAAKE,GAAsBQ,EAAYC,CAAU,EAAMD,EAASX,CAAW,CAAC,CAC1F,EACAG,EAAkB,WAA0BD,EAAmB,CAC7D,MAAOC,EACP,QAASA,EAAkB,UAC3B,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["SortBy","SortOrder","Status","Article","_Article","proto","m","kwargs","toReturn","Attachment","_Attachment","Group","_Group","Ticket","_Ticket","User","Via","TicketComment","_TicketComment","_User","_Via","enumStringToValue","enumRef","value","CreateTicketRequest","_CreateTicketRequest","CreateTicketResponse","_CreateTicketResponse","GetArticleRequest","_GetArticleRequest","GetArticleResponse","_GetArticleResponse","GetUserByPhoneRequest","_GetUserByPhoneRequest","GetUserByPhoneResponse","_GetUserByPhoneResponse","ListCommentsRequest","_ListCommentsRequest","ListCommentsResponse","_ListCommentsResponse","ListTicketsRequest","_ListTicketsRequest","ListTicketsResponse","_ListTicketsResponse","SearchTicketsRequest","_SearchTicketsRequest","Status","SortBy","SortOrder","v","SearchTicketsResponse","_SearchTicketsResponse","environment","hostMap","HostService","t","ɵɵdefineInjectable","SupportApiService","http","hostService","HttpHeaders","r","request","map","resp","ɵɵinject","HttpClient"],"x_google_ignoreList":[0]}