Network Performance Monitor
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

networkedhelpdesk

0.0.1 • Public • Published
var networkedhelpdesk = require('networkedhelpdesk')
var agreement = new networkedhelpdesk.Agreement({
  //JSON Agreement data here
  'uuid': networkedhelpdesk.HashedUUID.from_url('http://anothershare.example.net/sharing/agreements/12345'),
  'name': 'Ticket Sharing',
  'receiver_url': 'http://shared.example.com/sharing',
  'sender_url': 'http://anothershare.example.net/sharing',
  'access_key': networkedhelpdesk.HashedUUID.random(),
  'status': 'pending'
})
 
agreement.send(agreement.receiver, function (err, response) {
  //do stuff here
})
 
agreement.status = 'inactive'
agreement.deactivated_by = 'sender'
 
agreement.update(agreement.receiver, function (err, response) {
  // do stuff here
})
 
// Create Ticket attached to current agreement
var ticket = agreement.ticket()
 
// Create ticket with supplied agreement
ticket = new networkedhelpdesk.Ticket(
  agreement,
  {
    //JSON Ticket Data here
  }
)
 
ticket.share(agreement.receiver, function (err, response) {
  // Do stuff here?
})
 
ticket.update(agreement.receiver, function (err, response) {
  // Do stuff here?
})
 
ticket.unshare(agreement.receiver, function (err, response) {
  // Do stuff here?
})

Keywords

none

install

npm i networkedhelpdesk

Downloadsweekly downloads

0

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability