queri 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b2bfc52dce63366d10f7b59134d9f67b9762bcf
4
- data.tar.gz: 47f40f2442ebdaaafca33e6f034d9b694b04a2eb
3
+ metadata.gz: 20af8492e945ee7eaf882ff131edde6ae06b58bb
4
+ data.tar.gz: fa46795033124ef03e4682dd141962f3620f8af2
5
5
  SHA512:
6
- metadata.gz: f2468e3a03a56bc277780d0db1cc9168a0e37870ac800e3fc2ba3a4d7485fae1f6ee72ee8e86665ee9368dfa7bf87bcad1bbb0e42c231a7ea88d39a9d6fa8f82
7
- data.tar.gz: 9b125de776536028f94c6b1b5217d3f5c7aa3dd0c16d734083a060bcca5fc991384dff909ffb625418b4b9f182af60fecd2c153a3091286a5a158b94d81d1da4
6
+ metadata.gz: 12b4d1aaa690c5108a6dcfe4fee8f5c34623bce23f0f1f608df27a1b996e74e76a8efa8457bb1fca2a61bd777b4648871457bd91dc36c8a54f4ea4940ea7ae48
7
+ data.tar.gz: 0bd09e2f135b61946c35fa8db70349fd8b873a25a8432dddbc2a2d81cfe7c03448d5b64bdd6f16317006cf22b340cd017897b9bd525d2cd659bc98932b161e8d
data/README.md CHANGED
@@ -101,6 +101,12 @@ Currently returns analyses from two methods: QM.stats and QM.realtime.
101
101
  * ScheduleAdherencePerHour
102
102
  * TrafficAnalysisByPeriodPerHour
103
103
  * UnansweredCallWaitTimePerHour
104
+ * CallOutcomes
105
+ * BillableActivities
106
+ * CallResultsByOutcomes
107
+ * DetailedAgentReport
108
+ * NonbillableActivities
109
+ * Outcomes
104
110
  * DetailsOfAgentSessionsAndPauses
105
111
  * DetailOfAgentSessions
106
112
  * DetailOfAgentPauses
@@ -189,11 +195,13 @@ Composite aggregate reports return an Array of Hashes, each Hash corresponding t
189
195
  * AnsweredCalls
190
196
  * AllCalls
191
197
  * CallsFullyWithinTheGivenTimeInterval
198
+ * CallOutcomes
199
+ * Outcomes
200
+ * Distributions
201
+ * InboundAcdCallAttempts
192
202
  * UnansweredCalls
193
203
  * AllCalls
194
204
  * CallsFullyWithinTheGivenTimeInterval
195
- * Distributions
196
- * InboundAcdCallAttempts
197
205
  * Composite aggregate reports
198
206
  * Stats
199
207
  * AnsweredCalls
@@ -233,6 +241,11 @@ Composite aggregate reports return an Array of Hashes, each Hash corresponding t
233
241
  * ScheduleAdherencePerHour
234
242
  * TrafficAnalysisByPeriodPerHour
235
243
  * UnansweredCallWaitTimePerHour
244
+ * CallOutcomes
245
+ * BillableActivities
246
+ * CallResultsByOutcomes
247
+ * DetailedAgentReport
248
+ * NonbillableActivities
236
249
  * Distributions
237
250
  * AcdAttemptsByQueue
238
251
  * AcdAttemptsByTerminal
