2.0.1 • Published 1 year ago

nest-cisco-webdialer-client v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

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.

2.0.1

1 year ago

2.0.0

1 year ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago