TP-89230 | softcode sip credentials
This commit is contained in:
@@ -11,6 +11,6 @@ declare class IAdapter {
|
||||
setOnBreak(): void;
|
||||
setAvailable(): void;
|
||||
init(): void;
|
||||
getAgentAvailability(): void;
|
||||
getAgentAvailability(): boolean;
|
||||
}
|
||||
export default IAdapter;
|
||||
|
||||
@@ -15,7 +15,7 @@ class IAdapter {
|
||||
|
||||
setAvailable() {}
|
||||
init() {}
|
||||
getAgentAvailability() {}
|
||||
getAgentAvailability(): boolean {return false}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -122,8 +122,8 @@ function UseCallSdk({adapter} : {adapter: IAdapter}) {
|
||||
adapter.setAvailable();
|
||||
}
|
||||
|
||||
function getAgentAvailability() {
|
||||
adapter.getAgentAvailability();
|
||||
function getAgentAvailability(): boolean {
|
||||
return adapter.getAgentAvailability();
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user