telephony 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +105 -0
- data/Rakefile +39 -0
- data/app/assets/fonts/telephony/zest-telephony.eot +0 -0
- data/app/assets/fonts/telephony/zest-telephony.svg +73 -0
- data/app/assets/fonts/telephony/zest-telephony.ttf +0 -0
- data/app/assets/fonts/telephony/zest-telephony.woff +0 -0
- data/app/assets/images/telephony/backspace.png +0 -0
- data/app/assets/images/telephony/icon-spinner.gif +0 -0
- data/app/assets/javascripts/telephony/application.js +12 -0
- data/app/assets/javascripts/telephony/collections/agents.js +4 -0
- data/app/assets/javascripts/telephony/config.js.erb +11 -0
- data/app/assets/javascripts/telephony/models/agent.js +103 -0
- data/app/assets/javascripts/telephony/models/conversation.js +226 -0
- data/app/assets/javascripts/telephony/models/device.js +30 -0
- data/app/assets/javascripts/telephony/models/transfer.js +65 -0
- data/app/assets/javascripts/telephony/namespace.js +6 -0
- data/app/assets/javascripts/telephony/push.js +80 -0
- data/app/assets/javascripts/telephony/vendor/backbone.js +1159 -0
- data/app/assets/javascripts/telephony/vendor/chosen.jquery.js +1018 -0
- data/app/assets/javascripts/telephony/vendor/jquery.form.js +1117 -0
- data/app/assets/javascripts/telephony/vendor/pusher.js +1304 -0
- data/app/assets/javascripts/telephony/vendor/test_dependencies.js +18 -0
- data/app/assets/javascripts/telephony/vendor/underscore.js +839 -0
- data/app/assets/javascripts/telephony/views/agents_view.js +69 -0
- data/app/assets/javascripts/telephony/views/application_view.js +78 -0
- data/app/assets/javascripts/telephony/views/call_queue_view.js +21 -0
- data/app/assets/javascripts/telephony/views/conversation_buttons_view.js +15 -0
- data/app/assets/javascripts/telephony/views/conversation_view.js +322 -0
- data/app/assets/javascripts/telephony/views/status_view.js +36 -0
- data/app/assets/javascripts/telephony/views/transfer_view.js +87 -0
- data/app/assets/javascripts/telephony/views/twilio_client_view.js +117 -0
- data/app/assets/javascripts/telephony/views/widget_view.js +55 -0
- data/app/assets/javascripts/telephony/widget.js +5 -0
- data/app/assets/javascripts/templates/telephony/agents_view.jst.ejs +8 -0
- data/app/assets/javascripts/templates/telephony/call_queue_view.jst.ejs +2 -0
- data/app/assets/javascripts/templates/telephony/conversation_buttons_view.jst.ejs +23 -0
- data/app/assets/javascripts/templates/telephony/conversation_view.jst.ejs +10 -0
- data/app/assets/javascripts/templates/telephony/status_view.jst.ejs +4 -0
- data/app/assets/javascripts/templates/telephony/transfer_view.jst.ejs +38 -0
- data/app/assets/javascripts/templates/telephony/twilio_client_view.jst.ejs +10 -0
- data/app/assets/stylesheets/telephony/font.css +43 -0
- data/app/assets/stylesheets/telephony/reset.css.scss +10 -0
- data/app/assets/stylesheets/telephony/widget.css.scss +512 -0
- data/app/controllers/telephony/agents_controller.rb +46 -0
- data/app/controllers/telephony/application_controller.rb +4 -0
- data/app/controllers/telephony/call_centers_controller.rb +9 -0
- data/app/controllers/telephony/conversations_controller.rb +74 -0
- data/app/controllers/telephony/inbound/conversation_queues_controller.rb +21 -0
- data/app/controllers/telephony/playable_listeners_controller.rb +43 -0
- data/app/controllers/telephony/providers/twilio/application_controller.rb +26 -0
- data/app/controllers/telephony/providers/twilio/calls_controller.rb +130 -0
- data/app/controllers/telephony/providers/twilio/inbound_calls_controller.rb +54 -0
- data/app/controllers/telephony/providers/twilio/musics_controller.rb +12 -0
- data/app/controllers/telephony/providers/twilio/voicemails_controller.rb +29 -0
- data/app/controllers/telephony/signals/agents/presences_controller.rb +64 -0
- data/app/controllers/telephony/transfers_controller.rb +18 -0
- data/app/controllers/telephony/twilio_client_controller.rb +37 -0
- data/app/controllers/telephony/voicemails_controller.rb +13 -0
- data/app/controllers/telephony/widget_controller.rb +10 -0
- data/app/helpers/telephony/application_helper.rb +4 -0
- data/app/helpers/telephony/calls_helper.rb +13 -0
- data/app/models/telephony/agent.rb +186 -0
- data/app/models/telephony/agent_state_machine.rb +54 -0
- data/app/models/telephony/base.rb +7 -0
- data/app/models/telephony/blacklisted_number.rb +5 -0
- data/app/models/telephony/call.rb +94 -0
- data/app/models/telephony/call_center.rb +26 -0
- data/app/models/telephony/call_state_machine.rb +98 -0
- data/app/models/telephony/conversation.rb +273 -0
- data/app/models/telephony/conversation_state_machine.rb +109 -0
- data/app/models/telephony/conversations_presenter.rb +83 -0
- data/app/models/telephony/events.rb +6 -0
- data/app/models/telephony/events/answer.rb +6 -0
- data/app/models/telephony/events/base.rb +118 -0
- data/app/models/telephony/events/busy.rb +6 -0
- data/app/models/telephony/events/call_answered.rb +22 -0
- data/app/models/telephony/events/call_fail.rb +6 -0
- data/app/models/telephony/events/complete_hold.rb +28 -0
- data/app/models/telephony/events/complete_one_step_transfer.rb +17 -0
- data/app/models/telephony/events/complete_resume.rb +28 -0
- data/app/models/telephony/events/complete_two_step_transfer.rb +6 -0
- data/app/models/telephony/events/conference.rb +6 -0
- data/app/models/telephony/events/connect.rb +22 -0
- data/app/models/telephony/events/customer_left_two_step_transfer.rb +6 -0
- data/app/models/telephony/events/dial_agent.rb +6 -0
- data/app/models/telephony/events/ended.rb +19 -0
- data/app/models/telephony/events/enqueue.rb +6 -0
- data/app/models/telephony/events/fail_one_step_transfer.rb +9 -0
- data/app/models/telephony/events/fail_two_step_transfer.rb +6 -0
- data/app/models/telephony/events/initialize_widget.rb +15 -0
- data/app/models/telephony/events/initiate_hold.rb +6 -0
- data/app/models/telephony/events/initiate_one_step_transfer.rb +6 -0
- data/app/models/telephony/events/initiate_resume.rb +6 -0
- data/app/models/telephony/events/initiate_two_step_transfer.rb +6 -0
- data/app/models/telephony/events/leave_two_step_transfer.rb +17 -0
- data/app/models/telephony/events/leave_voicemail.rb +22 -0
- data/app/models/telephony/events/no_answer.rb +6 -0
- data/app/models/telephony/events/play_closed_greeting.rb +6 -0
- data/app/models/telephony/events/play_message.rb +6 -0
- data/app/models/telephony/events/reject.rb +6 -0
- data/app/models/telephony/events/rona.rb +6 -0
- data/app/models/telephony/events/start.rb +17 -0
- data/app/models/telephony/events/straight_to_voicemail.rb +6 -0
- data/app/models/telephony/events/terminate.rb +6 -0
- data/app/models/telephony/events/transfer.rb +35 -0
- data/app/models/telephony/inbound_conversation_queue.rb +101 -0
- data/app/models/telephony/playable.rb +7 -0
- data/app/models/telephony/playable_listener.rb +42 -0
- data/app/models/telephony/pusher_event_publisher.rb +26 -0
- data/app/models/telephony/recording.rb +4 -0
- data/app/models/telephony/voicemail.rb +36 -0
- data/app/observers/telephony/agent_observer.rb +8 -0
- data/app/observers/telephony/call_observer.rb +15 -0
- data/app/observers/telephony/conversation_observer.rb +9 -0
- data/app/observers/telephony/event_observer.rb +9 -0
- data/app/views/layouts/telephony/application.html.erb +14 -0
- data/app/views/telephony/providers/twilio/calls/child_detached.builder +5 -0
- data/app/views/telephony/providers/twilio/calls/complete_hold.builder +6 -0
- data/app/views/telephony/providers/twilio/calls/connect.builder +13 -0
- data/app/views/telephony/providers/twilio/calls/dial.builder +14 -0
- data/app/views/telephony/providers/twilio/calls/done.builder +5 -0
- data/app/views/telephony/providers/twilio/calls/join_conference.builder +7 -0
- data/app/views/telephony/providers/twilio/calls/whisper_tone.builder +3 -0
- data/app/views/telephony/providers/twilio/inbound_calls/closed_hours.builder +7 -0
- data/app/views/telephony/providers/twilio/inbound_calls/create.builder +8 -0
- data/app/views/telephony/providers/twilio/inbound_calls/enqueue.builder +8 -0
- data/app/views/telephony/providers/twilio/inbound_calls/reject.builder +5 -0
- data/app/views/telephony/providers/twilio/inbound_calls/wait_music.builder +5 -0
- data/app/views/telephony/providers/twilio/musics/hold.builder +5 -0
- data/app/views/telephony/providers/twilio/voicemails/new.builder +6 -0
- data/app/views/telephony/twilio_client/index.html.erb +74 -0
- data/app/views/telephony/widget/index.erb +3 -0
- data/config/cucumber.yml +8 -0
- data/config/database.yml +57 -0
- data/config/environment.rb +67 -0
- data/config/initializers/pusher.rb +21 -0
- data/config/initializers/telephony.rb +44 -0
- data/config/routes.rb +94 -0
- data/config/wopr.yml.example +38 -0
- data/db/migrate/20130806213053_bootstrap_db.rb +105 -0
- data/db/migrate/20131009204026_create_telephony_blacklisted_numbers.rb +11 -0
- data/lib/agent_generator.rb +24 -0
- data/lib/tasks/cucumber.rake +65 -0
- data/lib/tasks/jasmine.rake +8 -0
- data/lib/tasks/telephony_tasks.rake +4 -0
- data/lib/telephony.rb +34 -0
- data/lib/telephony/concerns/controllers/twilio_request_verifier.rb +39 -0
- data/lib/telephony/conversation_data.rb +67 -0
- data/lib/telephony/engine.rb +19 -0
- data/lib/telephony/error.rb +8 -0
- data/lib/telephony/error/agent_on_a_call.rb +2 -0
- data/lib/telephony/error/base.rb +3 -0
- data/lib/telephony/error/connection.rb +2 -0
- data/lib/telephony/error/not_in_progress.rb +2 -0
- data/lib/telephony/error/queue_empty.rb +2 -0
- data/lib/telephony/helper.rb +11 -0
- data/lib/telephony/jobs/agent_offline.rb +28 -0
- data/lib/telephony/jobs/pusher_event.rb +21 -0
- data/lib/telephony/providers/twilio_provider.rb +162 -0
- data/lib/telephony/version.rb +3 -0
- data/spec/controllers/telephony/agents_controller_spec.rb +117 -0
- data/spec/controllers/telephony/call_centers_controller_spec.rb +25 -0
- data/spec/controllers/telephony/conversations_controller_spec.rb +229 -0
- data/spec/controllers/telephony/playable_listeners_controller_spec.rb +138 -0
- data/spec/controllers/telephony/providers/twilio/calls_controller_spec.rb +33 -0
- data/spec/controllers/telephony/providers/twilio/musics_controller_spec.rb +20 -0
- data/spec/controllers/telephony/signals/agents/presences_controller_spec.rb +154 -0
- data/spec/controllers/telephony/twilio_client_controller_spec.rb +58 -0
- data/spec/controllers/telephony/widget_controller_spec.rb +25 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +6 -0
- data/spec/dummy/app/assets/javascripts/lib/event_logger.js +82 -0
- data/spec/dummy/app/assets/javascripts/vendor/backbone.js +1159 -0
- data/spec/dummy/app/assets/javascripts/vendor/chosen.jquery.js +1018 -0
- data/spec/dummy/app/assets/javascripts/vendor/jquery.form.js +1117 -0
- data/spec/dummy/app/assets/javascripts/vendor/underscore.js +839 -0
- data/spec/dummy/app/assets/stylesheets/application.css +23 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/widget_host_controller.rb +2 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy/app/views/widget_host/index.html.erb +53 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +61 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/call_centers.yml +35 -0
- data/spec/dummy/config/call_centers.yml.example +35 -0
- data/spec/dummy/config/database.yml +56 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/cucumber.rb +39 -0
- data/spec/dummy/config/environments/development.rb +39 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/pusher.yml +14 -0
- data/spec/dummy/config/pusher.yml.example +14 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/sms_whitelist.json.example +4 -0
- data/spec/dummy/config/twilio.yml +57 -0
- data/spec/dummy/config/twilio.yml.example +57 -0
- data/spec/dummy/db/schema.rb +122 -0
- data/spec/dummy/db/seeds.rb +6 -0
- data/spec/dummy/log/production.log +156 -0
- data/spec/dummy/log/test.log +13812 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/assets/application-628309db7ce8c0abdd91f8f796881599.js +32 -0
- data/spec/dummy/public/assets/application-628309db7ce8c0abdd91f8f796881599.js.gz +0 -0
- data/spec/dummy/public/assets/application-6c551430f3bdd32ba57c9c41e5f91846.css +24 -0
- data/spec/dummy/public/assets/application-6c551430f3bdd32ba57c9c41e5f91846.css.gz +0 -0
- data/spec/dummy/public/assets/telephony/backspace-9f5b195e049ed90eb20ecdda6e264b0a.png +0 -0
- data/spec/dummy/public/assets/telephony/icon-spinner-ddbae473a70c5425810aeee31d4a8ad7.gif +0 -0
- data/spec/dummy/public/assets/telephony/zest-telephony-0e6b13673634da80de9ae09bcca253e3.eot +0 -0
- data/spec/dummy/public/assets/telephony/zest-telephony-37f394757ccb11b978f16d9fd32cb3b5.ttf +0 -0
- data/spec/dummy/public/assets/telephony/zest-telephony-e7efdbc60c0a1c8404951bc79c7fb3a8.woff +0 -0
- data/spec/dummy/public/assets/telephony/zest-telephony-f34287df626936908408f53a33db9e83.svg +73 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/assets/C98/020/sprockets%2Fa83f8254d688334ff179984e423f502f +0 -0
- data/spec/dummy/tmp/cache/assets/CA4/550/sprockets%2F407f9191fe573f2435c55c017cb0d022 +0 -0
- data/spec/dummy/tmp/cache/assets/CAA/6A0/sprockets%2F3265550e2d2c7f5a864ca85d255504c2 +0 -0
- data/spec/dummy/tmp/cache/assets/CB0/F60/sprockets%2F462f9efed31e6710732376ae06c27208 +0 -0
- data/spec/dummy/tmp/cache/assets/CB6/E20/sprockets%2Fa7092cd9f16917099d754f1380af13e1 +0 -0
- data/spec/dummy/tmp/cache/assets/CC7/9F0/sprockets%2F0517100815cd45c43fec1d8510fcb630 +0 -0
- data/spec/dummy/tmp/cache/assets/CCA/BF0/sprockets%2F16ea15e0b5d367c34b812612a4207e3e +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/CF1/960/sprockets%2F36ef26985821ec702c74dae4af789903 +0 -0
- data/spec/dummy/tmp/cache/assets/D07/F30/sprockets%2Fd12862f20df0c9ef7aa2b4216d247079 +0 -0
- data/spec/dummy/tmp/cache/assets/D09/BF0/sprockets%2F5c8595efaa8cc5235a09801c60e25a16 +0 -0
- data/spec/dummy/tmp/cache/assets/D0D/250/sprockets%2F5e759d66e374910dae5a51b221e6e3a4 +0 -0
- data/spec/dummy/tmp/cache/assets/D0D/E30/sprockets%2Fa282879e0788ba133f5bdc211cf134e8 +0 -0
- data/spec/dummy/tmp/cache/assets/D11/8E0/sprockets%2F2a193a8af29963f1113bef05788e02ff +0 -0
- data/spec/dummy/tmp/cache/assets/D14/270/sprockets%2F7f95a752910ed33d728532f8fabd340d +0 -0
- data/spec/dummy/tmp/cache/assets/D17/BE0/sprockets%2F58749d7aea4ca766c2520801f0f96b9b +0 -0
- data/spec/dummy/tmp/cache/assets/D18/270/sprockets%2Fbb2d88813b1795a97e9a7c14100eef77 +0 -0
- data/spec/dummy/tmp/cache/assets/D22/310/sprockets%2Fbae9148ce1229214dfbb0c425b0054d0 +0 -0
- data/spec/dummy/tmp/cache/assets/D30/EB0/sprockets%2F2c668b88beb4c9805d91ed4587f549e7 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/690/sprockets%2F681ba175fdd2da8d590b7e624b6135a6 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/BC0/sprockets%2F7214f66dd91fdd51f00c3882293f5eea +0 -0
- data/spec/dummy/tmp/cache/assets/D46/FA0/sprockets%2F4f9543cd9e68ba3141fd488afb13681b +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D51/9A0/sprockets%2Fb6e4cbcf30f6f611671695f79ea846d5 +0 -0
- data/spec/dummy/tmp/cache/assets/D55/920/sprockets%2F0a02242aa4c4febcc796419aba103c69 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D5F/6F0/sprockets%2F155e7bc44f326371cce0ca8bc5b2414e +0 -0
- data/spec/dummy/tmp/cache/assets/D6B/250/sprockets%2Fe4eecce7a3371b11038c92f07cb28e67 +0 -0
- data/spec/dummy/tmp/cache/assets/D6B/E70/sprockets%2F103a456ae3692e3cca20b7696fdee8f0 +0 -0
- data/spec/dummy/tmp/cache/assets/D7F/AD0/sprockets%2Fb1c02d12303b1fe2f981771cbb0c4cbd +0 -0
- data/spec/dummy/tmp/cache/assets/D81/D00/sprockets%2F0c68b6d9dce98681a2a710d9fc3f7e39 +0 -0
- data/spec/dummy/tmp/cache/assets/D94/4D0/sprockets%2F4608a5bdf27ddf11bcaed1375911e9a2 +0 -0
- data/spec/dummy/tmp/cache/assets/D9A/580/sprockets%2F433005b19aaf7ed5cba9c7f8cd30b775 +0 -0
- data/spec/dummy/tmp/cache/assets/DA4/270/sprockets%2F860ab3bd30204e02c0a5d82bd4bbabe1 +0 -0
- data/spec/dummy/tmp/cache/assets/DA4/480/sprockets%2F53e39285bb57a2ddb6ff856b2eb491da +0 -0
- data/spec/dummy/tmp/cache/assets/DA6/3C0/sprockets%2F587c7e35f47442eadaa530acc5e9f5e6 +0 -0
- data/spec/dummy/tmp/cache/assets/DAB/DA0/sprockets%2Fb8fb5e8518ed3d38a7f6a8f18a9208aa +0 -0
- data/spec/dummy/tmp/cache/assets/DB2/700/sprockets%2Ffa85cb79b94fce1b8344d983ea863d2e +0 -0
- data/spec/dummy/tmp/cache/assets/DCC/4F0/sprockets%2Fbc0f3c61e16afb5a285ba8b39846ed8b +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/BE0/sprockets%2F2c0a4d4675a61b014aedbbabb3f071fc +0 -0
- data/spec/dummy/tmp/cache/assets/E04/640/sprockets%2F3c5ddf2bbefd9d70f1b506b519cf856e +0 -0
- data/spec/dummy/tmp/cache/assets/E04/7F0/sprockets%2F35f1b2ff729a5ec21f6dc5f7d6faa67b +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/E07/230/sprockets%2Febd4f2dd708879d593aff008ccb75acc +0 -0
- data/spec/dummy/tmp/cache/assets/E17/9D0/sprockets%2F8db2b79f6c4eabe7a9ebe7a7898ec066 +0 -0
- data/spec/dummy/tmp/cache/assets/E31/F10/sprockets%2Fcebacf56667da1cc2961b59fd922eafb +0 -0
- data/spec/factories/agent.rb +26 -0
- data/spec/factories/calls.rb +106 -0
- data/spec/factories/conversations.rb +171 -0
- data/spec/factories/events.rb +250 -0
- data/spec/factories/playable_listeners.rb +6 -0
- data/spec/factories/recordings.rb +6 -0
- data/spec/factories/voicemails.rb +8 -0
- data/spec/fixtures/vcr_cassettes/Authenticating_an_online_user.yml +90 -0
- data/spec/fixtures/vcr_cassettes/Creating_a_conversation/creates_a_new_call.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Creating_a_conversation/creates_a_new_conversation.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Creating_a_conversation/returns_the_conversation_as_JSON.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Pusher_channel_as_JSON.yml +90 -0
- data/spec/fixtures/vcr_cassettes/Pusher_to_publish_the_event.yml +32 -0
- data/spec/fixtures/vcr_cassettes/Reloading_the_widget_during_a_call/_create/during_a_call/after_a_failed_transfer/pushes_the_event_for_the_active_call.yml +1110 -0
- data/spec/fixtures/vcr_cassettes/Telephony_ConversationsController/_create/by_default/creates_a_new_call.yml +45 -0
- data/spec/fixtures/vcr_cassettes/Telephony_ConversationsController/_create/by_default/creates_a_new_conversation.yml +43 -0
- data/spec/fixtures/vcr_cassettes/Telephony_ConversationsController/_create/by_default/returns_the_conversation_as_JSON.yml +44 -0
- data/spec/fixtures/vcr_cassettes/Telephony_Providers_TwilioProvider/_call/allows_the_phone_to_ring_for_60_seconds.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Telephony_Providers_TwilioProvider/_call/includes_a_status_change_callback_url.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Telephony_Providers_TwilioProvider/_call/places_a_call.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Telephony_Providers_TwilioProvider/_dial_into_conference/allows_the_phone_to_ring_for_15_seconds.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Telephony_Providers_TwilioProvider/_dial_into_conference/places_a_call_to_redirect_the_participant_to_a_conference.yml +42 -0
- data/spec/fixtures/vcr_cassettes/Telephony_Providers_TwilioProvider/_hangup/by_default/hangs_up_the_call.yml +42 -0
- data/spec/fixtures/vcr_cassettes/buying_number_for_an_area_code.yml +42 -0
- data/spec/fixtures/vcr_cassettes/returns_success.yml +90 -0
- data/spec/javascripts/helpers/jasmine-jquery.js +546 -0
- data/spec/javascripts/helpers/mock-ajax.js +207 -0
- data/spec/javascripts/support/jasmine.yml +80 -0
- data/spec/javascripts/telephony/models/agent_spec.js +40 -0
- data/spec/javascripts/telephony/models/conversation_spec.js +515 -0
- data/spec/javascripts/telephony/models/device_spec.js +80 -0
- data/spec/javascripts/telephony/models/transfer_spec.js +22 -0
- data/spec/javascripts/telephony/push_spec.js +427 -0
- data/spec/javascripts/telephony/views/agents_view_spec.js +101 -0
- data/spec/javascripts/telephony/views/application_view_spec.js +74 -0
- data/spec/javascripts/telephony/views/conversation_view_spec.js +626 -0
- data/spec/javascripts/telephony/views/status_view_spec.js +30 -0
- data/spec/javascripts/telephony/views/transfer_view_spec.js +187 -0
- data/spec/javascripts/telephony/views/twilio_client_view_spec.js +77 -0
- data/spec/javascripts/telephony/views/widget_view_spec.js +20 -0
- data/spec/lib/telephony/concerns/controllers/twilio_request_verifier_spec.rb +77 -0
- data/spec/lib/telephony/conversation_data_spec.rb +342 -0
- data/spec/lib/telephony/helper_spec.rb +24 -0
- data/spec/lib/telephony/jobs/agent_offline_spec.rb +37 -0
- data/spec/lib/telephony/jobs/pusher_event_spec.rb +39 -0
- data/spec/lib/telephony/providers/twilio_provider_spec.rb +439 -0
- data/spec/lib/telephony_spec.rb +104 -0
- data/spec/models/telephony/agent_spec.rb +479 -0
- data/spec/models/telephony/agent_state_machine_spec.rb +131 -0
- data/spec/models/telephony/call_center_spec.rb +32 -0
- data/spec/models/telephony/call_spec.rb +597 -0
- data/spec/models/telephony/call_state_machine_spec.rb +472 -0
- data/spec/models/telephony/conversation_spec.rb +751 -0
- data/spec/models/telephony/conversation_state_machine_spec.rb +387 -0
- data/spec/models/telephony/conversations_presenter_spec.rb +40 -0
- data/spec/models/telephony/event_spec.rb +716 -0
- data/spec/models/telephony/inbound_conversation_queue_spec.rb +243 -0
- data/spec/models/telephony/playable_listener_spec.rb +43 -0
- data/spec/models/telephony/pusher_event_publisher_spec.rb +36 -0
- data/spec/models/telephony/recording_spec.rb +6 -0
- data/spec/models/telephony/voicemail_spec.rb +96 -0
- data/spec/observers/telephony/agent_observer_spec.rb +21 -0
- data/spec/observers/telephony/event_observer_spec.rb +19 -0
- data/spec/requests/create_conversation_spec.rb +39 -0
- data/spec/requests/dequeue_call_spec.rb +42 -0
- data/spec/requests/list_conversations_spec.rb +33 -0
- data/spec/requests/presences_spec.rb +51 -0
- data/spec/requests/providers/twilio/calls/child_answered_spec.rb +24 -0
- data/spec/requests/providers/twilio/calls/child_detached_spec.rb +249 -0
- data/spec/requests/providers/twilio/calls/dial_spec.rb +132 -0
- data/spec/requests/providers/twilio/calls/done_spec.rb +69 -0
- data/spec/requests/providers/twilio/calls/join_conference_spec.rb +56 -0
- data/spec/requests/providers/twilio/calls/leave_queue_spec.rb +44 -0
- data/spec/requests/providers/twilio/calls/parent_answered_spec.rb +59 -0
- data/spec/requests/providers/twilio/inbound/connect_dequeued_call_spec.rb +124 -0
- data/spec/requests/providers/twilio/inbound/enqueue_inbound_call_spec.rb +108 -0
- data/spec/requests/providers/twilio/inbound/enqueued_call_wait_music_spec.rb +13 -0
- data/spec/requests/providers/twilio/voicemails/leave_voicemail_spec.rb +78 -0
- data/spec/requests/search_conversations_spec.rb +101 -0
- data/spec/requests/transfer_spec.rb +65 -0
- data/spec/requests/voicemail_api_spec.rb +58 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/matchers/be_complete_hold.rb +20 -0
- data/spec/support/matchers/be_whisper_tone.rb +35 -0
- data/spec/support/matchers/join_conference.rb +23 -0
- data/spec/support/nokogiri.rb +1 -0
- data/spec/support/pusher_helper.rb +24 -0
- data/spec/support/vcr.rb +12 -0
- data/spec/support/webmock.rb +1 -0
- metadata +692 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
|
38
|
+
config.cache_store = :memory_store
|
39
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '2fc864fec4383ebe13d3c7e1bbfde169d46bede201e873eec5cebfc320fa6789174c7558129d0eb4c0d53d44d824f01a6db36eb8abae59652d0b0f260f3a11b6'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Copy this file to config/pusher.yml
|
2
|
+
|
3
|
+
development:
|
4
|
+
# Get these values from
|
5
|
+
# https://app.pusherapp.com/apps/#{your_app_id}/api_access
|
6
|
+
app_id: # Pusher app_id
|
7
|
+
app_key: # Pusher app_key
|
8
|
+
secret: # Pusher secret
|
9
|
+
|
10
|
+
# Real pusher is not used in test, but these fake creds need to be here.
|
11
|
+
test:
|
12
|
+
app_id: xxx
|
13
|
+
app_key: xxx
|
14
|
+
secret: xxx
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Copy this file to config/pusher.yml
|
2
|
+
|
3
|
+
development:
|
4
|
+
# Get these values from
|
5
|
+
# https://app.pusherapp.com/apps/#{your_app_id}/api_access
|
6
|
+
app_id: # Pusher app_id
|
7
|
+
app_key: # Pusher app_key
|
8
|
+
secret: # Pusher secret
|
9
|
+
|
10
|
+
# Real pusher is not used in test, but these fake creds need to be here.
|
11
|
+
test:
|
12
|
+
app_id: xxx
|
13
|
+
app_key: xxx
|
14
|
+
secret: xxx
|
@@ -0,0 +1,57 @@
|
|
1
|
+
development:
|
2
|
+
# Put your twilio account SID and auth token here (found at https://www.twilio.com/user/account):
|
3
|
+
account_sid: # ABC
|
4
|
+
auth_token: # 123
|
5
|
+
|
6
|
+
# A valid phone number associated with your twilio acct
|
7
|
+
# Should be found here: (https://www.twilio.com/user/account/phone-numbers/incoming)
|
8
|
+
# You don't need a leading 1, just a regular 10 digit number
|
9
|
+
outbound_caller_id: # 555-555-5555
|
10
|
+
|
11
|
+
# The host/port/path to which twilio callbacks will be made
|
12
|
+
# Ex: http://example.com:8080/zestphone if your engine is mounted at /zestphone
|
13
|
+
# If you're following the readme, this should be EXTERNAL_HOST/zestphone
|
14
|
+
callback_root: # http://example.com:8080/zestphone
|
15
|
+
|
16
|
+
# The rest of this file can be modified later.
|
17
|
+
|
18
|
+
# When buying numbers for caller_id, this is the url used for inbound calls for your new number
|
19
|
+
voice_url: # http://twimlets.com/forward?PhoneNumber=555-555-5555
|
20
|
+
|
21
|
+
# Used for validating twilio signed requests. Recommended to set
|
22
|
+
# this value to true, to ensure twilio callbacks come from twilio
|
23
|
+
use_twilio_digest_auth: false
|
24
|
+
# With twilio_digest_auth turned on, the domain used to check the signature
|
25
|
+
# if the port is 80, ignore the port; i.e., it should be just "example.com"
|
26
|
+
callback_domain: # example.com:8080
|
27
|
+
# If your "callback_root" is https, this should be true
|
28
|
+
behind_https_proxy: # true
|
29
|
+
|
30
|
+
hold_music: https://api.twilio.com/cowbell.mp3
|
31
|
+
wait_music: http://demo.twilio.com/hellomonkey/monkey.mp3
|
32
|
+
|
33
|
+
#These are the twilio test account credentials
|
34
|
+
test:
|
35
|
+
account_sid: AC8ab65d320fc5ca22b757d937ef013a31
|
36
|
+
auth_token: c63af64b012e06a4fa4bf6223823c834
|
37
|
+
outbound_caller_id: 500-555-0006
|
38
|
+
callback_root: http://example.com:8080/zestphone
|
39
|
+
voice_url:
|
40
|
+
use_twilio_digest_auth:
|
41
|
+
callback_domain:
|
42
|
+
behind_https_proxy:
|
43
|
+
hold_music: https://example.com/hold_music.wav
|
44
|
+
wait_music: https://example.com/wait_music.wav
|
45
|
+
|
46
|
+
|
47
|
+
# If you run cucumbers, you must put real twilio account info here
|
48
|
+
# Also, the callback_root must match the automaton.yml settings
|
49
|
+
cucumber:
|
50
|
+
account_sid:
|
51
|
+
auth_token:
|
52
|
+
outbound_caller_id:
|
53
|
+
callback_root:
|
54
|
+
voice_url:
|
55
|
+
use_twilio_digest_auth:
|
56
|
+
callback_domain:
|
57
|
+
behind_https_proxy:
|
@@ -0,0 +1,57 @@
|
|
1
|
+
development:
|
2
|
+
# Put your twilio account SID and auth token here (found at https://www.twilio.com/user/account):
|
3
|
+
account_sid: # ABC
|
4
|
+
auth_token: # 123
|
5
|
+
|
6
|
+
# A valid phone number associated with your twilio acct
|
7
|
+
# Should be found here: (https://www.twilio.com/user/account/phone-numbers/incoming)
|
8
|
+
# You don't need a leading 1, just a regular 10 digit number
|
9
|
+
outbound_caller_id: # 555-555-5555
|
10
|
+
|
11
|
+
# The host/port/path to which twilio callbacks will be made
|
12
|
+
# Ex: http://example.com:8080/zestphone if your engine is mounted at /zestphone
|
13
|
+
# If you're following the readme, this should be EXTERNAL_HOST/zestphone
|
14
|
+
callback_root: # http://example.com:8080/zestphone
|
15
|
+
|
16
|
+
# The rest of this file can be modified later.
|
17
|
+
|
18
|
+
# When buying numbers for caller_id, this is the url used for inbound calls for your new number
|
19
|
+
voice_url: # http://twimlets.com/forward?PhoneNumber=555-555-5555
|
20
|
+
|
21
|
+
# Used for validating twilio signed requests. Recommended to set
|
22
|
+
# this value to true, to ensure twilio callbacks come from twilio
|
23
|
+
use_twilio_digest_auth: false
|
24
|
+
# With twilio_digest_auth turned on, the domain used to check the signature
|
25
|
+
# if the port is 80, ignore the port; i.e., it should be just "example.com"
|
26
|
+
callback_domain: # example.com:8080
|
27
|
+
# If your "callback_root" is https, this should be true
|
28
|
+
behind_https_proxy: # true
|
29
|
+
|
30
|
+
hold_music: https://api.twilio.com/cowbell.mp3
|
31
|
+
wait_music: http://demo.twilio.com/hellomonkey/monkey.mp3
|
32
|
+
|
33
|
+
#These are the twilio test account credentials
|
34
|
+
test:
|
35
|
+
account_sid: AC8ab65d320fc5ca22b757d937ef013a31
|
36
|
+
auth_token: c63af64b012e06a4fa4bf6223823c834
|
37
|
+
outbound_caller_id: 500-555-0006
|
38
|
+
callback_root: http://example.com:8080/zestphone
|
39
|
+
voice_url:
|
40
|
+
use_twilio_digest_auth:
|
41
|
+
callback_domain:
|
42
|
+
behind_https_proxy:
|
43
|
+
hold_music: https://example.com/hold_music.wav
|
44
|
+
wait_music: https://example.com/wait_music.wav
|
45
|
+
|
46
|
+
|
47
|
+
# If you run cucumbers, you must put real twilio account info here
|
48
|
+
# Also, the callback_root must match the automaton.yml settings
|
49
|
+
cucumber:
|
50
|
+
account_sid:
|
51
|
+
auth_token:
|
52
|
+
outbound_caller_id:
|
53
|
+
callback_root:
|
54
|
+
voice_url:
|
55
|
+
use_twilio_digest_auth:
|
56
|
+
callback_domain:
|
57
|
+
behind_https_proxy:
|
@@ -0,0 +1,122 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20131009204026) do
|
15
|
+
|
16
|
+
create_table "telephony_agents", :force => true do |t|
|
17
|
+
t.integer "csr_id", :null => false
|
18
|
+
t.string "status", :default => "offline"
|
19
|
+
t.datetime "created_at", :null => false
|
20
|
+
t.datetime "updated_at", :null => false
|
21
|
+
t.string "name"
|
22
|
+
t.string "phone_ext"
|
23
|
+
t.string "phone_number"
|
24
|
+
t.string "csr_type"
|
25
|
+
t.integer "timestamp_of_last_presence_event", :limit => 8, :default => 0
|
26
|
+
t.string "phone_type", :default => "phone", :null => false
|
27
|
+
t.string "sip_number"
|
28
|
+
t.string "call_center_name"
|
29
|
+
t.text "transferable_agents"
|
30
|
+
t.boolean "generate_caller_id", :default => false
|
31
|
+
end
|
32
|
+
|
33
|
+
add_index "telephony_agents", ["csr_id"], :name => "index_telephony_agents_on_csr_id"
|
34
|
+
add_index "telephony_agents", ["status"], :name => "index_telephony_agents_on_status"
|
35
|
+
|
36
|
+
create_table "telephony_blacklisted_numbers", :force => true do |t|
|
37
|
+
t.string "number", :limit => 10
|
38
|
+
t.datetime "created_at", :null => false
|
39
|
+
t.datetime "updated_at", :null => false
|
40
|
+
end
|
41
|
+
|
42
|
+
add_index "telephony_blacklisted_numbers", ["number"], :name => "index_telephony_blacklisted_numbers_on_number", :unique => true
|
43
|
+
|
44
|
+
create_table "telephony_calls", :force => true do |t|
|
45
|
+
t.string "sid"
|
46
|
+
t.datetime "created_at", :null => false
|
47
|
+
t.datetime "updated_at", :null => false
|
48
|
+
t.string "state"
|
49
|
+
t.datetime "connected_at"
|
50
|
+
t.datetime "terminated_at"
|
51
|
+
t.integer "conversation_id"
|
52
|
+
t.integer "participant_id"
|
53
|
+
t.string "participant_type"
|
54
|
+
t.string "number"
|
55
|
+
t.integer "agent_id"
|
56
|
+
end
|
57
|
+
|
58
|
+
add_index "telephony_calls", ["agent_id"], :name => "index_telephony_calls_on_agent_id"
|
59
|
+
add_index "telephony_calls", ["conversation_id"], :name => "index_telephony_calls_on_conversation_id"
|
60
|
+
add_index "telephony_calls", ["number"], :name => "index_telephony_calls_on_number"
|
61
|
+
add_index "telephony_calls", ["sid"], :name => "index_telephony_calls_on_sid"
|
62
|
+
|
63
|
+
create_table "telephony_conversation_events", :force => true do |t|
|
64
|
+
t.string "type"
|
65
|
+
t.integer "conversation_id"
|
66
|
+
t.string "conversation_state"
|
67
|
+
t.integer "call_id"
|
68
|
+
t.string "call_state"
|
69
|
+
t.datetime "created_at", :null => false
|
70
|
+
t.datetime "updated_at", :null => false
|
71
|
+
t.string "message_data", :limit => 2048
|
72
|
+
end
|
73
|
+
|
74
|
+
add_index "telephony_conversation_events", ["call_id"], :name => "index_telephony_conversation_events_on_call_id"
|
75
|
+
add_index "telephony_conversation_events", ["conversation_id"], :name => "index_telephony_conversation_events_on_conversation_id"
|
76
|
+
|
77
|
+
create_table "telephony_conversations", :force => true do |t|
|
78
|
+
t.string "state"
|
79
|
+
t.integer "loan_id"
|
80
|
+
t.string "transfer_to"
|
81
|
+
t.string "transfer_type"
|
82
|
+
t.datetime "created_at", :null => false
|
83
|
+
t.datetime "updated_at", :null => false
|
84
|
+
t.string "transfer_ext"
|
85
|
+
t.integer "transfer_id"
|
86
|
+
t.integer "initiator_id"
|
87
|
+
t.string "transfer_status"
|
88
|
+
t.string "caller_id"
|
89
|
+
t.string "number"
|
90
|
+
t.string "conversation_type", :default => "outbound", :null => false
|
91
|
+
t.integer "transferee_id"
|
92
|
+
end
|
93
|
+
|
94
|
+
add_index "telephony_conversations", ["created_at"], :name => "index_telephony_conversations_on_created_at"
|
95
|
+
add_index "telephony_conversations", ["loan_id"], :name => "index_telephony_conversations_on_loan_id"
|
96
|
+
add_index "telephony_conversations", ["state"], :name => "index_telephony_conversations_on_state"
|
97
|
+
|
98
|
+
create_table "telephony_playable_listeners", :force => true do |t|
|
99
|
+
t.integer "playable_id", :null => false
|
100
|
+
t.integer "csr_id", :null => false
|
101
|
+
t.datetime "created_at", :null => false
|
102
|
+
t.datetime "updated_at", :null => false
|
103
|
+
end
|
104
|
+
|
105
|
+
add_index "telephony_playable_listeners", ["csr_id"], :name => "index_telephony_playable_listeners_on_csr_id"
|
106
|
+
add_index "telephony_playable_listeners", ["playable_id"], :name => "index_telephony_playable_listeners_on_playable_id"
|
107
|
+
|
108
|
+
create_table "telephony_playables", :force => true do |t|
|
109
|
+
t.integer "call_id"
|
110
|
+
t.string "url"
|
111
|
+
t.datetime "start_time"
|
112
|
+
t.integer "duration"
|
113
|
+
t.datetime "created_at", :null => false
|
114
|
+
t.datetime "updated_at", :null => false
|
115
|
+
t.string "type", :default => "Telephony::Recording"
|
116
|
+
t.integer "csr_id"
|
117
|
+
end
|
118
|
+
|
119
|
+
add_index "telephony_playables", ["call_id"], :name => "index_telephony_playables_on_call_id"
|
120
|
+
add_index "telephony_playables", ["type"], :name => "index_telephony_recordings_on_type"
|
121
|
+
|
122
|
+
end
|
@@ -0,0 +1,156 @@
|
|
1
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
2
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
3
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
6
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
7
|
+
Connecting to database specified by database.yml
|
8
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
9
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
Started GET "/" for 127.0.0.1 at 2014-02-10 11:40:51 -0700
|
12
|
+
Processing by WidgetHostController#index as HTML
|
13
|
+
Rendered widget_host/index.html.erb within layouts/application (1.2ms)
|
14
|
+
Completed 500 Internal Server Error in 44ms
|
15
|
+
|
16
|
+
ActionView::Template::Error (application.css isn't precompiled):
|
17
|
+
2: <html>
|
18
|
+
3: <head>
|
19
|
+
4: <title>Host Page for Telephony Widget</title>
|
20
|
+
5: <%= stylesheet_link_tag "application", :media => "all" %>
|
21
|
+
6: <%= javascript_include_tag "application" %>
|
22
|
+
7: </head>
|
23
|
+
8:
|
24
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___2079120964545034999_70364618424180'
|
25
|
+
|
26
|
+
|
27
|
+
Started GET "/" for 127.0.0.1 at 2014-02-10 11:40:52 -0700
|
28
|
+
Processing by WidgetHostController#index as HTML
|
29
|
+
Rendered widget_host/index.html.erb within layouts/application (0.5ms)
|
30
|
+
Completed 500 Internal Server Error in 4ms
|
31
|
+
|
32
|
+
ActionView::Template::Error (application.css isn't precompiled):
|
33
|
+
2: <html>
|
34
|
+
3: <head>
|
35
|
+
4: <title>Host Page for Telephony Widget</title>
|
36
|
+
5: <%= stylesheet_link_tag "application", :media => "all" %>
|
37
|
+
6: <%= javascript_include_tag "application" %>
|
38
|
+
7: </head>
|
39
|
+
8:
|
40
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___2079120964545034999_70364618424180'
|
41
|
+
|
42
|
+
|
43
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
44
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
45
|
+
Compiled jquery.js (4ms) (pid 50122)
|
46
|
+
Compiled vendor/jquery.form.js (0ms) (pid 50122)
|
47
|
+
Compiled vendor/underscore.js (0ms) (pid 50122)
|
48
|
+
Compiled vendor/backbone.js (0ms) (pid 50122)
|
49
|
+
Compiled vendor/chosen.jquery.js (0ms) (pid 50122)
|
50
|
+
Compiled lib/event_logger.js (0ms) (pid 50122)
|
51
|
+
Compiled application.js (92ms) (pid 50122)
|
52
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
53
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
54
|
+
Connecting to database specified by database.yml
|
55
|
+
Started GET "/" for 127.0.0.1 at 2014-02-10 11:44:25 -0700
|
56
|
+
Processing by WidgetHostController#index as HTML
|
57
|
+
Rendered widget_host/index.html.erb within layouts/application (1.4ms)
|
58
|
+
Completed 500 Internal Server Error in 28ms
|
59
|
+
|
60
|
+
ActionView::Template::Error (application.css isn't precompiled):
|
61
|
+
2: <html>
|
62
|
+
3: <head>
|
63
|
+
4: <title>Host Page for Telephony Widget</title>
|
64
|
+
5: <%= stylesheet_link_tag "application", :media => "all" %>
|
65
|
+
6: <%= javascript_include_tag "application" %>
|
66
|
+
7: </head>
|
67
|
+
8:
|
68
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___1710882990263077995_70188453955700'
|
69
|
+
|
70
|
+
|
71
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
72
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
73
|
+
Compiled jquery.js (4ms) (pid 10448)
|
74
|
+
Compiled vendor/jquery.form.js (0ms) (pid 10448)
|
75
|
+
Compiled vendor/underscore.js (0ms) (pid 10448)
|
76
|
+
Compiled vendor/backbone.js (0ms) (pid 10448)
|
77
|
+
Compiled vendor/chosen.jquery.js (0ms) (pid 10448)
|
78
|
+
Compiled lib/event_logger.js (0ms) (pid 10448)
|
79
|
+
Compiled application.js (88ms) (pid 10448)
|
80
|
+
Compiled application.css (0ms) (pid 10448)
|
81
|
+
Compiled telephony/vendor/pusher.js (0ms) (pid 10448)
|
82
|
+
Compiled templates/telephony/agents_view.js (0ms) (pid 10448)
|
83
|
+
Compiled templates/telephony/call_queue_view.js (0ms) (pid 10448)
|
84
|
+
Compiled templates/telephony/conversation_buttons_view.js (0ms) (pid 10448)
|
85
|
+
Compiled templates/telephony/conversation_view.js (0ms) (pid 10448)
|
86
|
+
Compiled templates/telephony/status_view.js (0ms) (pid 10448)
|
87
|
+
Compiled templates/telephony/transfer_view.js (0ms) (pid 10448)
|
88
|
+
Compiled templates/telephony/twilio_client_view.js (0ms) (pid 10448)
|
89
|
+
Compiled telephony/namespace.js (0ms) (pid 10448)
|
90
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
91
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
92
|
+
Connecting to database specified by database.yml
|
93
|
+
Started GET "/" for 127.0.0.1 at 2014-02-10 11:47:53 -0700
|
94
|
+
Processing by WidgetHostController#index as HTML
|
95
|
+
Rendered widget_host/index.html.erb within layouts/application (1.2ms)
|
96
|
+
Completed 500 Internal Server Error in 25ms
|
97
|
+
|
98
|
+
ActionView::Template::Error (application.css isn't precompiled):
|
99
|
+
2: <html>
|
100
|
+
3: <head>
|
101
|
+
4: <title>Host Page for Telephony Widget</title>
|
102
|
+
5: <%= stylesheet_link_tag "application", :media => "all" %>
|
103
|
+
6: <%= javascript_include_tag "application" %>
|
104
|
+
7: </head>
|
105
|
+
8:
|
106
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__539454426217874346_70356888896840'
|
107
|
+
|
108
|
+
|
109
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
110
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
111
|
+
Connecting to database specified by database.yml
|
112
|
+
Migrating to BootstrapDb (20130806213053)
|
113
|
+
Migrating to CreateTelephonyBlacklistedNumbers (20131009204026)
|
114
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
115
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
116
|
+
Connecting to database specified by database.yml
|
117
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
118
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
119
|
+
Connecting to database specified by database.yml
|
120
|
+
Migrating to BootstrapDb (20130806213053)
|
121
|
+
Migrating to CreateTelephonyBlacklistedNumbers (20131009204026)
|
122
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
123
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
124
|
+
Connecting to database specified by database.yml
|
125
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
126
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
127
|
+
Connecting to database specified by database.yml
|
128
|
+
Migrating to BootstrapDb (20130806213053)
|
129
|
+
Migrating to CreateTelephonyBlacklistedNumbers (20131009204026)
|
130
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
131
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
132
|
+
Connecting to database specified by database.yml
|
133
|
+
Migrating to BootstrapDb (20130806213053)
|
134
|
+
Migrating to CreateTelephonyBlacklistedNumbers (20131009204026)
|
135
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
136
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
137
|
+
Connecting to database specified by database.yml
|
138
|
+
Telephony will not work. config/pusher.yml does not include config for RAILS_ENV=production
|
139
|
+
config/twilio.yml does not include config for RAILS_ENV=production
|
140
|
+
Connecting to database specified by database.yml
|
141
|
+
Started GET "/" for 127.0.0.1 at 2014-02-10 12:01:21 -0700
|
142
|
+
Processing by WidgetHostController#index as HTML
|
143
|
+
Rendered widget_host/index.html.erb within layouts/application (1.7ms)
|
144
|
+
Completed 500 Internal Server Error in 31ms
|
145
|
+
|
146
|
+
ActionView::Template::Error (application.css isn't precompiled):
|
147
|
+
2: <html>
|
148
|
+
3: <head>
|
149
|
+
4: <title>Host Page for Telephony Widget</title>
|
150
|
+
5: <%= stylesheet_link_tag "application", :media => "all" %>
|
151
|
+
6: <%= javascript_include_tag "application" %>
|
152
|
+
7: </head>
|
153
|
+
8:
|
154
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3995295676463695541_70183609764540'
|
155
|
+
|
156
|
+
|