@@ -0,0 +1,28 @@
1
+ module Queri
2
+ class Stats
3
+ class CallOutcomes
4
+ class BillableActivities < Queri::Stats
5
+ include CompositeReportHelpers
6
+
7
+ class << self
8
+ def xml_code
9
+ CallOutcomes.xml_code + ".ActivBillable"
10
+ end
11
+
12
+ def key_translations
13
+ ActiveSupport::OrderedHash[
14
+ :activity, "Activity",
15
+ :number_of_times_performed, "N. Times",
16
+ :total_activity_duration, "Tot. Time",
17
+ :average_activity_duration, "Avg.",
18
+ :minimum_activity_duration, "Min.",
19
+ :maximum_activity_duration, "Max.",
20
+ :percentage_of_all_performed_activities, "%",
21
+ :placeholder_for_bar_graph, "&nbsp;"
22
+ ]
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ module Queri
2
+ class Stats
3
+ class CallOutcomes
4
+ class CallResultsByOutcomes < Queri::Stats
5
+ include CompositeReportHelpers
6
+
7
+ class << self
8
+ def xml_code
9
+ CallOutcomes.xml_code + ".CallResByOutcome"
10
+ end
11
+
12
+ def key_translations
13
+ ActiveSupport::OrderedHash[
14
+ :call_outcome, "Call outcome",
15
+ :outcome_type, "Type",
16
+ :number_of_calls_for_outcome, "Total",
17
+ :number_of_answered_calls_for_outcome, "Taken",
18
+ :number_of_unanswered_calls_for_outcome, "Lost",
19
+ :percentage_of_calls_for_outcome, "%",
20
+ :placeholder_for_bar_graph, "&nbsp;",
21
+ :hourglass, "&nbsp;"
22
+ ]
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,35 @@
1
+ module Queri
2
+ class Stats
3
+ class CallOutcomes
4
+ class DetailedAgentReport < Queri::Stats
5
+ include CompositeReportHelpers
6
+
7
+ class << self
8
+ def xml_code
9
+ CallOutcomes.xml_code + ".AgentReportDetailed"
10
+ end
11
+
12
+ def key_translations
13
+ ActiveSupport::OrderedHash[
14
+ :agent, "Agent name",
15
+ :available_time, "Avail.",
16
+ :percentage_of_login_time_as_available, "&nbsp;",
17
+ :billable_time, "Bill.",
18
+ :percentage_of_login_time_as_billable, "&nbsp;",
19
+ :nonbillable_time, "NonB.",
20
+ :percentage_of_login_time_as_nonbillable, "&nbsp;",
21
+ :number_of_sales, "Sales",
22
+ :number_of_qualified_contacts, "QC.",
23
+ :number_of_contacts, "Cont.",
24
+ :sales_per_hour, "SPH",
25
+ :qualified_contacts_per_hour, "QCPH",
26
+ :contacts_per_hour, "CPH",
27
+ :percentage_of_sales_to_sales_plus_contacts, "CONV",
28
+ :percentage_of_sales_to_sales_plus_qualified_contacts, "QCONV"
29
+ ]
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,28 @@
1
+ module Queri
2
+ class Stats
3
+ class CallOutcomes
4
+ class NonbillableActivities < Queri::Stats
5
+ include CompositeReportHelpers
6
+
7
+ class << self
8
+ def xml_code
9
+ CallOutcomes.xml_code + ".ActivNotBillable"
10
+ end
11
+
12
+ def key_translations
13
+ ActiveSupport::OrderedHash[
14
+ :activity, "Activity",
15
+ :number_of_times_performed, "N. Times",
16
+ :total_activity_duration, "Tot. Time",
17
+ :average_activity_duration, "Avg.",
18
+ :minimum_activity_duration, "Min.",
19
+ :maximum_activity_duration, "Max.",
20
+ :percentage_of_all_performed_activities, "%",
21
+ :placeholder_for_bar_graph, "&nbsp;"
22
+ ]
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,32 @@
1
+ module Queri
2
+ class Stats
3
+ class CallOutcomes
4
+ class Outcomes < Queri::Stats
5
+ include AggregateReportHelpers
6
+
7
+ class << self
8
+ def xml_code
9
+ CallOutcomes.xml_code + ".GeneralRep"
10
+ end
11
+
12
+ def key_translations
13
+ ActiveSupport::OrderedHash[
14
+ :total_billable_time, "Total billable time:",
15
+ :total_agent_available_time, "Total agent available time:",
16
+ :total_agent_billable_activities, "Total agent billable activities:",
17
+ :total_nonbillable_time, "Total nonbillable time:",
18
+ :number_of_sales, "Number of Sales:",
19
+ :number_of_qualified_contacts, "Number of Qualified Contacts:",
20
+ :number_of_contacts, "Number of Contacts:",
21
+ :sales_per_hour, "Sales per Hour (SPH):",
22
+ :qualified_contacts_per_hour, "Qualified Contacts per Hour (QCPH):",
23
+ :contacts_per_hour, "Contacts per Hour (CPH):",
24
+ :percentage_of_sales_to_sales_plus_contacts, "Conversion index:",
25
+ :percentage_of_sales_to_sales_plus_qualified_contacts, "Qualified conversion index:"
26
+ ]
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,11 @@
1
+ module Queri
2
+ class Stats
3
+ class CallOutcomes
4
+ @@xml_code = "OutcomesDO"
5
+
6
+ def self.xml_code
7
+ @@xml_code
8
+ end
9
+ end
10
+ end
11
+ end
data/lib/queri/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Queri
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe Queri::Stats::CallOutcomes::BillableActivities do
4
+ let(:report_class) { Queri::Stats::CallOutcomes::BillableActivities }
5
+ let(:xml_code) { report_class.xml_code }
6
+
7
+ before { Queri.configure_with(File.join(File.dirname(__FILE__), '..', '..', 'config.yml')) }
8
+
9
+ it_behaves_like "a report class"
10
+
11
+ it_behaves_like "a report method"
12
+
13
+ it_behaves_like "a queuemetrics report"
14
+
15
+ it_behaves_like "a stats report"
16
+
17
+ describe "An instance of", Queri::Stats::CallOutcomes::BillableActivities do
18
+ it_behaves_like "a composite aggregate report instance"
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Queri::Stats::CallOutcomes do
4
+ let(:report_class) { Queri::Stats::CallOutcomes }
5
+
6
+ it_behaves_like "a report class"
7
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe Queri::Stats::CallOutcomes::CallResultsByOutcomes do
4
+ let(:report_class) { Queri::Stats::CallOutcomes::CallResultsByOutcomes }
5
+ let(:xml_code) { report_class.xml_code }
6
+
7
+ before { Queri.configure_with(File.join(File.dirname(__FILE__), '..', '..', 'config.yml')) }
8
+
9
+ it_behaves_like "a report class"
10
+
11
+ it_behaves_like "a report method"
12
+
13
+ it_behaves_like "a queuemetrics report"
14
+
15
+ it_behaves_like "a stats report"
16
+
17
+ describe "An instance of", Queri::Stats::CallOutcomes::CallResultsByOutcomes do
18
+ it_behaves_like "a composite aggregate report instance"
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe Queri::Stats::CallOutcomes::DetailedAgentReport do
4
+ let(:report_class) { Queri::Stats::CallOutcomes::DetailedAgentReport }
5
+ let(:xml_code) { report_class.xml_code }
6
+
7
+ before { Queri.configure_with(File.join(File.dirname(__FILE__), '..', '..', 'config.yml')) }
8
+
9
+ it_behaves_like "a report class"
10
+
11
+ it_behaves_like "a report method"
12
+
13
+ it_behaves_like "a queuemetrics report"
14
+
15
+ it_behaves_like "a stats report"
16
+
17
+ describe "An instance of", Queri::Stats::CallOutcomes::DetailedAgentReport do
18
+ it_behaves_like "an agent-level report instance"
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe Queri::Stats::CallOutcomes::NonbillableActivities do
4
+ let(:report_class) { Queri::Stats::CallOutcomes::NonbillableActivities }
5
+ let(:xml_code) { report_class.xml_code }
6
+
7
+ before { Queri.configure_with(File.join(File.dirname(__FILE__), '..', '..', 'config.yml')) }
8
+
9
+ it_behaves_like "a report class"
10
+
11
+ it_behaves_like "a report method"
12
+
13
+ it_behaves_like "a queuemetrics report"
14
+
15
+ it_behaves_like "a stats report"
16
+
17
+ describe "An instance of", Queri::Stats::CallOutcomes::NonbillableActivities do
18
+ it_behaves_like "a composite aggregate report instance"
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe Queri::Stats::CallOutcomes::Outcomes do
4
+ let(:report_class) { Queri::Stats::CallOutcomes::Outcomes }
5
+ let(:xml_code) { report_class.xml_code }
6
+
7
+ before { Queri.configure_with(File.join(File.dirname(__FILE__), '..', '..', 'config.yml')) }
8
+
9
+ it_behaves_like "a report class"
10
+
11
+ it_behaves_like "a report method"
12
+
13
+ it_behaves_like "a queuemetrics report"
14
+
15
+ it_behaves_like "a stats report"
16
+
17
+ describe "An instance of", Queri::Stats::CallOutcomes::Outcomes do
18
+ it_behaves_like "an aggregate report instance"
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Rice
@@ -143,6 +143,12 @@ files:
143
143
  - lib/queri/stats/call_distribution_by_hour/schedule_adherence_per_hour.rb
