Giter Site home page Giter Site logo

posh-ic's Introduction

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'

posh-ic's People

Contributors

gildas avatar pierricki3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.