Skip to content
forked from gildas/posh-ic

Interactive Intelligence's Interaction Center API for Powershell

License

Notifications You must be signed in to change notification settings

plmcgrn/posh-ic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

posh-ic

Powershell module to connect to an Interaction Center over ICWS.

HowTo

Import the Posh-IC module in your script

Import-Module .\lib\Posh-IC.psm1

Then use one of the existing functions

Functions

Session functions

Connect to CIC

$cic = New-ICSession -ComputerName cic.acme.com -User admin -Password '1234'

Use the returned session in your future API calls

Get the session status

Get-ICSessionStatus $cic

Disconnect from CIC

Remove-ICSession $cic

User Functions

Get a user status

Get-ICUserStatus $cic
Get-ICUserStatus $cic 'agent001'

If a user id is not passed, it will use the currently logged on user

Get all users

Get-ICUsers $cic

Gets a user

Get-ICUser $cic
Get-ICUser $cic -User 'agent001'

If a user id is not passed, it will use the currently logged on user

Create a new user

New-ICUser $cic -User 'agent001'
New-ICUser $cic -User 'agent001' -Password '1234'
New-ICUser $cic -User 'agent001' -Password '1234' -Extension '8001'

If the password ommitted, it will be set to '1234'

Delete a user

Remove-ICUser $cic -User 'agent001'

Workgroups Functions

Get all workgroups

Get-ICWorkgroups $cic

Get Workgroup

Get-ICWorkgroup $cic -Workgroup 'workgroup001'

Create a new workgroup

New-ICWorkgroup $cic -Workgroup 'workgroup001'
New-ICWorkgroup $cic -Workgroup 'workgroup001' -HasQueue true -QueueType 'ACD' -IsActive true
New-ICWorkgroup $cic -Workgroup 'workgroup001' -Extension '9010'
New-ICWorkgroup $cic -Workgroup 'workgroup001' -Extension '9010' -Members @('agent001', 'agent002')
  • Default values:
    • HasQueue: true
    • QueueType: 'ACD'
    • IsActive: true

All parameters except WorkgroupIp are optional parameters

Remove a workgroup

Remove-ICWorkgroup $cic -Workgroup 'workgroup001'

About

Interactive Intelligence's Interaction Center API for Powershell

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 100.0%