144
144
  - lib/queri/stats/call_distribution_by_hour/traffic_analysis_by_period_per_hour.rb
145
145
  - lib/queri/stats/call_distribution_by_hour/unanswered_call_wait_time_per_hour.rb
146
+ - lib/queri/stats/call_outcomes.rb
147
+ - lib/queri/stats/call_outcomes/billable_activities.rb
148
+ - lib/queri/stats/call_outcomes/call_results_by_outcomes.rb
149
+ - lib/queri/stats/call_outcomes/detailed_agent_report.rb
150
+ - lib/queri/stats/call_outcomes/nonbillable_activities.rb
151
+ - lib/queri/stats/call_outcomes/outcomes.rb
146
152
  - lib/queri/stats/details_of_agent_sessions_and_pauses.rb
147
153
  - lib/queri/stats/details_of_agent_sessions_and_pauses/detail_of_agent_pauses.rb
148
154
  - lib/queri/stats/details_of_agent_sessions_and_pauses/detail_of_agent_sessions.rb
@@ -234,6 +240,12 @@ files:
234
240
  - spec/stats/call_distribution_by_hour/schedule_adherence_per_hour_spec.rb
235
241
  - spec/stats/call_distribution_by_hour/traffic_analysis_by_period_per_hour_spec.rb
