nest-cisco-webdialer-client
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Nest-Cisco-WebDialer-Client

Purpose

To allow applications to interact with the Cisco WebDialer SOAPService You can use this library to make and end phone calls on the Cisco System ( eg. dial out to sex hotlines from your co-workers work phone).

Installation

$ npm install nest-cisco-webdialer-client

Usage

Register Global Module. Don't forget the optional SSLConfiguration in the forRoot method's Options object.

import { Module } from '@nestjs/common';
import { AppService } from './app.service';
import { WebDialerModule } from 'nest-cisco-webdialer-client';

@Module({
  imports: [WebDialerModule.forRoot({ webDialerWsdlUrl: 'https://cisco.fakeCompany.com/webdialer/services/WebdialerSoapService70?wsdl'})],
  providers: [AppService],
})
export class AppModule {}

Use the Globally injected Service to make and end calls! Whoo hoo!

import { CanonicalPhoneNumber, WebDialerClientService } from 'nest-cisco-webdialer-client';

export class AppService {

  constructor(private readonly webDialerClient: WebDialerClientService){}

  // You must know the userId and password used by the Cisco System. 
  async makeCall( userId: string, password: string, dialNumber: string) {
    await this.webDialerClient.makeCall(userId, password, dialNumber);
  }

  async makeCallCanonically( userId: string, password: string, canonicalPhoneNumber: CanonicalPhoneNumber) {
    await this.webDialerClient.makeCall(userId, password, canonicalPhoneNumber);
  }

  async endCall(userId: string, password: string) {
    await this.webDialerClient.endCall(userId, password);
  }

}

Support

Pull Requests are welcome, just make sure they follow Angular Changelog Convention.

Stay in touch

License

nest-cisco-webdialer-client is MIT licensed.

Dependencies (1)

Dev Dependencies (30)

Package Sidebar

Install

npm i nest-cisco-webdialer-client

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

56.2 kB

Total Files

97

Last publish

Collaborators

  • bam036