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
.
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
$ npm install --save webex-pmr-observer
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();
Type: EventEmitter
A rx.js
Observable that emits google Calendar events.
Type: Object
The calendarService provided by google-calendar-listener
to perform update operations.
Type: string
Default: cisco
The CMR (Collaboration Meeting Room) domain that is prefix to the webex url: https://<cmrDomain>/webex.com/meet/user
Type: string
(summary, location, description)
Default: location
The field to look up in the event object to determine if observer should process or not.
MIT © Cisco Innovation Edge