Skip to content

An observer that appends a WebEx PMR url to the description of a Google calendar event

License

Notifications You must be signed in to change notification settings

cisco-ie/webex-pmr-observer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webex-pmr-observer Build Status

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

About

An observer that appends a WebEx PMR url to the description of a Google calendar event

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published