##Preview
Simple Dashing widget to display LiveChat agents status (number online and number accepting chats).
If the number of agents accepting chats drops to 0, a red highlight is displayed.
##Dependencies
Add it to dashing's gemfile:
gem 'rest-client'
and run bundle install
. Everything should work now :)
##Usage
The easiest way to install is to grab this gist's ID from the URL and use dashing install
.
Otherwise, to use this widget, copy livechat_agents.html
, livechat_agents.coffee
, and livechat_agents.scss
into the /widgets/livechat_agents
directory. Put the livechat_agents.rb
file in your /jobs
folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="livechat_agents" data-view="LivechatAgents" data-title="LiveChat Agents"></div>
</li>
##Settings
You'll need to add a LiveChat login email and API key to the livechat_agents.rb job file.
The jobs runs every thirty seconds by default, you can adjust that by editing the SCHEDULER line in the job file.