ahs-cti 1.0.1-beta.3 → 1.0.1-beta.5
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.
- package/dist/index.d.mts +44 -116
- package/dist/index.d.ts +44 -116
- package/dist/index.js +33 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -708,126 +708,64 @@ interface CallControlPanelProps {
|
|
|
708
708
|
*/
|
|
709
709
|
|
|
710
710
|
/**
|
|
711
|
-
*
|
|
711
|
+
* End Call Payload Interface
|
|
712
712
|
*
|
|
713
713
|
* @interface EndCallPayload
|
|
714
|
-
* @description
|
|
715
|
-
*
|
|
714
|
+
* @description Defines the options for ending a call. All fields are optional —
|
|
715
|
+
* any omitted field falls back to the current session/call state automatically.
|
|
716
716
|
*
|
|
717
717
|
* @properties
|
|
718
|
-
* - `
|
|
719
|
-
* - `
|
|
720
|
-
* - `
|
|
721
|
-
* - `
|
|
722
|
-
* - `
|
|
723
|
-
* - `
|
|
724
|
-
* - `
|
|
725
|
-
* - `
|
|
726
|
-
* - `
|
|
727
|
-
* - `
|
|
718
|
+
* - `convox_id?: string` - Convox call ID (defaults to active call's convox_id)
|
|
719
|
+
* - `agent_id?: string` - Agent identifier (defaults to logged-in agent)
|
|
720
|
+
* - `set_followUp?: string` - Whether a follow-up is required: "Y" or "N" (default: "N")
|
|
721
|
+
* - `callback_date?: string` - Scheduled callback date (YYYY-MM-DD)
|
|
722
|
+
* - `callback_hrs?: number` - Scheduled callback hour (0–23)
|
|
723
|
+
* - `callback_mins?: number` - Scheduled callback minute (0–59)
|
|
724
|
+
* - `mobile_number?: string` - Customer phone number (defaults to active call's phone_number)
|
|
725
|
+
* - `list_comments?: string` - Optional comments for the call log
|
|
726
|
+
* - `call_reference_id?: string` - Call reference ID (defaults to active call's convox_id)
|
|
727
|
+
* - `disposition?: string` - Call outcome code (default: "RES")
|
|
728
|
+
* - `line_number?: number` - Conference line number (default: 0)
|
|
729
|
+
* - `reason?: string` - End reason sent to server (default: "normal")
|
|
730
|
+
* - `isBreak?: boolean` - Whether agent is going on break after the call
|
|
731
|
+
* - `patientLog?: any` - Optional patient/contact log data
|
|
728
732
|
*
|
|
729
733
|
* @example
|
|
730
734
|
* ```typescript
|
|
731
|
-
* //
|
|
732
|
-
*
|
|
733
|
-
* action: "ENDCALL",
|
|
734
|
-
* disposition: "RES",
|
|
735
|
-
* userId: "agent123",
|
|
736
|
-
* processid: "proc001",
|
|
737
|
-
* mobile_number: "1234567890",
|
|
738
|
-
* set_followUp: "N",
|
|
739
|
-
* callback_date: "",
|
|
740
|
-
* callback_hrs: "",
|
|
741
|
-
* callback_mins: ""
|
|
742
|
-
* };
|
|
735
|
+
* // Minimal — all defaults applied from session state
|
|
736
|
+
* await endCall();
|
|
743
737
|
*
|
|
744
|
-
* // With callback
|
|
745
|
-
*
|
|
746
|
-
* action: "ENDCALL",
|
|
738
|
+
* // With disposition and follow-up callback
|
|
739
|
+
* await endCall({
|
|
747
740
|
* disposition: "RES",
|
|
748
|
-
* userId: "agent123",
|
|
749
|
-
* processid: "proc001",
|
|
750
|
-
* mobile_number: "1234567890",
|
|
751
741
|
* set_followUp: "Y",
|
|
752
|
-
* callback_date: "
|
|
753
|
-
* callback_hrs:
|
|
754
|
-
* callback_mins:
|
|
755
|
-
* };
|
|
742
|
+
* callback_date: "2026-05-20",
|
|
743
|
+
* callback_hrs: 10,
|
|
744
|
+
* callback_mins: 30,
|
|
745
|
+
* });
|
|
746
|
+
*
|
|
747
|
+
* // Agent going on break after call
|
|
748
|
+
* await endCall({ disposition: "RES", isBreak: true });
|
|
756
749
|
* ```
|
|
757
750
|
*
|
|
758
751
|
* @since 1.0.0
|
|
759
752
|
* @author CTI SDK Team
|
|
760
753
|
*/
|
|
761
754
|
interface EndCallPayload {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* 👤 Agent identifier
|
|
778
|
-
* @description Unique identifier for the agent ending the call
|
|
779
|
-
* @type {string}
|
|
780
|
-
*/
|
|
781
|
-
userId: string;
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* ⚙️ Process identifier
|
|
785
|
-
* @description Unique identifier for the process
|
|
786
|
-
* @type {string}
|
|
787
|
-
*/
|
|
788
|
-
processid: string;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* 📱 Customer phone number
|
|
792
|
-
* @description Phone number of the customer
|
|
793
|
-
* @type {string}
|
|
794
|
-
*/
|
|
795
|
-
mobile_number: string;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* 📅 Follow-up requirement
|
|
799
|
-
* @description Whether a follow-up is required ("Y" or "N")
|
|
800
|
-
* @type {string}
|
|
801
|
-
*/
|
|
802
|
-
set_followUp: string;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* 📅 Scheduled callback date
|
|
806
|
-
* @description Date for scheduled callback (YYYY-MM-DD format)
|
|
807
|
-
* @type {string}
|
|
808
|
-
*/
|
|
809
|
-
callback_date: string;
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* 🕐 Scheduled callback hour
|
|
813
|
-
* @description Hour for scheduled callback (0-23)
|
|
814
|
-
* @type {string}
|
|
815
|
-
*/
|
|
816
|
-
callback_hrs: string;
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* 🕐 Scheduled callback minute
|
|
820
|
-
* @description Minute for scheduled callback (0-59)
|
|
821
|
-
* @type {string}
|
|
822
|
-
*/
|
|
823
|
-
callback_mins: string;
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* 🔗 Optional call reference number
|
|
827
|
-
* @description Optional reference number for the call
|
|
828
|
-
* @type {string | undefined}
|
|
829
|
-
*/
|
|
830
|
-
refno?: string;
|
|
755
|
+
convox_id?: string;
|
|
756
|
+
agent_id?: string;
|
|
757
|
+
set_followUp?: string;
|
|
758
|
+
callback_date?: string;
|
|
759
|
+
callback_hrs?: number;
|
|
760
|
+
callback_mins?: number;
|
|
761
|
+
mobile_number?: string;
|
|
762
|
+
list_comments?: string;
|
|
763
|
+
call_reference_id?: string;
|
|
764
|
+
disposition?: string;
|
|
765
|
+
line_number?: number;
|
|
766
|
+
reason?: string;
|
|
767
|
+
isBreak?: boolean;
|
|
768
|
+
patientLog?: any;
|
|
831
769
|
}
|
|
832
770
|
|
|
833
771
|
/**
|
|
@@ -2237,16 +2175,6 @@ interface ErrorResponse {
|
|
|
2237
2175
|
// ⚡ FRAMEWORK-AGNOSTIC ACTION EXPORTS (for Angular / non-React consumers)
|
|
2238
2176
|
// =============================================================================
|
|
2239
2177
|
|
|
2240
|
-
interface EndCallOptions {
|
|
2241
|
-
disposition?: string;
|
|
2242
|
-
followUp?: string;
|
|
2243
|
-
callbackDate?: string;
|
|
2244
|
-
callbackHrs?: string;
|
|
2245
|
-
callbackMins?: string;
|
|
2246
|
-
isBreak?: boolean;
|
|
2247
|
-
patientLog?: any;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
2178
|
type SupervisorMonitorMode = "listen" | "whisper" | "barge";
|
|
2251
2179
|
|
|
2252
2180
|
interface StartMonitoringPayload {
|
|
@@ -2269,7 +2197,7 @@ interface ChangeModePayload {
|
|
|
2269
2197
|
|
|
2270
2198
|
declare function clickToCall(payload: StartCallPayload): Promise<any>;
|
|
2271
2199
|
declare function clickToConference(payload: ConferenceCallPayload): Promise<any>;
|
|
2272
|
-
declare function endCall(options?:
|
|
2200
|
+
declare function endCall(options?: EndCallPayload): Promise<any>;
|
|
2273
2201
|
declare function logout(): Promise<void>;
|
|
2274
2202
|
declare function startMonitoring(payload: StartMonitoringPayload): Promise<any>;
|
|
2275
2203
|
declare function stopMonitoring(payload: StopMonitoringPayload): Promise<any>;
|
|
@@ -2290,4 +2218,4 @@ interface UseClickToConferenceReturn {
|
|
|
2290
2218
|
|
|
2291
2219
|
declare function useClickToConference(): UseClickToConferenceReturn;
|
|
2292
2220
|
|
|
2293
|
-
export { type APIResponse, type AgentStatus, CallControlPanel, type CallControlPanelProps, type CallData, type CallInitiationFunction, type CallTerminationFunction, type ChangeModePayload, type CleanupOperation, type ConferenceCallPayload, type ConferenceLine, type DispositionType, type EndCallData, type
|
|
2221
|
+
export { type APIResponse, type AgentStatus, CallControlPanel, type CallControlPanelProps, type CallData, type CallInitiationFunction, type CallTerminationFunction, type ChangeModePayload, type CleanupOperation, type ConferenceCallPayload, type ConferenceLine, type DispositionType, type EndCallData, type EndCallPayLoadData, type EndCallPayload, type ErrorResponse, type FollowUpType, type HookStateTypes, type InitSDKParams, type LogoutFunction, type LogoutHookStateTypes, type LogoutPayload, type ProcessData, type SDKConfig, SDKPages, type SDKState, SDKStateManager, type StartCallPayload, type StartCalltData, type StartCalltHookStateTypes, type StartMonitoringPayload, type StopMonitoringPayload, type StorageType, type SupervisorMonitorMode, type URLConfig, type UseClickToCallReturn, type UseClickToConferenceReturn, type UseEndCallReturn, type UseLogoutReturn, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, startMonitoring, stopMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout };
|
package/dist/index.d.ts
CHANGED
|
@@ -708,126 +708,64 @@ interface CallControlPanelProps {
|
|
|
708
708
|
*/
|
|
709
709
|
|
|
710
710
|
/**
|
|
711
|
-
*
|
|
711
|
+
* End Call Payload Interface
|
|
712
712
|
*
|
|
713
713
|
* @interface EndCallPayload
|
|
714
|
-
* @description
|
|
715
|
-
*
|
|
714
|
+
* @description Defines the options for ending a call. All fields are optional —
|
|
715
|
+
* any omitted field falls back to the current session/call state automatically.
|
|
716
716
|
*
|
|
717
717
|
* @properties
|
|
718
|
-
* - `
|
|
719
|
-
* - `
|
|
720
|
-
* - `
|
|
721
|
-
* - `
|
|
722
|
-
* - `
|
|
723
|
-
* - `
|
|
724
|
-
* - `
|
|
725
|
-
* - `
|
|
726
|
-
* - `
|
|
727
|
-
* - `
|
|
718
|
+
* - `convox_id?: string` - Convox call ID (defaults to active call's convox_id)
|
|
719
|
+
* - `agent_id?: string` - Agent identifier (defaults to logged-in agent)
|
|
720
|
+
* - `set_followUp?: string` - Whether a follow-up is required: "Y" or "N" (default: "N")
|
|
721
|
+
* - `callback_date?: string` - Scheduled callback date (YYYY-MM-DD)
|
|
722
|
+
* - `callback_hrs?: number` - Scheduled callback hour (0–23)
|
|
723
|
+
* - `callback_mins?: number` - Scheduled callback minute (0–59)
|
|
724
|
+
* - `mobile_number?: string` - Customer phone number (defaults to active call's phone_number)
|
|
725
|
+
* - `list_comments?: string` - Optional comments for the call log
|
|
726
|
+
* - `call_reference_id?: string` - Call reference ID (defaults to active call's convox_id)
|
|
727
|
+
* - `disposition?: string` - Call outcome code (default: "RES")
|
|
728
|
+
* - `line_number?: number` - Conference line number (default: 0)
|
|
729
|
+
* - `reason?: string` - End reason sent to server (default: "normal")
|
|
730
|
+
* - `isBreak?: boolean` - Whether agent is going on break after the call
|
|
731
|
+
* - `patientLog?: any` - Optional patient/contact log data
|
|
728
732
|
*
|
|
729
733
|
* @example
|
|
730
734
|
* ```typescript
|
|
731
|
-
* //
|
|
732
|
-
*
|
|
733
|
-
* action: "ENDCALL",
|
|
734
|
-
* disposition: "RES",
|
|
735
|
-
* userId: "agent123",
|
|
736
|
-
* processid: "proc001",
|
|
737
|
-
* mobile_number: "1234567890",
|
|
738
|
-
* set_followUp: "N",
|
|
739
|
-
* callback_date: "",
|
|
740
|
-
* callback_hrs: "",
|
|
741
|
-
* callback_mins: ""
|
|
742
|
-
* };
|
|
735
|
+
* // Minimal — all defaults applied from session state
|
|
736
|
+
* await endCall();
|
|
743
737
|
*
|
|
744
|
-
* // With callback
|
|
745
|
-
*
|
|
746
|
-
* action: "ENDCALL",
|
|
738
|
+
* // With disposition and follow-up callback
|
|
739
|
+
* await endCall({
|
|
747
740
|
* disposition: "RES",
|
|
748
|
-
* userId: "agent123",
|
|
749
|
-
* processid: "proc001",
|
|
750
|
-
* mobile_number: "1234567890",
|
|
751
741
|
* set_followUp: "Y",
|
|
752
|
-
* callback_date: "
|
|
753
|
-
* callback_hrs:
|
|
754
|
-
* callback_mins:
|
|
755
|
-
* };
|
|
742
|
+
* callback_date: "2026-05-20",
|
|
743
|
+
* callback_hrs: 10,
|
|
744
|
+
* callback_mins: 30,
|
|
745
|
+
* });
|
|
746
|
+
*
|
|
747
|
+
* // Agent going on break after call
|
|
748
|
+
* await endCall({ disposition: "RES", isBreak: true });
|
|
756
749
|
* ```
|
|
757
750
|
*
|
|
758
751
|
* @since 1.0.0
|
|
759
752
|
* @author CTI SDK Team
|
|
760
753
|
*/
|
|
761
754
|
interface EndCallPayload {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* 👤 Agent identifier
|
|
778
|
-
* @description Unique identifier for the agent ending the call
|
|
779
|
-
* @type {string}
|
|
780
|
-
*/
|
|
781
|
-
userId: string;
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* ⚙️ Process identifier
|
|
785
|
-
* @description Unique identifier for the process
|
|
786
|
-
* @type {string}
|
|
787
|
-
*/
|
|
788
|
-
processid: string;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* 📱 Customer phone number
|
|
792
|
-
* @description Phone number of the customer
|
|
793
|
-
* @type {string}
|
|
794
|
-
*/
|
|
795
|
-
mobile_number: string;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* 📅 Follow-up requirement
|
|
799
|
-
* @description Whether a follow-up is required ("Y" or "N")
|
|
800
|
-
* @type {string}
|
|
801
|
-
*/
|
|
802
|
-
set_followUp: string;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* 📅 Scheduled callback date
|
|
806
|
-
* @description Date for scheduled callback (YYYY-MM-DD format)
|
|
807
|
-
* @type {string}
|
|
808
|
-
*/
|
|
809
|
-
callback_date: string;
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* 🕐 Scheduled callback hour
|
|
813
|
-
* @description Hour for scheduled callback (0-23)
|
|
814
|
-
* @type {string}
|
|
815
|
-
*/
|
|
816
|
-
callback_hrs: string;
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* 🕐 Scheduled callback minute
|
|
820
|
-
* @description Minute for scheduled callback (0-59)
|
|
821
|
-
* @type {string}
|
|
822
|
-
*/
|
|
823
|
-
callback_mins: string;
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* 🔗 Optional call reference number
|
|
827
|
-
* @description Optional reference number for the call
|
|
828
|
-
* @type {string | undefined}
|
|
829
|
-
*/
|
|
830
|
-
refno?: string;
|
|
755
|
+
convox_id?: string;
|
|
756
|
+
agent_id?: string;
|
|
757
|
+
set_followUp?: string;
|
|
758
|
+
callback_date?: string;
|
|
759
|
+
callback_hrs?: number;
|
|
760
|
+
callback_mins?: number;
|
|
761
|
+
mobile_number?: string;
|
|
762
|
+
list_comments?: string;
|
|
763
|
+
call_reference_id?: string;
|
|
764
|
+
disposition?: string;
|
|
765
|
+
line_number?: number;
|
|
766
|
+
reason?: string;
|
|
767
|
+
isBreak?: boolean;
|
|
768
|
+
patientLog?: any;
|
|
831
769
|
}
|
|
832
770
|
|
|
833
771
|
/**
|
|
@@ -2237,16 +2175,6 @@ interface ErrorResponse {
|
|
|
2237
2175
|
// ⚡ FRAMEWORK-AGNOSTIC ACTION EXPORTS (for Angular / non-React consumers)
|
|
2238
2176
|
// =============================================================================
|
|
2239
2177
|
|
|
2240
|
-
interface EndCallOptions {
|
|
2241
|
-
disposition?: string;
|
|
2242
|
-
followUp?: string;
|
|
2243
|
-
callbackDate?: string;
|
|
2244
|
-
callbackHrs?: string;
|
|
2245
|
-
callbackMins?: string;
|
|
2246
|
-
isBreak?: boolean;
|
|
2247
|
-
patientLog?: any;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
2178
|
type SupervisorMonitorMode = "listen" | "whisper" | "barge";
|
|
2251
2179
|
|
|
2252
2180
|
interface StartMonitoringPayload {
|
|
@@ -2269,7 +2197,7 @@ interface ChangeModePayload {
|
|
|
2269
2197
|
|
|
2270
2198
|
declare function clickToCall(payload: StartCallPayload): Promise<any>;
|
|
2271
2199
|
declare function clickToConference(payload: ConferenceCallPayload): Promise<any>;
|
|
2272
|
-
declare function endCall(options?:
|
|
2200
|
+
declare function endCall(options?: EndCallPayload): Promise<any>;
|
|
2273
2201
|
declare function logout(): Promise<void>;
|
|
2274
2202
|
declare function startMonitoring(payload: StartMonitoringPayload): Promise<any>;
|
|
2275
2203
|
declare function stopMonitoring(payload: StopMonitoringPayload): Promise<any>;
|
|
@@ -2290,5 +2218,5 @@ interface UseClickToConferenceReturn {
|
|
|
2290
2218
|
|
|
2291
2219
|
declare function useClickToConference(): UseClickToConferenceReturn;
|
|
2292
2220
|
|
|
2293
|
-
export type { APIResponse, AgentStatus, CallControlPanelProps, CallData, CallInitiationFunction, CallTerminationFunction, ChangeModePayload, CleanupOperation, ConferenceCallPayload, ConferenceLine, DispositionType, EndCallData,
|
|
2221
|
+
export type { APIResponse, AgentStatus, CallControlPanelProps, CallData, CallInitiationFunction, CallTerminationFunction, ChangeModePayload, CleanupOperation, ConferenceCallPayload, ConferenceLine, DispositionType, EndCallData, EndCallPayLoadData, EndCallPayload, ErrorResponse, FollowUpType, HookStateTypes, InitSDKParams, LogoutFunction, LogoutHookStateTypes, LogoutPayload, ProcessData, SDKConfig, SDKState, StartCallPayload, StartCalltData, StartCalltHookStateTypes, StartMonitoringPayload, StopMonitoringPayload, StorageType, SupervisorMonitorMode, URLConfig, UseClickToCallReturn, UseClickToConferenceReturn, UseEndCallReturn, UseLogoutReturn }
|
|
2294
2222
|
export { CallControlPanel, SDKPages, SDKStateManager, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, startMonitoring, stopMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout };
|
package/dist/index.js
CHANGED
|
@@ -1506,27 +1506,27 @@ var useEndCall = () => {
|
|
|
1506
1506
|
const [error, setError] = (0, import_react3.useState)(null);
|
|
1507
1507
|
const [data, setData] = (0, import_react3.useState)(null);
|
|
1508
1508
|
const handleEndCall = (0, import_react3.useCallback)(
|
|
1509
|
-
async (data2) => {
|
|
1510
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
1509
|
+
async (data2 = {}) => {
|
|
1510
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
1511
1511
|
const state = (0, import_vault3.getSession)(STORAGE_KEY);
|
|
1512
1512
|
setLoading(true);
|
|
1513
1513
|
const payload = {
|
|
1514
|
-
convox_id: (_b = (_a2 = state == null ? void 0 : state.callData) == null ? void 0 : _a2.convox_id) != null ?
|
|
1515
|
-
agent_id: (
|
|
1516
|
-
set_followUp: (
|
|
1517
|
-
callback_date: (
|
|
1518
|
-
callback_hrs:
|
|
1519
|
-
callback_mins:
|
|
1520
|
-
mobile_number: (
|
|
1521
|
-
list_comments: "",
|
|
1522
|
-
call_reference_id: (
|
|
1523
|
-
disposition: (
|
|
1524
|
-
line_number: 0,
|
|
1525
|
-
reason: "normal"
|
|
1514
|
+
convox_id: (_c = (_b = data2 == null ? void 0 : data2.convox_id) != null ? _b : (_a2 = state == null ? void 0 : state.callData) == null ? void 0 : _a2.convox_id) != null ? _c : "",
|
|
1515
|
+
agent_id: (_e = (_d = data2 == null ? void 0 : data2.agent_id) != null ? _d : state == null ? void 0 : state.agentId) != null ? _e : "",
|
|
1516
|
+
set_followUp: (_f = data2 == null ? void 0 : data2.set_followUp) != null ? _f : "N",
|
|
1517
|
+
callback_date: (_g = data2 == null ? void 0 : data2.callback_date) != null ? _g : "",
|
|
1518
|
+
callback_hrs: (_h = data2 == null ? void 0 : data2.callback_hrs) != null ? _h : 0,
|
|
1519
|
+
callback_mins: (_i = data2 == null ? void 0 : data2.callback_mins) != null ? _i : 0,
|
|
1520
|
+
mobile_number: (_l = (_k = data2 == null ? void 0 : data2.mobile_number) != null ? _k : (_j = state == null ? void 0 : state.callData) == null ? void 0 : _j.phone_number) != null ? _l : "",
|
|
1521
|
+
list_comments: (_m = data2 == null ? void 0 : data2.list_comments) != null ? _m : "",
|
|
1522
|
+
call_reference_id: (_p = (_o = data2 == null ? void 0 : data2.call_reference_id) != null ? _o : (_n = state == null ? void 0 : state.callData) == null ? void 0 : _n.convox_id) != null ? _p : "",
|
|
1523
|
+
disposition: (_q = data2 == null ? void 0 : data2.disposition) != null ? _q : "RES",
|
|
1524
|
+
line_number: (_r = data2 == null ? void 0 : data2.line_number) != null ? _r : 0,
|
|
1525
|
+
reason: (_s = data2 == null ? void 0 : data2.reason) != null ? _s : "normal"
|
|
1526
1526
|
};
|
|
1527
1527
|
return axios_default.post(END_POINT.END_CALL, payload, {
|
|
1528
1528
|
params: {
|
|
1529
|
-
isBreak: (
|
|
1529
|
+
isBreak: (_t = data2 == null ? void 0 : data2.isBreak) != null ? _t : false
|
|
1530
1530
|
}
|
|
1531
1531
|
}).then((res) => {
|
|
1532
1532
|
sdkStateManager.resetConferenceLines();
|
|
@@ -3408,10 +3408,11 @@ function EndCallDispositionDialog({ open, setOpen, onSubmitDisposition }) {
|
|
|
3408
3408
|
open,
|
|
3409
3409
|
"aria-labelledby": "alert-dialog-title",
|
|
3410
3410
|
"aria-describedby": "alert-dialog-description",
|
|
3411
|
-
maxWidth: "
|
|
3411
|
+
maxWidth: "sm",
|
|
3412
|
+
fullWidth: true,
|
|
3412
3413
|
slotProps: { paper: { sx: { minWidth: 600 } } },
|
|
3413
3414
|
sx: {
|
|
3414
|
-
minWidth: "
|
|
3415
|
+
minWidth: "650px"
|
|
3415
3416
|
},
|
|
3416
3417
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material3.Paper, { sx: { borderRadius: 2 }, children: [
|
|
3417
3418
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -5833,7 +5834,7 @@ function clickToCall(payload) {
|
|
|
5833
5834
|
phone_number: payload.mobileNumber,
|
|
5834
5835
|
user: (_d = (_c = payload.user) != null ? _c : state == null ? void 0 : state.agentId) != null ? _d : "",
|
|
5835
5836
|
auto_answer: (_e = payload.auto_answer) != null ? _e : false,
|
|
5836
|
-
convox_id: (_h = (_g = (_f = state == null ? void 0 : state.callData) == null ? void 0 : _f.convox_id) != null ?
|
|
5837
|
+
convox_id: (_h = (_g = payload.convox_id) != null ? _g : (_f = state == null ? void 0 : state.callData) == null ? void 0 : _f.convox_id) != null ? _h : "",
|
|
5837
5838
|
reference_id: (_i = payload.reference_id) != null ? _i : "",
|
|
5838
5839
|
call_source: (_j = payload.call_source) != null ? _j : "",
|
|
5839
5840
|
caseId: (_k = payload.caseId) != null ? _k : ""
|
|
@@ -5879,24 +5880,24 @@ function clickToConference(payload) {
|
|
|
5879
5880
|
});
|
|
5880
5881
|
}
|
|
5881
5882
|
async function endCall(options = {}) {
|
|
5882
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
5883
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
5883
5884
|
const state = (0, import_vault7.getSession)(STORAGE_KEY);
|
|
5884
5885
|
const body = {
|
|
5885
|
-
convox_id: (_b = (_a2 = state == null ? void 0 : state.callData) == null ? void 0 : _a2.convox_id) != null ?
|
|
5886
|
-
agent_id: (
|
|
5887
|
-
set_followUp: (
|
|
5888
|
-
callback_date: (
|
|
5889
|
-
callback_hrs:
|
|
5890
|
-
callback_mins:
|
|
5891
|
-
mobile_number: (
|
|
5892
|
-
list_comments: "",
|
|
5893
|
-
call_reference_id: (
|
|
5894
|
-
disposition: (
|
|
5895
|
-
line_number: 0,
|
|
5896
|
-
reason: "normal"
|
|
5886
|
+
convox_id: (_c = (_b = options.convox_id) != null ? _b : (_a2 = state == null ? void 0 : state.callData) == null ? void 0 : _a2.convox_id) != null ? _c : "",
|
|
5887
|
+
agent_id: (_e = (_d = options.agent_id) != null ? _d : state == null ? void 0 : state.agentId) != null ? _e : "",
|
|
5888
|
+
set_followUp: (_f = options.set_followUp) != null ? _f : "N",
|
|
5889
|
+
callback_date: (_g = options.callback_date) != null ? _g : "",
|
|
5890
|
+
callback_hrs: (_h = options.callback_hrs) != null ? _h : 0,
|
|
5891
|
+
callback_mins: (_i = options.callback_mins) != null ? _i : 0,
|
|
5892
|
+
mobile_number: (_l = (_k = options.mobile_number) != null ? _k : (_j = state == null ? void 0 : state.callData) == null ? void 0 : _j.phone_number) != null ? _l : "",
|
|
5893
|
+
list_comments: (_m = options.list_comments) != null ? _m : "",
|
|
5894
|
+
call_reference_id: (_p = (_o = options.call_reference_id) != null ? _o : (_n = state == null ? void 0 : state.callData) == null ? void 0 : _n.convox_id) != null ? _p : "",
|
|
5895
|
+
disposition: (_q = options.disposition) != null ? _q : "RES",
|
|
5896
|
+
line_number: (_r = options.line_number) != null ? _r : 0,
|
|
5897
|
+
reason: (_s = options.reason) != null ? _s : "normal"
|
|
5897
5898
|
};
|
|
5898
5899
|
const res = await axios_default.post(END_POINT.END_CALL, body, {
|
|
5899
|
-
params: { isBreak: (
|
|
5900
|
+
params: { isBreak: (_t = options.isBreak) != null ? _t : false }
|
|
5900
5901
|
});
|
|
5901
5902
|
sdkStateManager.resetConferenceLines();
|
|
5902
5903
|
sdkStateManager.endCall();
|