236
242
  - spec/stats/call_distribution_by_hour/unanswered_call_wait_time_per_hour_spec.rb
243
+ - spec/stats/call_outcomes/billable_activities_spec.rb
244
+ - spec/stats/call_outcomes/call_outcomes_spec.rb
245
+ - spec/stats/call_outcomes/call_results_by_outcomes_spec.rb
246
+ - spec/stats/call_outcomes/detailed_agent_report_spec.rb
247
+ - spec/stats/call_outcomes/nonbillable_activities_spec.rb
248
+ - spec/stats/call_outcomes/outcomes_spec.rb
237
249
  - spec/stats/details_of_agent_sessions_and_pauses/detail_of_agent_pauses_spec.rb
238
250
  - spec/stats/details_of_agent_sessions_and_pauses/detail_of_agent_sessions_spec.rb
239
251
  - spec/stats/details_of_agent_sessions_and_pauses/details_of_agent_sessions_and_pauses_spec.rb
@@ -361,6 +373,12 @@ test_files:
361
373
  - spec/stats/call_distribution_by_hour/schedule_adherence_per_hour_spec.rb
362
374
  - spec/stats/call_distribution_by_hour/traffic_analysis_by_period_per_hour_spec.rb
363
375
  - spec/stats/call_distribution_by_hour/unanswered_call_wait_time_per_hour_spec.rb
376
+ - spec/stats/call_outcomes/billable_activities_spec.rb
377
+ - spec/stats/call_outcomes/call_outcomes_spec.rb
378
+ - spec/stats/call_outcomes/call_results_by_outcomes_spec.rb
379
+ - spec/stats/call_outcomes/detailed_agent_report_spec.rb
380
+ - spec/stats/call_outcomes/nonbillable_activities_spec.rb
381
+ - spec/stats/call_outcomes/outcomes_spec.rb
364
382
  - spec/stats/details_of_agent_sessions_and_pauses/detail_of_agent_pauses_spec.rb
365
383
  - spec/stats/details_of_agent_sessions_and_pauses/detail_of_agent_sessions_spec.rb
366
384
  - spec/stats/details_of_agent_sessions_and_pauses/details_of_agent_sessions_and_pauses_spec.rb