@daeryun/dr_components 0.9.19 → 0.9.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ const ChatInput = ({ isMobile }) => {
33
33
  }
34
34
  };
35
35
  return (<form onSubmit={handleSubmit} className="flex w-full items-center gap-2">
36
- <div className="flex flex-1 justify-center gap-[10px] rounded-[10px] border-[1px] border-solid border-grayScale6 bg-drTalkGrayscale5 p-[4px]">
36
+ <div className="flex flex-1 justify-center gap-[10px] rounded-[10px] border-[1px] border-solid border-drTalkGrayscale5 bg-drTalkGrayscale5 p-[4px]">
37
37
  {/* 최초 높이 44 */}
38
38
  {/*내용이 2줄 이상되면 입력창 높이도 키워져야합니다. 최대한 4줄까지만 보이도록 해주시고, 그 이상은 스크롤 될 수 있도록 해주시는 게 좋을 것 같습니다. max height 값을 72로 지정 부탁드립니다*/}
39
39
 
@@ -40,7 +40,7 @@ const ChatInput: React.FC<props> = ({ isMobile }) => {
40
40
  };
41
41
  return (
42
42
  <form onSubmit={handleSubmit} className="flex w-full items-center gap-2">
43
- <div className="flex flex-1 justify-center gap-[10px] rounded-[10px] border-[1px] border-solid border-grayScale6 bg-drTalkGrayscale5 p-[4px]">
43
+ <div className="flex flex-1 justify-center gap-[10px] rounded-[10px] border-[1px] border-solid border-drTalkGrayscale5 bg-drTalkGrayscale5 p-[4px]">
44
44
  {/* 최초 높이 44 */}
45
45
  {/*내용이 2줄 이상되면 입력창 높이도 키워져야합니다. 최대한 4줄까지만 보이도록 해주시고, 그 이상은 스크롤 될 수 있도록 해주시는 게 좋을 것 같습니다. max height 값을 72로 지정 부탁드립니다*/}
46
46
 
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { ErrorEnum } from '../../_enums/error';
11
11
  import { MessageSocketType } from '../../_enums/socket_type';
12
+ import { consoleFn } from '../../_lib/utils';
12
13
  // API 기본 URL
13
14
  const API_BASE_URL = process.env.NEXT_PUBLIC_CHAT_CUSTOMER_API;
14
15
  // 'https://chat-client-api.lawmance.com';
@@ -166,13 +167,13 @@ export function authenticateUser(centerCode, version, retry) {
166
167
  }, version);
167
168
  // 빈 응답인 경우에도 성공으로 처리 -> 이거 지워야함
168
169
  // if (Object.keys(response).length === 0) {
169
- // console.log('[인증 성공] 사용자 인증 완료 - 빈 응답 (쿠키만 설정됨)');
170
+ // consoleFn('[인증 성공] 사용자 인증 완료 - 빈 응답 (쿠키만 설정됨)');
170
171
  // return { success: true, status: 'authenticated' };
171
172
  // }
172
173
  if (typeof window !== 'undefined' && ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.token)) {
173
174
  localStorage.setItem('daeryunchatinquirytoken', response.data.token);
174
175
  }
175
- console.log('[인증 성공] 사용자 인증 완료', response);
176
+ consoleFn('[인증 성공] 사용자 인증 완료', response);
176
177
  return response;
177
178
  }
178
179
  catch (error) {
@@ -188,7 +189,7 @@ export function authenticateUser(centerCode, version, retry) {
188
189
  */
189
190
  export function initializeWebSocket(version) {
190
191
  return __awaiter(this, void 0, void 0, function* () {
191
- console.log('[웹소켓 초기화 시작] 웹소켓 연결 초기화 요청', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
192
+ consoleFn('[웹소켓 초기화 시작] 웹소켓 연결 초기화 요청', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
192
193
  try {
193
194
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.WEBSOCKET_INIT}`, { method: 'POST' }, version);
194
195
  return response;
@@ -215,25 +216,25 @@ const RECONNECT_DELAY_MS = 2000;
215
216
  export function connectWebSocket(wsUrl, token, isOpen, setIsConnected, userExpiredRef, onMessage, onOpen, onClose, onError) {
216
217
  // URL에 토큰을 파라미터로 추가
217
218
  const connectionUrl = `${wsUrl}?token=${token}`;
218
- console.log('[웹소켓 연결 시작] 연결 URL:', connectionUrl);
219
+ consoleFn('[웹소켓 연결 시작] 연결 URL:', connectionUrl);
219
220
  try {
220
221
  const socket = new WebSocket(connectionUrl);
221
222
  const setupSocketHandlers = (socket) => {
222
223
  socket.onopen = event => {
223
- console.log('[웹소켓 연결 성공]');
224
+ consoleFn('[웹소켓 연결 성공]');
224
225
  reconnectAttempts = 0;
225
226
  if (onOpen)
226
227
  onOpen(event);
227
228
  };
228
229
  socket.onmessage = event => {
229
230
  var _a;
230
- console.log('[웹소켓 메시지 수신]', event.data);
231
+ consoleFn('[웹소켓 메시지 수신]', event.data);
231
232
  try {
232
233
  const data = JSON.parse(event.data);
233
234
  if ((data === null || data === void 0 ? void 0 : data.type) === 'user.expired' || ((_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.type) === MessageSocketType.USER_EXPIRED) {
234
235
  userExpiredRef && (userExpiredRef.current = true);
235
236
  }
236
- console.log('📩 New Message (parsed):', data);
237
+ consoleFn('📩 New Message (parsed):', data);
237
238
  }
238
239
  catch (err) {
239
240
  console.error('[웹소켓] JSON 파싱 오류:', err);
@@ -244,23 +245,23 @@ export function connectWebSocket(wsUrl, token, isOpen, setIsConnected, userExpir
244
245
  socket.onclose = (event) => __awaiter(this, void 0, void 0, function* () {
245
246
  var _a, _b;
246
247
  console.warn('[웹소켓 종료]', event);
247
- // console.log('is', isOpen);
248
+ // consoleFn('is', isOpen);
248
249
  //
249
- console.log('userExpiredRef.current', userExpiredRef.current);
250
+ consoleFn('userExpiredRef.current', userExpiredRef.current);
250
251
  if (userExpiredRef.current) {
251
- console.log('[웹소켓 종료] 만기 유저는 소켓 연결 재시도 하지 않음');
252
+ consoleFn('[웹소켓 종료] 만기 유저는 소켓 연결 재시도 하지 않음');
252
253
  if (onClose)
253
254
  onClose(event);
254
255
  return;
255
256
  }
256
257
  // if (!isOpen) {
257
- // console.log('[웹소켓 종료] 채팅창이 닫혀있어 재연결하지 않음');
258
+ // consoleFn('[웹소켓 종료] 채팅창이 닫혀있어 재연결하지 않음');
258
259
  // if (onClose) onClose(event);
259
260
  // return;
260
261
  // }
261
262
  if (reconnectAttempts < MAX_RECONNECT_ATTEMPTS) {
262
263
  reconnectAttempts++;
263
- console.log(`[재연결 시도] ${reconnectAttempts}회... ${RECONNECT_DELAY_MS}ms 후`);
264
+ consoleFn(`[재연결 시도] ${reconnectAttempts}회... ${RECONNECT_DELAY_MS}ms 후`);
264
265
  yield new Promise(res => setTimeout(res, RECONNECT_DELAY_MS));
265
266
  try {
266
267
  // 새로운 initData 요청
@@ -276,7 +277,7 @@ export function connectWebSocket(wsUrl, token, isOpen, setIsConnected, userExpir
276
277
  setupSocketHandlers(newSocket);
277
278
  }
278
279
  catch (error) {
279
- console.log('socket error', error);
280
+ consoleFn('socket error', error);
280
281
  setIsConnected(false);
281
282
  }
282
283
  }
@@ -313,14 +314,14 @@ export function getChatInquiryMain(channelNumber, version) {
313
314
  channel_number: channelNumber
314
315
  }
315
316
  };
316
- console.log('body', body);
317
- console.log('[채팅 문의 메인 조회 시작] 채널 번호:', body.d.channel_number, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
317
+ consoleFn('body', body);
318
+ consoleFn('[채팅 문의 메인 조회 시작] 채널 번호:', body.d.channel_number, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
318
319
  try {
319
320
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_MAIN}`, {
320
321
  method: 'POST',
321
322
  body: JSON.stringify(body)
322
323
  }, version);
323
- console.log('[채팅 문의 메인 조회 성공]', response);
324
+ consoleFn('[채팅 문의 메인 조회 성공]', response);
324
325
  return response;
325
326
  }
326
327
  catch (error) {
@@ -338,7 +339,7 @@ export function getChatInquiryMain(channelNumber, version) {
338
339
  export function generateChatInquiry(channelNumber, currentUrl, centerCode, version) {
339
340
  return __awaiter(this, void 0, void 0, function* () {
340
341
  var _a;
341
- console.log('[새 채팅 문의 생성 시작 (개선)]', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
342
+ consoleFn('[새 채팅 문의 생성 시작 (개선)]', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
342
343
  let channelId = channelNumber;
343
344
  if (!channelNumber) {
344
345
  const authRes = yield authenticateUser((_a = (centerCode || 'CT0000')) !== null && _a !== void 0 ? _a : 'CT0000', version);
@@ -355,7 +356,7 @@ export function generateChatInquiry(channelNumber, currentUrl, centerCode, versi
355
356
  method: 'POST',
356
357
  body: JSON.stringify(body)
357
358
  }, version);
358
- console.log('[새 채팅 문의 생성 성공 (개선)] 문의 번호:', response.data.chat_inquiry_number);
359
+ consoleFn('[새 채팅 문의 생성 성공 (개선)] 문의 번호:', response.data.chat_inquiry_number);
359
360
  return response;
360
361
  }
361
362
  catch (error) {
@@ -377,13 +378,13 @@ export function getChatInquiryDetailNew(chat_inquiry_number, version) {
377
378
  chat_inquiry_number: chat_inquiry_number // 채팅문의 번호
378
379
  }
379
380
  };
380
- console.log('[채팅 문의 상세 조회 시작 (개선)] 문의 번호:', chat_inquiry_number, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
381
+ consoleFn('[채팅 문의 상세 조회 시작 (개선)] 문의 번호:', chat_inquiry_number, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
381
382
  try {
382
383
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_DETAIL_NEW}`, {
383
384
  method: 'POST',
384
385
  body: JSON.stringify(body)
385
386
  }, version);
386
- console.log('[채팅 문의 상세 조회 성공 (개선)]', response);
387
+ consoleFn('[채팅 문의 상세 조회 성공 (개선)]', response);
387
388
  return response;
388
389
  }
389
390
  catch (error) {
@@ -407,13 +408,13 @@ export function getChatInquiryMessageList(chatInquiryNumber, standardDateTime, s
407
408
  // standard_date_time: standard_date_time ?? new Date().toISOString(),
408
409
  size: size !== null && size !== void 0 ? size : 400 })
409
410
  };
410
- console.log('[채팅 메세지 리스트] 문의 번호:', chatInquiryNumber, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
411
+ consoleFn('[채팅 메세지 리스트] 문의 번호:', chatInquiryNumber, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
411
412
  try {
412
413
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_MESSAGE_LIST}`, {
413
414
  method: 'POST',
414
415
  body: JSON.stringify(body)
415
416
  }, version);
416
- console.log('[채팅 메세지 리스트]', response);
417
+ consoleFn('[채팅 메세지 리스트]', response);
417
418
  return response;
418
419
  }
419
420
  catch (error) {
@@ -436,18 +437,18 @@ export function initializeDaeryuntalk(hashValue, isOpen, setIsConnected, isMobil
436
437
  if (typeof window !== 'undefined' && hashValue) {
437
438
  localStorage.removeItem('daeryunchatinquirytoken');
438
439
  }
439
- console.log('[Daeryuntalk 초기화 시작] 전체 흐름 실행', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
440
+ consoleFn('[Daeryuntalk 초기화 시작] 전체 흐름 실행', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
440
441
  try {
441
- console.log('[Daeryuntalk 초기화] 전체 흐름 시작');
442
+ consoleFn('[Daeryuntalk 초기화] 전체 흐름 시작');
442
443
  let errorData = null;
443
444
  // 1단계: 사용자 인증
444
445
  let authResponse = yield retryable(() => authenticateUser(centerCode, version), 1, 350, '사용자 인증');
445
- console.log('authResponse11', authResponse);
446
+ consoleFn('authResponse11', authResponse);
446
447
  // 9379809eec4c09ea276496b15b5d2778a2ef7af312c25d95bd2a0f884cb72bf3
447
448
  // 만약 만료된 토큰이라면?
448
- // console.log('authResponse', authResponse);
449
- // console.log('ErrorEnum.CE_TOKEN_EXPIRED', ErrorEnum.CE_TOKEN_EXPIRED);
450
- // console.log('authResponse?.result_info?.result_cd', authResponse?.result_info?.result_cd);
449
+ // consoleFn('authResponse', authResponse);
450
+ // consoleFn('ErrorEnum.CE_TOKEN_EXPIRED', ErrorEnum.CE_TOKEN_EXPIRED);
451
+ // consoleFn('authResponse?.result_info?.result_cd', authResponse?.result_info?.result_cd);
451
452
  if (((_a = authResponse === null || authResponse === void 0 ? void 0 : authResponse.result_info) === null || _a === void 0 ? void 0 : _a.result_cd) === 'OK' || ((_b = authResponse === null || authResponse === void 0 ? void 0 : authResponse.result_info) === null || _b === void 0 ? void 0 : _b.result_type_cd) === 'OK') {
452
453
  }
453
454
  else {
@@ -455,7 +456,7 @@ export function initializeDaeryuntalk(hashValue, isOpen, setIsConnected, isMobil
455
456
  ((_d = authResponse === null || authResponse === void 0 ? void 0 : authResponse.result_info) === null || _d === void 0 ? void 0 : _d.result_type_cd) === ErrorEnum.CE_TOKEN_EXPIRED) {
456
457
  // 재인증 시작
457
458
  errorData = authResponse;
458
- console.log('재인증 시작');
459
+ consoleFn('재인증 시작');
459
460
  localStorage.removeItem('daeryunchatinquirytoken');
460
461
  authResponse = yield retryable(() => authenticateUser(centerCode, version, true), 3, 350, '사용자 인증');
461
462
  }
@@ -484,7 +485,7 @@ export function initializeDaeryuntalk(hashValue, isOpen, setIsConnected, isMobil
484
485
  const socket = yield retryable(() => new Promise((resolve, reject) => {
485
486
  try {
486
487
  const ws = connectWebSocket(wsInitData.data.connection_url, wsInitData.data.connection_token, isOpen, setIsConnected, userExpiredRef, onWebSocketMessage, () => {
487
- console.log('[웹소켓 연결 성공]');
488
+ consoleFn('[웹소켓 연결 성공]');
488
489
  onWebSocketConnected === null || onWebSocketConnected === void 0 ? void 0 : onWebSocketConnected(ws);
489
490
  resolve(ws);
490
491
  }, () => { }, event => {
@@ -503,7 +504,7 @@ export function initializeDaeryuntalk(hashValue, isOpen, setIsConnected, isMobil
503
504
  }
504
505
  // 5단계: 문의 조회
505
506
  const chatInquiryData = yield retryable(() => getChatInquiryMain(authResponse.data.channel_number, version), 2, 350, '채팅 문의 메인 조회');
506
- console.log('[Daeryuntalk 초기화 완료]');
507
+ consoleFn('[Daeryuntalk 초기화 완료]');
507
508
  return {
508
509
  inquiryData: chatInquiryData,
509
510
  socket,
@@ -537,13 +538,13 @@ export function chatWorkFlow(chatInquiryNumber, messageNumber, workFlowNumber, o
537
538
  object_number: objectNumber
538
539
  }
539
540
  };
540
- console.log('[채팅 워크플로우 시작]', '문의 번호:', chatInquiryNumber, '메시지 번호:', messageNumber, '워크플로우 번호:', workFlowNumber, '오브젝트 번호:', objectNumber, version ? `버전: ${version}` : '기본 버전: 1.0.0');
541
+ consoleFn('[채팅 워크플로우 시작]', '문의 번호:', chatInquiryNumber, '메시지 번호:', messageNumber, '워크플로우 번호:', workFlowNumber, '오브젝트 번호:', objectNumber, version ? `버전: ${version}` : '기본 버전: 1.0.0');
541
542
  try {
542
543
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_WORKFLOW_START}`, {
543
544
  method: 'POST',
544
545
  body: JSON.stringify(body)
545
546
  }, version);
546
- console.log('[채팅 워크플로우 시작 성공]', response);
547
+ consoleFn('[채팅 워크플로우 시작 성공]', response);
547
548
  return response;
548
549
  }
549
550
  catch (error) {
@@ -570,13 +571,13 @@ export function chatWorkFlowBack(chatInquiryNumber, messageNumber, workFlowNavig
570
571
  work_flow_navigation_code: workFlowNavigationCode
571
572
  }
572
573
  };
573
- console.log('[채팅 워크플로우 되돌리기 시작]', '문의 번호:', chatInquiryNumber, '메시지 번호:', messageNumber, '워크플로우네비게이션코드 번호:', workFlowNavigationCode, version ? `버전: ${version}` : '기본 버전: 1.0.0');
574
+ consoleFn('[채팅 워크플로우 되돌리기 시작]', '문의 번호:', chatInquiryNumber, '메시지 번호:', messageNumber, '워크플로우네비게이션코드 번호:', workFlowNavigationCode, version ? `버전: ${version}` : '기본 버전: 1.0.0');
574
575
  try {
575
576
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_WORKFLOW_BACK}`, {
576
577
  method: 'POST',
577
578
  body: JSON.stringify(body)
578
579
  }, version);
579
- console.log('[채팅 워크플로우 되돌리기 성공]', response);
580
+ consoleFn('[채팅 워크플로우 되돌리기 성공]', response);
580
581
  return response;
581
582
  }
582
583
  catch (error) {
@@ -610,13 +611,13 @@ export function sendChatMessage(chatInquiryNumber, htmlContent, jsonData, versio
610
611
  json_data: jsonData // required, tiptab json
611
612
  }
612
613
  };
613
- console.log('[채팅 메시지 전송 시작] 문의 번호:', chatInquiryNumber, '메시지:', htmlContent, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
614
+ consoleFn('[채팅 메시지 전송 시작] 문의 번호:', chatInquiryNumber, '메시지:', htmlContent, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
614
615
  try {
615
616
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_SEND}`, {
616
617
  method: 'POST',
617
618
  body: JSON.stringify(body)
618
619
  }, version);
619
- console.log('[채팅 메시지 전송 성공]', response);
620
+ consoleFn('[채팅 메시지 전송 성공]', response);
620
621
  return response;
621
622
  }
622
623
  catch (error) {
@@ -644,13 +645,13 @@ export function chatUserUpdate(chatInquiryNumber, messageNumber, name, cellPhone
644
645
  cell_phone_number: cellPhoneNumber // required
645
646
  }
646
647
  };
647
- console.log('[채팅 개인 정보 업데이트] 시작');
648
+ consoleFn('[채팅 개인 정보 업데이트] 시작');
648
649
  try {
649
650
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.USER_INFO_UPDATE}`, {
650
651
  method: 'POST',
651
652
  body: JSON.stringify(body)
652
653
  }, version);
653
- console.log('[채팅 메시지 전송 성공]', response);
654
+ consoleFn('[채팅 메시지 전송 성공]', response);
654
655
  return response;
655
656
  }
656
657
  catch (error) {
@@ -674,12 +675,12 @@ export const getMessageFileDownloadUrl = (_a) => __awaiter(void 0, [_a], void 0,
674
675
  file_number: fileNumber // required
675
676
  }
676
677
  };
677
- console.log(`[${consoleName} 진행]`);
678
+ consoleFn(`[${consoleName} 진행]`);
678
679
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_FILE_URL_REQUEST}`, {
679
680
  method: 'POST',
680
681
  body: JSON.stringify(body)
681
682
  }, version);
682
- console.log(`[${consoleName} 완료]`, response);
683
+ consoleFn(`[${consoleName} 완료]`, response);
683
684
  return response;
684
685
  }
685
686
  catch (error) {
@@ -706,12 +707,12 @@ export const requestPhone = (_a) => __awaiter(void 0, [_a], void 0, function* ({
706
707
  cell_phone_number: cellPhoneNumber // required
707
708
  }
708
709
  };
709
- console.log(`[${consoleName} 진행]`);
710
+ consoleFn(`[${consoleName} 진행]`);
710
711
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.HISTORY_PHONE_REQUEST}`, {
711
712
  method: 'POST',
712
713
  body: JSON.stringify(body)
713
714
  }, version);
714
- console.log(`[${consoleName} 완료]`, response);
715
+ consoleFn(`[${consoleName} 완료]`, response);
715
716
  return response;
716
717
  }
717
718
  catch (error) {
@@ -736,12 +737,12 @@ export const historyPhoneAuth = (_a) => __awaiter(void 0, [_a], void 0, function
736
737
  certification_number: certificationNumber // required
737
738
  }
738
739
  };
739
- console.log(`[${consoleName} 진행]`);
740
+ consoleFn(`[${consoleName} 진행]`);
740
741
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.HISTORY_PHONE_AUTHENTICATION}`, {
741
742
  method: 'POST',
742
743
  body: JSON.stringify(body)
743
744
  }, version);
744
- console.log(`[${consoleName} 완료]`, response);
745
+ consoleFn(`[${consoleName} 완료]`, response);
745
746
  return response;
746
747
  }
747
748
  catch (error) {
@@ -752,12 +753,12 @@ export const historyPhoneAuth = (_a) => __awaiter(void 0, [_a], void 0, function
752
753
  export const getHistoryList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ version = DEFAULT_API_VERSION }) {
753
754
  const consoleName = '히스토리 채팅 문의 목록 조회';
754
755
  try {
755
- console.log(`[${consoleName} 진행]`);
756
+ consoleFn(`[${consoleName} 진행]`);
756
757
  const response = yield fetchWithCookies(`${API_BASE_URL}${ENDPOINTS.HISTORY_LIST}`, {
757
758
  method: 'POST'
758
759
  // body: JSON.stringify(body)
759
760
  }, version);
760
- console.log(`[${consoleName} 완료]`, response);
761
+ consoleFn(`[${consoleName} 완료]`, response);
761
762
  return response;
762
763
  }
763
764
  catch (error) {
@@ -768,7 +769,7 @@ export const getHistoryList = (_a) => __awaiter(void 0, [_a], void 0, function*
768
769
  export const attendChatRoomByHistory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ chatInquiryNumber, version = DEFAULT_API_VERSION }) {
769
770
  const consoleName = '히스토리 채팅 문의 참여';
770
771
  try {
771
- console.log(`[${consoleName} 진행]`);
772
+ consoleFn(`[${consoleName} 진행]`);
772
773
  const body = {
773
774
  d: {
774
775
  chat_inquiry_number: chatInquiryNumber // required
@@ -778,7 +779,7 @@ export const attendChatRoomByHistory = (_a) => __awaiter(void 0, [_a], void 0, f
778
779
  method: 'POST',
779
780
  body: JSON.stringify(body)
780
781
  }, version);
781
- console.log(`[${consoleName} 완료]`, response);
782
+ consoleFn(`[${consoleName} 완료]`, response);
782
783
  return response;
783
784
  }
784
785
  catch (error) {
@@ -789,7 +790,7 @@ export const attendChatRoomByHistory = (_a) => __awaiter(void 0, [_a], void 0, f
789
790
  export const followupAttend = (_a) => __awaiter(void 0, [_a], void 0, function* ({ token, version = DEFAULT_API_VERSION }) {
790
791
  const consoleName = '히스토리 채팅 문의 참여';
791
792
  try {
792
- console.log(`[${consoleName} 진행]`);
793
+ consoleFn(`[${consoleName} 진행]`);
793
794
  const body = {
794
795
  d: {
795
796
  token: token // required
@@ -799,7 +800,7 @@ export const followupAttend = (_a) => __awaiter(void 0, [_a], void 0, function*
799
800
  method: 'POST',
800
801
  body: JSON.stringify(body)
801
802
  }, version);
802
- console.log(`[${consoleName} 완료]`, response);
803
+ consoleFn(`[${consoleName} 완료]`, response);
803
804
  return response;
804
805
  }
805
806
  catch (error) {