Skip to content

Instantly share code, notes, and snippets.

@tstachl
Created August 18, 2014 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstachl/da02b7f81631190e9e2a to your computer and use it in GitHub Desktop.
Save tstachl/da02b7f81631190e9e2a to your computer and use it in GitHub Desktop.
new DESK.Widget({
id: 'test', // The ID of the element to place the button into
version: 1,
site: 'hecos.desk.com',
port: '80',
type: 'chat',
displayMode: 0, //0 for popup, 1 for lightbox
features: {
offerAlways: false,
offerAgentsOnline: true,
offerRoutingAgentsAvailable: false,
offerEmailIfChatUnavailable: true
},
fields: {
ticket: {
// desc: '',
// labels_new: '',
// priority: '',
// subject: ''
},
interaction: {
// email: '',
// name: ''
},
chat: {
//subject: ''
},
customer: {
// company: '',
// desc: '',
// first_name: '',
// last_name: '',
// locale_code: '',
// title: ''
}
}
}).render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment