-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cc): contact center agent login implementation #3919
base: feat/wxcc
Are you sure you want to change the base?
Conversation
* @returns {Promise<UserResponse>} A promise that eventually resolves to an API response. | ||
*/ | ||
|
||
public async getUserUsingCI(ciUserId: string, orgId: string): Promise<UserResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change all the parameter to nested object {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be taken care.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide a list of files to review for this PR.
docs/samples/contact-center/app.js
Outdated
listTeams.forEach((team) => { | ||
console.log(team); | ||
if(team.teamType === "AGENT") { | ||
console.log('inside if condition!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unnecessary console.log statements from all files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed!
packages/@webex/plugin-cc/src/cc.ts
Outdated
deviceId | ||
); | ||
// eslint-disable-next-line no-console | ||
console.log('API SUCCESS: agentLoginAPIResponse is', agentLoginResponse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed!
Description has been updated with the files to review. This PR is still in Work in Progress. |
COMPLETES #<SPARK-558555>
This pull request addresses
The user should be able to login to agent desktop/station using the below API and get Login response success or failure with reason.
API:- https://developer.webex-cx.com/documentation/agents/v1/login
webex.cc.LoginAgent({teamId, loginOption: 'DialNumber' | 'Extension' | 'Desktop', dialString}) -> Promise
Description:
Login's the agent to agent station by making a POST to the above API
Files that need to be review:
by making the following changes
Change Type
The following scenarios were tested
I have tested my changes through the CC samples app using the UI changes that I have add. I have tested the Post with valid and invalid request.
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.