webex-pmr-observer
v0.1.0
Published
A observer that appends a Cisco WebEx PMR urls to calendar event details
Downloads
6
Maintainers
Readme
webex-pmr-observer
An observer that appends a WebEx PMR url to the description of a Google calendar event
webex-pmr-observer
is used in conjunction with Stenella
.
Observer Details
Default Condition: event.location
contains /@webex/i
Outcome:
The calendar event details is appended a WebEx PMR url with the calendar owner's Google username as the meeting room.
e.g. https://cisco.webex.com/meet/jsmith1
Install
$ npm install --save webex-pmr-observer
Usage
Within an observer file located in /observer
:
const eventObservable = require('../controllers/event-controller').observable;
const CalendarService = require('../services/calendar-service');
const PMRObserver = require('webex-pmr-observer');
// Construct a new observer instance
// NOTE: You can pass in additional options in the third parameter
const PMRInstance = new PMRObserver(eventObservable, CalendarService);
// Initiate the instance to begin subscribing
PMRInstance.init();
API
new Observer(observable, calendarService[, opts])
Observable
Type: EventEmitter
A rx.js
Observable that emits google Calendar events.
calendarService
Type: Object
The calendarService provided by google-calendar-listener
to perform update operations.
options
cmrDomain
Type: string
Default: cisco
The CMR (Collaboration Meeting Room) domain that is prefix to the webex url: https://<cmrDomain>/webex.com/meet/user
field
Type: string
(summary, location, description)
Default: location
The field to look up in the event object to determine if observer should process or not.
License
MIT © Cisco Innovation Edge