Project

qui

0.0
No commit activity in last 3 years
No release in over 3 years
Qui, or Queuemetrics User Integration, is a gem that creates an ActiveRecord wrapper for manipulating users, agents, and queues within the Queuemetrics calling platform.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Qui

Qui, or Queuemetrics User Integration, is a gem that creates an ActiveRecord wrapper for manipulating users, agents, and queues within the Queuemetrics calling platform.

Installation

Add this line to your application's Gemfile:

gem 'qui'

And then execute:

$ bundle

Or install it yourself as:

$ gem install qui

Usage

First, connect to your Queuemetrics database:

Qui::Base.establish_connection("192.168.1.100","username","password")

Then simply create users, agents and queues using QueuemetricsAgent, QueuemetricsUser, and QueuemetricsQueue - all inhereit from ActiveRecord::Base.

User:

u = Qui::User.new(login: "Agent/5555", password: "superSECRET", real_name: "Robert Weathers", classe: 4)
u.save

Agent:

a = Qui::Agent.new(agent_name: "Agent/5555", agent_description: "rweathers", supervised_by: "Mr. Smith")
a.save

You can add queues using ActiveRecord, but can also add or remove agents from queues like below:

q = Qui::Queue.first
q.add_agent!("Agent/5555")
q.remove_agent!("Agent/4445")

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request