imToken v2.9.3版本的 MD5 值为:42af1a08a3f01f69d2f3782d81007b3c
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.helpscout.beacon.internal.data.remote;
import com.helpscout.beacon.internal.core.model.ArticleApi;
import com.helpscout.beacon.internal.core.model.ArticleDetailsApi;
import com.helpscout.beacon.internal.core.model.ArticleSearchResponseApi;
import com.helpscout.beacon.internal.core.model.ArticleSuggestionApi;
import com.helpscout.beacon.internal.core.model.ArticleSuggestionsResponseApi;
import com.helpscout.beacon.internal.core.model.BeaconArticlesSuggestionConverter;
import com.helpscout.beacon.internal.core.model.BeaconConfigApi;
import com.helpscout.beacon.internal.core.model.CustomFieldValue;
import com.helpscout.beacon.internal.domain.model.AgentsApi;
import com.helpscout.beacon.internal.domain.model.ArticleFeedbackBodyApi;
import com.helpscout.beacon.internal.domain.model.BeaconAgent;
import com.helpscout.beacon.internal.domain.model.BeaconConversationsApi;
import com.helpscout.beacon.internal.domain.model.BeaconConversationsCountApi;
import com.helpscout.beacon.internal.domain.model.ConversationApi;
import com.helpscout.beacon.internal.domain.model.ConversationThreadsApi;
import com.helpscout.beacon.internal.domain.model.CustomField;
import com.helpscout.beacon.internal.domain.model.CustomFieldApi;
import com.helpscout.beacon.internal.domain.model.CustomerStatus;
import com.helpscout.beacon.internal.domain.model.TimelineEvent;
import com.helpscout.beacon.internal.domain.model.TokenApi;
import com.helpscout.beacon.model.BeaconUser;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.Boxing;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.DelayKt;
import okhttp3.ResponseBody;
public final class b implements com.helpscout.beacon.internal.data.remote.a {
private static final String b = "\n {\n \"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyNlFwdGZNTVM4dHVrNnVPRTBocnpjZnRoYmNJRWpPODNBdTBnUFp0RzdDbHJJeE41eGFvZjFKdllnMjJSV2tldzRTcE1qSFJRRzkyV0JJQ2xGcEFwS2JSeTYvamsxcUNBMFVOelI5UnU2N2N1Lzk2QThlWllna2xHbTl3VjVHejRUcUFXUFZlWUM5cUdZY3VtNEJuUkZGNnFvQUZHRXlwOUJDMXVjV3FoZHhNT0tEZ3AzS0RKRUkzQXpKUmlreENEdzhQZHZDK0ZyK055UzRhK0VYSVBaM1NtRURtY3BReUY4bjBPRHZ3N1Vhekl5UGdmU2srNVRuSUJPNVFwYUZSOUMwN3JEakFiNmE2VXg5RERPS0tYTXdVSXlLdGhkRXpCUUZicEFiUE1kNVJ3MUhqWmxSc0VFRkx3NXdzckJTMlVaK2pNeWxSSzRGNGVxaEN5UHJRYXI3RzdkYTM0RmREeFdNVkJjQ1gxZ09razNIYm15NUpGR3hmS3h0ZVVndjNYK1NrZ3ZLR1ZFY2pKejJVKzNJdEtwODM4eXpjU09aQUZJQnY0a25jekxOM3JwazlOL0dHMktsTmlWT016RjJod0F0QkRMNndNVEQzcXlvUm9hT3NNeHpJUFlzOGw0MFZTOVp5U29PYzBJVEhzd0F1ZVN2TjFBQVk3NmkyNUd1ckNQZzJINjE1UDJyc2hFT2I0NmphaDdSTWF4eWNldlNmVy9ObHB4VmwyemlReXBWeVdId1hQSXpxdG1NZjl4SUptMkpVVzhJdUZvYUVJVVAyc3RTTEpGUFA5S0hzVGxobWI4dlFCV1FGcU1wcnBPSE5FUytNSUVzNlhHc3U5MHZhamozdU02L3l2dG9sUit1Nkx1LzJraWRQV2VEckR5bDQzMkVWZkVnUkpFNFFweDI0VjFycU44ZWR0YUVKK2hVTXhUMzlQZVkzMERGSU1RdXU0Kytjd3p1eTZuZXl4WGRFdVZWay8wQTBqalBCUW5lVlNnRks6Vm9KbE1RL3Rla0Jna1dOYyIsImlzcyI6ImJlYWNvbi1hcGkiLCJleHAiOjE1NTY3MTgxMDAsImlhdCI6MTU1NjcxNDUwMCwianRpIjoiOWU0MzczNmUtNjliNi00MWNkLWJiYTctN2U2MWUwZDcyMDc2In0.kJ1C4kE9EJfc6NCOIMgOSlkUj1Fn9V9-G5qBT_PA7uw\"\n }\n ";
private static final String c = "\n {\n \"id\": \"beaconId\",\n \"name\":\"Beacon 1\",\n \"display\": {\n \"style\":\"iconAndText\",\n \"text\":\"text label\",\n \"textAlign\":\"left\",\n \"iconImage\":\"beacon\",\n \"color\":\"#32a8d9\",\n \"postiton\":\"right\",\n \"zIndex\":1050,\n \"showPoweredBy\":true\n },\n \"docsEnabled\":true,\n \"messagingEnabled\": true,\n \"messaging\": {\n \"expectedResponseTime\": \"hrs\",\n \"authType\":\"basic\",\n \"chatEnabled\":true,\n \"contactForm\":{\n \"showName\":false,\n \"showSubject\":false,\n \"allowAttachments\":true,\n \"customFieldsEnabled\":true,\n \"showGetInTouch\":true\n }\n },\n \"labels\": {\n \"searchLabel\":\"What can we help you with?\",\n \"noResultsLabel\":\"Our own text for no results\"\n }\n }\n ";
private static final String d = "\n {\n \"id\":\"52b467e9e4b0a3b4e5ec644c\",\n \"name\":\"Manage multiple Docs sites\",\n \"text\":\"<html><body><p> You might want to create different Docs ss. </p></body></html>\",\n \"related\":[\n {\n \"id\":\"524db929e4b0c2199a391f39\",\n \"name\":\"Email commands \",\n \"url\":\"http://docs.helpscout.net/article/43-email-commands\"\n },\n {\n \"id\":\"52b5b007e4b0a3b4e5ec64da\",\n \"name\":\"How mailboxes work in Help Scout\",\n \"url\":\"http://docs.helpscout.net/article/231-mailboxes\"\n }\n ],\n \"url\":\"http://docs.helpscout.net/article/229-multiple-docs-sites\"\n }\n ";
private static final String e = "\n {\"items\":[{\"type\":\"article\",\"suggestion\":{\"id\":\"54f0a3e8e4b086c0c096a1de\",\"name\":\"Mock working with variables\",\"url\":\"http://docs.brightwurks.com/article/468-variables\"}},{\"type\":\"article\",\"suggestion\":{\"id\":\"525552b4e4b0fc33a10a7ca1\",\"name\":\"Forward from Outlook.com and Office365\",\"url\":\"http://docs.brightwurks.com/article/76-office-outlook-forwarding\"}},{\"type\":\"article\",\"suggestion\":{\"id\":\"525216e7e4b00055e61de9d4\",\"name\":\"Enable and respond to email notifications\",\"url\":\"http://docs.brightwurks.com/article/67-email-notifications\"}},{\"type\":\"link\",\"suggestion\":{\"url\":\"http://helpscout.com\",\"text\":\"Help Scout\"}},{\"type\":\"link\",\"suggestion\":{\"url\":\"http://bbc.co.uk\",\"text\":\"BBC News\"}}]}\n ";
private static final String f = "\n {\n \"items\":[\n {\n \"id\":\"524db929e4b0c2199a391f39\",\n \"name\":\"Mock Email commands \",\n \"preview\":\"Email commands allow you to update Help Scout conversations via your email client...\",\n \"url\":\"http://docs.helpscout.net/article/43-email-commands\"\n },\n {\n \"id\":\"52b5b007e4b0a3b4e5ec64da\",\n \"name\":\"Mock How mailboxes work in Help Scout\",\n \"preview\":\"A mailbox in Help Scout is like any other inbox: it holds email. Your support team will work ...\",\n \"url\":\"http://docs.helpscout.net/article/231-mailboxes\"\n }\n ],\n \"paging\" : {\n \"page\" : 1,\n \"pages\" : 4,\n \"pageSize\" : 20,\n \"count\" : 75\n }\n }\n ";
private static final String g = "\n {\n \"items\":[\n {\n \"id\":1234,\n \"threadCount\": 5,\n \"subject\":\"Mock I need help!\",\n \"firstThread\": {\n \"preview\": \"I’d like a refund for this month’s subscription as your service has been consistenly crashing\",\n \"createdAt\": \"2015-06-12T11:39:00Z\",\n \"createdBy\": {\n \"type\": \"customer\",\n \"name\": \"Harry Hoola\",\n \"initials\": \"HH\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4.541.png\"\n }\n },\n \"lastThread\": {\n \"preview\": \"Mock Sorry About that, it looks like\",\n \"createdAt\": \"2015-06-12T10:35:00Z\",\n \"createdBy\": {\n \"type\": \"user\",\n \"name\": \"Denny Swindle\",\n \"initials\": \"DS\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4.541.png\"\n }\n },\n \"participants\": [\n {\n \"name\":\"Denny Swindle\",\n \"initials\":\"DS\",\n \"image\":\"https://d33v4339jhl8k0.cloudfront.net/users/120359.49685.png\"\n },\n {\n \"name\":\"Nick Francis\",\n \"initials\":\"NF\",\n \"image\":\"https://d33v4339jhl8k0.cloudfront.net/users/120359.49685.png\"\n }\n ]\n },\n {\n \"id\":1234,\n \"threadCount\": 5,\n \"subject\":\"I need help!\",\n \"firstThread\": {\n \"preview\": \"I need help adding a team member\",\n \"createdAt\": \"2015-06-12T11:39:00Z\",\n \"createdBy\": {\n \"type\": \"customer\",\n \"name\": \"Harry Hoola\",\n \"initials\": \"HH\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4.541.png\"\n }\n },\n \"lastThread\": {\n \"preview\": \"Sorry About that, it looks like\",\n \"createdAt\": \"2015-06-12T10:35:00Z\",\n \"createdBy\": {\n \"type\": \"user\",\n \"name\": \"Denny Swindle\",\n \"initials\": \"DS\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4.541.png\"\n }\n },\n \"participants\": [\n {\n \"name\":\"Denny Swindle\",\n \"initials\":\"DS\",\n \"image\":\"https://d33v4339jhl8k0.cloudfront.net/users/120359.49685.png\"\n },\n {\n \"name\":\"Nick Francis\",\n \"initials\":\"NF\",\n \"image\":\"https://d33v4339jhl8k0.cloudfront.net/users/120359.49685.png\"\n }\n ]\n }\n ],\n \"paging\" : {\n \"page\" : 1,\n \"pages\" : 4,\n \"pageSize\" : 20,\n \"count\" : 75\n }\n }\n\n\n ";
private static final String h = "\n {\n \"items\": [{\n \"id\": 1637063678,\n \"createdAt\": \"2018-06-08T09:19:16.000Z\",\n \"body\": \"Best\",\n \"type\": \"message\",\n \"customerViewed\": false,\n \"preview\": \"Best\",\n \"createdBy\": {\n \"type\": \"self\",\n \"name\": \"Scott\",\n \"initials\": \"S\",\n \"image\": \"https://d33v4339jhl8k0.cloudfront.net/customer-avatar/07.png\"\n },\n \"attachments\": []\n }, {\n \"id\": 1637059200,\n \"createdAt\": \"2018-06-08T09:16:11.000Z\",\n \"body\": \"Test\",\n \"type\": \"message\",\n \"customerViewed\": false,\n \"preview\": \"Test\",\n \"createdBy\": {\n \"type\": \"self\",\n \"name\": \"Scott\",\n \"initials\": \"S\",\n \"image\": \"https://d33v4339jhl8k0.cloudfront.net/customer-avatar/07.png\"\n },\n \"attachments\": []\n }, {\n \"id\": 1637034514,\n \"createdAt\": \"2018-06-08T08:59:46.000Z\",\n \"body\": \"This is a ALLL my message\",\n \"type\": \"message\",\n \"customerViewed\": false,\n \"preview\": \"This is a ALLL my message\",\n \"createdBy\": {\n \"type\": \"self\",\n \"name\": \"Scott\",\n \"initials\": \"S\",\n \"image\": \"https://d33v4339jhl8k0.cloudfront.net/customer-avatar/07.png\"\n },\n \"attachments\": []\n }],\n \"paging\": {\n \"page\": 3,\n \"pages\": 4,\n \"pageSize\": 10,\n \"count\": 32\n }\n }\n ";
private static final String i = "\n {\n \"id\":1234,\n \"subject\":\"I need help!\",\n \"participants\": [\n {\n \"name\":\"Denny Swindle\",\n \"initials\":\"DS\",\n \"image\":\"https://d33v4339j4l8k0.cloudfront.net/users/1.1.jpg\"\n },\n {\n \"name\":\"Nick Francis\",\n \"initials\":\"NF\",\n \"image\":\"https://d33v4339j4l8k0.cloudfront.net/users/1.2.jpg\"\n }\n ],\n \"threads\": {\n \"items\":[\n {\n \"id\":1234,\n \"createdAt\": \"2016-09-20T13:25:06Z\",\n \"body\": \"Hello can you help me please ...\",\n \"createdBy\": {\n \"type\": \"user\",\n \"name\": \"Denny Swindle\",\n \"initials\": \"DS\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4.541.png\"\n },\n \"uploadAttachmentStates\" : [ {\n \"id\" : 1,\n \"createdAt\" : \"2015-06-12T11:39:00Z\",\n \"mimeType\" : \"mime type\",\n \"filename\" : \"file.jpg\"\n }]\n },\n {\n \"id\":1235,\n \"createdAt\": \"2016-09-20T13:25:06Z\",\n \"body\": \"Of course sir, what do you need?\",\n \"createdBy\": {\n \"type\": \"user\",\n \"name\": \"David Gonzalez\",\n \"initials\": \"DG\",\n \"image\": \"https://d33v4339jhl8k0.cloudfront.net/users/120359.49685.png\"\n },\n \"uploadAttachmentStates\" : [ {\n \"id\" : 1,\n \"createdAt\" : \"2015-06-12T11:39:00Z\",\n \"mimeType\" : \"mime type\",\n \"filename\" : \"file.jpg\"\n }]\n }\n ],\n \"paging\" : {\n \"page\" : 1,\n \"pages\" : 4,\n \"pageSize\" : 20,\n \"count\" : 75\n }\n }\n }\n ";
private static final String j = "\n {\n \"items\": [\n {\n \"name\": \"Amanda Fong\",\n \"initials\": \"AF\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4338.494.jpg\"\n },\n {\n \"name\": \"Bob Stalmach\",\n \"initials\": \"BS\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4359.536.jpg\"\n },\n {\n \"name\": \"Buddy Tester\",\n \"initials\": \"BT\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4351.538.jpg\"\n },\n {\n \"name\": \"Carlin Isaacson\",\n \"initials\": \"CI\",\n \"image\": \"https://1.gravatar.com/avatar/8d6754168cf402ac2482448358df257d\"\n },\n {\n \"name\": \"Chris Brookins\",\n \"initials\": \"CB\",\n \"image\": \"https://s3.amazonaws.com/dev.helpscout.net/users/4351.538.jpg\"\n }\n ]\n }\n ";
private static final String k = "\n {\n \"items\": [{\n \"id\":5,\n \"required\":false,\n \"type\":\"singleline\",\n \"name\":\"Trello Card\",\n \"options\":[]\n },\n {\n \"id\":2,\n \"required\":true,\n \"type\":\"dropdown\",\n \"name\":\"Favorite Color\",\n \"options\":[\n {\n \"id\":1,\n \"label\":\"red\"\n },\n {\n \"id\":5,\n \"label\":\"blue\"\n }\n ]\n }\n ]\n }\n ";
private static final String l = "\n {\n \"count\" : 75\n }\n ";
private final com.helpscout.beacon.a.a.a f997a;
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {}, l = {123}, m = "createConversation", n = {}, s = {})
public static final class a extends ContinuationImpl {
Object f998a;
int b;
a(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f998a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a(null, null, null, null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {}, l = {156}, m = "downloadThreadAttachment", n = {}, s = {})
public static final class C0142b extends ContinuationImpl {
Object f999a;
int b;
C0142b(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f999a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.b((String) null, (String) null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {73}, m = "getAgents", n = {"this"}, s = {"L$0"})
public static final class c extends ContinuationImpl {
Object f1000a;
int b;
Object d;
c(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1000a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.e(this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {56}, m = "getArticleById", n = {"this"}, s = {"L$0"})
public static final class d extends ContinuationImpl {
Object f1001a;
int b;
Object d;
d(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1001a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a((String) null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {68}, m = "getBeaconConfig", n = {"this"}, s = {"L$0"})
public static final class e extends ContinuationImpl {
Object f1002a;
int b;
Object d;
e(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1002a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.d(this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {93}, m = "getConversation", n = {"this"}, s = {"L$0"})
public static final class f extends ContinuationImpl {
Object f1003a;
int b;
Object d;
f(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1003a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.f(null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {101}, m = "getConversationThreads", n = {"this"}, s = {"L$0"})
public static final class g extends ContinuationImpl {
Object f1004a;
int b;
Object d;
g(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1004a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.b((String) null, 0, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {88}, m = "getConversations", n = {"this"}, s = {"L$0"})
public static final class h extends ContinuationImpl {
Object f1005a;
int b;
Object d;
h(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1005a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a(0, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {83}, m = "getConversationsCount", n = {"this"}, s = {"L$0"})
public static final class i extends ContinuationImpl {
Object f1006a;
int b;
Object d;
i(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1006a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.b(this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {78}, m = "getCustomFields", n = {"this"}, s = {"L$0"})
public static final class j extends ContinuationImpl {
Object f1007a;
int b;
Object d;
j(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1007a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.c(this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0, 0}, l = {45}, m = "getSuggestions", n = {"suggestions", "converter"}, s = {"L$0", "L$1"})
public static final class k extends ContinuationImpl {
Object f1008a;
int b;
Object d;
Object e;
k(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1008a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a(this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {}, l = {138}, m = "identifyCustomer", n = {}, s = {})
public static final class l extends ContinuationImpl {
Object f1009a;
int b;
l(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1009a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a((BeaconUser) null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {}, l = {133}, m = "registerPushToken", n = {}, s = {})
public static final class m extends ContinuationImpl {
Object f1010a;
int b;
m(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1010a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.d(null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {0}, l = {51}, m = "searchForArticles", n = {"searchItemsApi"}, s = {"L$0"})
public static final class n extends ContinuationImpl {
Object f1011a;
int b;
Object d;
n(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1011a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a((String) null, 0, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {}, l = {128}, m = "subscribeToConversation", n = {}, s = {})
public static final class o extends ContinuationImpl {
Object f1012a;
int b;
o(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1012a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.b(null, this);
}
}
@DebugMetadata(c = "com.helpscout.beacon.internal.data.remote.MockBeaconApiClient", f = "MockBeaconApiClient.kt", i = {}, l = {143}, m = "uploadAttachment", n = {}, s = {})
public static final class p extends ContinuationImpl {
Object f1013a;
int b;
p(Continuation continuation) {
super(continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
this.f1013a = obj;
this.b |= Integer.MIN_VALUE;
return b.this.a((com.helpscout.beacon.a.d.e.a.d) null, this);
}
}
public b(com.helpscout.beacon.a.a.a parser) {
Intrinsics.checkNotNullParameter(parser, "parser");
this.f997a = parser;
}
@Override
public Object a(int i2, Continuation<? super BeaconConversationsApi> continuation) {
h hVar;
int i3;
b bVar;
if (continuation instanceof h) {
hVar = (h) continuation;
int i4 = hVar.b;
if ((i4 & Integer.MIN_VALUE) != 0) {
hVar.b = i4 - Integer.MIN_VALUE;
Object obj = hVar.f1005a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i3 = hVar.b;
if (i3 != 0) {
ResultKt.throwOnFailure(obj);
hVar.d = this;
hVar.b = 1;
if (g(hVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i3 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) hVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
Object a2 = com.helpscout.beacon.a.a.c.c.c.a(BeaconConversationsApi.class).a(g);
Intrinsics.checkNotNull(a2);
return a2;
}
}
hVar = new h(continuation);
Object obj2 = hVar.f1005a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i3 = hVar.b;
if (i3 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
Object a22 = com.helpscout.beacon.a.a.c.c.c.a(BeaconConversationsApi.class).a(g);
Intrinsics.checkNotNull(a22);
return a22;
}
@Override
public Object a(com.helpscout.beacon.a.d.e.a.d dVar, Continuation<? super String> continuation) {
p pVar;
int i2;
if (continuation instanceof p) {
pVar = (p) continuation;
int i3 = pVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
pVar.b = i3 - Integer.MIN_VALUE;
Object obj = pVar.f1013a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = pVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
pVar.b = 1;
return g(pVar) == coroutine_suspended ? coroutine_suspended : "MOCK_ATTACHMENT_ID";
}
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
return "MOCK_ATTACHMENT_ID";
}
}
pVar = new p(continuation);
Object obj2 = pVar.f1013a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = pVar.b;
if (i2 != 0) {
}
}
@Override
public Object a(com.helpscout.beacon.a.d.e.a.e eVar, List<CustomFieldValue> list, List<? extends TimelineEvent> list2, Map<String, String> map, Continuation<? super String> continuation) {
a aVar;
int i2;
if (continuation instanceof a) {
aVar = (a) continuation;
int i3 = aVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
aVar.b = i3 - Integer.MIN_VALUE;
Object obj = aVar.f998a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = aVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
aVar.b = 1;
return g(aVar) == coroutine_suspended ? coroutine_suspended : "MOCK_CONVO_ID";
}
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
return "MOCK_CONVO_ID";
}
}
aVar = new a(continuation);
Object obj2 = aVar.f998a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = aVar.b;
if (i2 != 0) {
}
}
@Override
public Object a(BeaconUser beaconUser, Continuation<? super CustomerStatus> continuation) {
l lVar;
int i2;
if (continuation instanceof l) {
lVar = (l) continuation;
int i3 = lVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
lVar.b = i3 - Integer.MIN_VALUE;
Object obj = lVar.f1009a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = lVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
lVar.b = 1;
if (g(lVar) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return CustomerStatus.UPDATED;
}
}
lVar = new l(continuation);
Object obj2 = lVar.f1009a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = lVar.b;
if (i2 != 0) {
}
return CustomerStatus.UPDATED;
}
@Override
public Object a(String str, int i2, Continuation<? super ArticleSearchResponseApi> continuation) {
n nVar;
int i3;
ArticleSearchResponseApi articleSearchResponseApi;
if (continuation instanceof n) {
nVar = (n) continuation;
int i4 = nVar.b;
if ((i4 & Integer.MIN_VALUE) != 0) {
nVar.b = i4 - Integer.MIN_VALUE;
Object obj = nVar.f1011a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i3 = nVar.b;
if (i3 != 0) {
ResultKt.throwOnFailure(obj);
ArticleSearchResponseApi articleSearchResponseApi2 = (ArticleSearchResponseApi) com.helpscout.beacon.a.a.c.c.c.a(ArticleSearchResponseApi.class).a(f);
nVar.d = articleSearchResponseApi2;
nVar.b = 1;
if (g(nVar) == coroutine_suspended) {
return coroutine_suspended;
}
articleSearchResponseApi = articleSearchResponseApi2;
} else {
if (i3 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
articleSearchResponseApi = (ArticleSearchResponseApi) nVar.d;
ResultKt.throwOnFailure(obj);
}
Intrinsics.checkNotNull(articleSearchResponseApi);
return articleSearchResponseApi;
}
}
nVar = new n(continuation);
Object obj2 = nVar.f1011a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i3 = nVar.b;
if (i3 != 0) {
}
Intrinsics.checkNotNull(articleSearchResponseApi);
return articleSearchResponseApi;
}
@Override
public Object a(String str, ArticleFeedbackBodyApi articleFeedbackBodyApi, Continuation<? super Unit> continuation) {
Object g2 = g(continuation);
return g2 == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? g2 : Unit.INSTANCE;
}
@Override
public Object a(String str, String str2, List<String> list, Continuation<? super Unit> continuation) {
Object g2 = g(continuation);
return g2 == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? g2 : Unit.INSTANCE;
}
@Override
public Object a(String str, String str2, Continuation<? super Unit> continuation) {
Object g2 = g(continuation);
return g2 == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? g2 : Unit.INSTANCE;
}
@Override
public Object a(String str, Continuation<? super ArticleDetailsApi> continuation) {
d dVar;
int i2;
b bVar;
if (continuation instanceof d) {
dVar = (d) continuation;
int i3 = dVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
dVar.b = i3 - Integer.MIN_VALUE;
Object obj = dVar.f1001a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = dVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
dVar.d = this;
dVar.b = 1;
if (g(dVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) dVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
Object a2 = com.helpscout.beacon.a.a.c.c.c.a(ArticleDetailsApi.class).a(d);
Intrinsics.checkNotNull(a2);
return a2;
}
}
dVar = new d(continuation);
Object obj2 = dVar.f1001a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = dVar.b;
if (i2 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
Object a22 = com.helpscout.beacon.a.a.c.c.c.a(ArticleDetailsApi.class).a(d);
Intrinsics.checkNotNull(a22);
return a22;
}
@Override
public Object a(Continuation<? super List<? extends ArticleApi>> continuation) {
k kVar;
int i2;
ArticleSuggestionsResponseApi articleSuggestionsResponseApi;
BeaconArticlesSuggestionConverter beaconArticlesSuggestionConverter;
List<ArticleSuggestionApi> items;
Iterator<T> it;
if (continuation instanceof k) {
kVar = (k) continuation;
int i3 = kVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
kVar.b = i3 - Integer.MIN_VALUE;
Object obj = kVar.f1008a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = kVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
ArticleSuggestionsResponseApi articleSuggestionsResponseApi2 = (ArticleSuggestionsResponseApi) com.helpscout.beacon.a.a.c.c.c.a(ArticleSuggestionsResponseApi.class).a(e);
BeaconArticlesSuggestionConverter beaconArticlesSuggestionConverter2 = new BeaconArticlesSuggestionConverter();
kVar.d = articleSuggestionsResponseApi2;
kVar.e = beaconArticlesSuggestionConverter2;
kVar.b = 1;
if (g(kVar) == coroutine_suspended) {
return coroutine_suspended;
}
articleSuggestionsResponseApi = articleSuggestionsResponseApi2;
beaconArticlesSuggestionConverter = beaconArticlesSuggestionConverter2;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
beaconArticlesSuggestionConverter = (BeaconArticlesSuggestionConverter) kVar.e;
articleSuggestionsResponseApi = (ArticleSuggestionsResponseApi) kVar.d;
ResultKt.throwOnFailure(obj);
}
items = articleSuggestionsResponseApi == null ? articleSuggestionsResponseApi.getItems() : null;
if (items == null) {
items = CollectionsKt.emptyList();
}
ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(items, 10));
it = items.iterator();
while (it.hasNext()) {
arrayList.add(beaconArticlesSuggestionConverter.map((ArticleSuggestionApi) it.next()));
}
return arrayList;
}
}
kVar = new k(continuation);
Object obj2 = kVar.f1008a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = kVar.b;
if (i2 != 0) {
}
if (articleSuggestionsResponseApi == null) {
}
if (items == null) {
}
ArrayList arrayList2 = new ArrayList(CollectionsKt.collectionSizeOrDefault(items, 10));
it = items.iterator();
while (it.hasNext()) {
}
return arrayList2;
}
@Override
public Object b(String str, int i2, Continuation<? super ConversationThreadsApi> continuation) {
g gVar;
int i3;
b bVar;
if (continuation instanceof g) {
gVar = (g) continuation;
int i4 = gVar.b;
if ((i4 & Integer.MIN_VALUE) != 0) {
gVar.b = i4 - Integer.MIN_VALUE;
Object obj = gVar.f1004a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i3 = gVar.b;
if (i3 != 0) {
ResultKt.throwOnFailure(obj);
gVar.d = this;
gVar.b = 1;
if (g(gVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i3 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) gVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
Object a2 = com.helpscout.beacon.a.a.c.c.c.a(ConversationThreadsApi.class).a(h);
Intrinsics.checkNotNull(a2);
return a2;
}
}
gVar = new g(continuation);
Object obj2 = gVar.f1004a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i3 = gVar.b;
if (i3 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
Object a22 = com.helpscout.beacon.a.a.c.c.c.a(ConversationThreadsApi.class).a(h);
Intrinsics.checkNotNull(a22);
return a22;
}
@Override
public Object b(String str, String str2, Continuation<? super ResponseBody> continuation) {
C0142b c0142b;
int i2;
if (continuation instanceof C0142b) {
c0142b = (C0142b) continuation;
int i3 = c0142b.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
c0142b.b = i3 - Integer.MIN_VALUE;
Object obj = c0142b.f999a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = c0142b.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
c0142b.b = 1;
if (g(c0142b) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
throw new RuntimeException("MOCK not implemented");
}
}
c0142b = new C0142b(continuation);
Object obj2 = c0142b.f999a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = c0142b.b;
if (i2 != 0) {
}
throw new RuntimeException("MOCK not implemented");
}
@Override
public Object b(String str, Continuation<? super Boolean> continuation) {
o oVar;
int i2;
if (continuation instanceof o) {
oVar = (o) continuation;
int i3 = oVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
oVar.b = i3 - Integer.MIN_VALUE;
Object obj = oVar.f1012a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = oVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
oVar.b = 1;
if (g(oVar) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Boxing.boxBoolean(true);
}
}
oVar = new o(continuation);
Object obj2 = oVar.f1012a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = oVar.b;
if (i2 != 0) {
}
return Boxing.boxBoolean(true);
}
@Override
public Object b(Continuation<? super Integer> continuation) {
i iVar;
int i2;
b bVar;
if (continuation instanceof i) {
iVar = (i) continuation;
int i3 = iVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
iVar.b = i3 - Integer.MIN_VALUE;
Object obj = iVar.f1006a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = iVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
iVar.d = this;
iVar.b = 1;
if (g(iVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) iVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
Object a2 = com.helpscout.beacon.a.a.c.c.c.a(BeaconConversationsCountApi.class).a(l);
Intrinsics.checkNotNull(a2);
return Boxing.boxInt(((BeaconConversationsCountApi) a2).getCount());
}
}
iVar = new i(continuation);
Object obj2 = iVar.f1006a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = iVar.b;
if (i2 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
Object a22 = com.helpscout.beacon.a.a.c.c.c.a(BeaconConversationsCountApi.class).a(l);
Intrinsics.checkNotNull(a22);
return Boxing.boxInt(((BeaconConversationsCountApi) a22).getCount());
}
@Override
public Object c(String str, Continuation<? super String> continuation) {
String token;
TokenApi tokenApi = (TokenApi) com.helpscout.beacon.a.a.c.c.c.a(TokenApi.class).a(b);
return (tokenApi == null || (token = tokenApi.getToken()) == null) ? "chat_token" : token;
}
@Override
public Object c(Continuation<? super List<CustomField>> continuation) {
j jVar;
int i2;
b bVar;
if (continuation instanceof j) {
jVar = (j) continuation;
int i3 = jVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
jVar.b = i3 - Integer.MIN_VALUE;
Object obj = jVar.f1007a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = jVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
jVar.d = this;
jVar.b = 1;
if (g(jVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) jVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
CustomFieldApi customFieldApi = (CustomFieldApi) com.helpscout.beacon.a.a.c.c.c.a(CustomFieldApi.class).a(k);
List<CustomField> items = customFieldApi == null ? customFieldApi.getItems() : null;
Intrinsics.checkNotNull(items);
return items;
}
}
jVar = new j(continuation);
Object obj2 = jVar.f1007a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = jVar.b;
if (i2 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
CustomFieldApi customFieldApi2 = (CustomFieldApi) com.helpscout.beacon.a.a.c.c.c.a(CustomFieldApi.class).a(k);
if (customFieldApi2 == null) {
}
Intrinsics.checkNotNull(items);
return items;
}
@Override
public Object d(String str, Continuation<? super Boolean> continuation) {
m mVar;
int i2;
if (continuation instanceof m) {
mVar = (m) continuation;
int i3 = mVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
mVar.b = i3 - Integer.MIN_VALUE;
Object obj = mVar.f1010a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = mVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
mVar.b = 1;
if (g(mVar) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Boxing.boxBoolean(true);
}
}
mVar = new m(continuation);
Object obj2 = mVar.f1010a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = mVar.b;
if (i2 != 0) {
}
return Boxing.boxBoolean(true);
}
@Override
public Object d(Continuation<? super BeaconConfigApi> continuation) {
e eVar;
int i2;
b bVar;
if (continuation instanceof e) {
eVar = (e) continuation;
int i3 = eVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
eVar.b = i3 - Integer.MIN_VALUE;
Object obj = eVar.f1002a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = eVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
eVar.d = this;
eVar.b = 1;
if (g(eVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) eVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
Object a2 = com.helpscout.beacon.a.a.c.c.c.a(BeaconConfigApi.class).a(c);
Intrinsics.checkNotNull(a2);
return a2;
}
}
eVar = new e(continuation);
Object obj2 = eVar.f1002a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = eVar.b;
if (i2 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
Object a22 = com.helpscout.beacon.a.a.c.c.c.a(BeaconConfigApi.class).a(c);
Intrinsics.checkNotNull(a22);
return a22;
}
@Override
public Object e(String str, Continuation<? super ResponseBody> continuation) {
throw new RuntimeException("MOCK not implemented");
}
@Override
public Object e(Continuation<? super List<BeaconAgent>> continuation) {
c cVar;
int i2;
b bVar;
if (continuation instanceof c) {
cVar = (c) continuation;
int i3 = cVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
cVar.b = i3 - Integer.MIN_VALUE;
Object obj = cVar.f1000a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = cVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
cVar.d = this;
cVar.b = 1;
if (g(cVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) cVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
AgentsApi agentsApi = (AgentsApi) com.helpscout.beacon.a.a.c.c.c.a(AgentsApi.class).a(j);
List<BeaconAgent> items = agentsApi == null ? agentsApi.getItems() : null;
Intrinsics.checkNotNull(items);
return items;
}
}
cVar = new c(continuation);
Object obj2 = cVar.f1000a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = cVar.b;
if (i2 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
AgentsApi agentsApi2 = (AgentsApi) com.helpscout.beacon.a.a.c.c.c.a(AgentsApi.class).a(j);
if (agentsApi2 == null) {
}
Intrinsics.checkNotNull(items);
return items;
}
@Override
public Object f(String str, Continuation<? super ConversationApi> continuation) {
f fVar;
int i2;
b bVar;
if (continuation instanceof f) {
fVar = (f) continuation;
int i3 = fVar.b;
if ((i3 & Integer.MIN_VALUE) != 0) {
fVar.b = i3 - Integer.MIN_VALUE;
Object obj = fVar.f1003a;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = fVar.b;
if (i2 != 0) {
ResultKt.throwOnFailure(obj);
fVar.d = this;
fVar.b = 1;
if (g(fVar) == coroutine_suspended) {
return coroutine_suspended;
}
bVar = this;
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
bVar = (b) fVar.d;
ResultKt.throwOnFailure(obj);
}
com.helpscout.beacon.a.a.a aVar = bVar.f997a;
Object a2 = com.helpscout.beacon.a.a.c.c.c.a(ConversationApi.class).a(i);
Intrinsics.checkNotNull(a2);
return a2;
}
}
fVar = new f(continuation);
Object obj2 = fVar.f1003a;
Object coroutine_suspended2 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
i2 = fVar.b;
if (i2 != 0) {
}
com.helpscout.beacon.a.a.a aVar2 = bVar.f997a;
Object a22 = com.helpscout.beacon.a.a.c.c.c.a(ConversationApi.class).a(i);
Intrinsics.checkNotNull(a22);
return a22;
}
@Override
public Object f(Continuation<? super String> continuation) {
String token;
TokenApi tokenApi = (TokenApi) com.helpscout.beacon.a.a.c.c.c.a(TokenApi.class).a(b);
return (tokenApi == null || (token = tokenApi.getToken()) == null) ? "anonymous_chat_token" : token;
}
final Object g(Continuation<? super Unit> continuation) {
Object delay = DelayKt.delay(1500L, continuation);
return delay == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? delay : Unit.INSTANCE;
}
}