Class: Readiness::Zendesk::ViaTypes
- Defined in:
- lib/support_readiness/zendesk/via_types.rb
Overview
Find a way to dynamically generate list via developer.zendesk.com/documentation/ticketing/reference-guides/via-types/
Defines the class ViaTypes within the module Readiness::Zendesk.
Instance Attribute Summary collapse
Class Method Summary collapse
-
.find_by_name(name) ⇒ Object
Locates a via type within Zendesk by name.
-
.list ⇒ Array
Lists via types.
Instance Method Summary collapse
-
#initialize(object = {}) ⇒ ViaTypes
constructor
Creates a new Via_IDs instance.
Methods inherited from Client
auth_error, bad_request_error, convert_actions, convert_conditions, convert_standard_names_to_ids, convert_ticket_form_agent_conditions, convert_ticket_form_brands, convert_ticket_form_end_user_conditions, convert_ticket_form_names_to_ids, convert_view_names_to_ids, convert_view_restrictions, covert_ticket_form_field_ids, create_package!, erb_renderer, handle_request_error, not_found_error, not_processible_error, put_into_archive, recursively_deflate_directory, timestamp_filename, to_clean_json, to_clean_json_with_key, to_hash, to_nearly_clean_json, to_nearly_clean_json_with_key, to_param_string, write_entries
Constructor Details
#initialize(object = {}) ⇒ ViaTypes
Creates a new Readiness::Zendesk::Via_IDs instance
25 26 27 28 |
# File 'lib/support_readiness/zendesk/via_types.rb', line 25 def initialize(object = {}) @id = object['id'] @name = object['name'] end |
Instance Attribute Details
#id ⇒ Object
14 15 16 |
# File 'lib/support_readiness/zendesk/via_types.rb', line 14 def id @id end |
#name ⇒ Object
14 15 16 |
# File 'lib/support_readiness/zendesk/via_types.rb', line 14 def name @name end |
Class Method Details
.find_by_name(name) ⇒ Object
Locates a via type within Zendesk by name
145 146 147 |
# File 'lib/support_readiness/zendesk/via_types.rb', line 145 def self.find_by_name(name) ViaTypes.list.detect { |v| v.name == name } end |
.list ⇒ Array
Lists via types
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/support_readiness/zendesk/via_types.rb', line 42 def self.list [ { 'id' => 0, 'name' => 'Web form' }, { 'id' => 4, 'name' => 'Email' }, { 'id' => 5, 'name' => 'Web service (API)' }, { 'id' => 8, 'name' => 'Trigger, automation' }, { 'id' => 9, 'name' => 'Linked problem' }, { 'id' => 10, 'name' => 'Group deletion' }, { 'id' => 11, 'name' => 'Change user' }, { 'id' => 12, 'name' => 'Delete user' }, { 'id' => 13, 'name' => 'Change group' }, { 'id' => 14, 'name' => 'Push resource' }, { 'id' => 15, 'name' => 'iPhone' }, { 'id' => 16, 'name' => 'Get Satisfaction' }, { 'id' => 17, 'name' => 'Feedback tab' }, { 'id' => 19, 'name' => 'Merge' }, { 'id' => 20, 'name' => 'Batch' }, { 'id' => 21, 'name' => 'Recover from suspended ticket' }, { 'id' => 22, 'name' => 'Automatic Solution Suggestions' }, { 'id' => 23, 'name' => 'X (formerly Twitter) like' }, { 'id' => 24, 'name' => 'Topic' }, { 'id' => 25, 'name' => 'Merge user' }, { 'id' => 26, 'name' => 'X DM' }, { 'id' => 27, 'name' => 'Closed ticket' }, { 'id' => 28, 'name' => 'LogMeIn Rescue' }, { 'id' => 29, 'name' => 'Chat' }, { 'id' => 30, 'name' => 'X' }, { 'id' => 31, 'name' => 'Ticket sharing' }, { 'id' => 32, 'name' => 'Macro reference' }, { 'id' => 33, 'name' => 'Voicemail' }, { 'id' => 34, 'name' => 'Phone call (incoming)' }, { 'id' => 35, 'name' => 'Phone call (outbound)' }, { 'id' => 36, 'name' => 'Blog' }, { 'id' => 37, 'name' => 'Text message' }, { 'id' => 38, 'name' => 'Facebook post' }, { 'id' => 39, 'name' => 'Import' }, { 'id' => 40, 'name' => 'GitHub' }, { 'id' => 41, 'name' => 'Facebook private message' }, { 'id' => 42, 'name' => 'Lotus' }, { 'id' => 43, 'name' => 'Monitor event' }, { 'id' => 44, 'name' => 'CTI* voicemail' }, { 'id' => 45, 'name' => 'CTI phone call (inbound)' }, { 'id' => 46, 'name' => 'CTI phone call (outbound)' }, { 'id' => 47, 'name' => 'Churned account' }, { 'id' => 48, 'name' => 'Web Widget' }, { 'id' => 49, 'name' => 'Mobile SDK' }, { 'id' => 50, 'name' => 'Help center post' }, { 'id' => 51, 'name' => 'Sample ticket' }, { 'id' => 52, 'name' => 'Sample interactive ticket' }, { 'id' => 53, 'name' => 'Admin setting' }, { 'id' => 54, 'name' => 'Satisfaction prediction' }, { 'id' => 55, 'name' => 'Channel framework' }, { 'id' => 56, 'name' => 'Mobile' }, { 'id' => 57, 'name' => 'SMS text messages (through Talk)' }, { 'id' => 58, 'name' => 'Ticket tagging' }, { 'id' => 59, 'name' => 'Connect IPM' }, { 'id' => 60, 'name' => 'Connect Mail' }, { 'id' => 61, 'name' => 'Connect SMS' }, { 'id' => 62, 'name' => 'Rule revision' }, { 'id' => 63, 'name' => 'Answer Bot for agents' }, { 'id' => 64, 'name' => 'Answer Bot for Slack' }, { 'id' => 65, 'name' => 'Answer Bot for SDK' }, { 'id' => 66, 'name' => 'Answer Bot API' }, { 'id' => 67, 'name' => 'Answer Bot for Web Widget' }, { 'id' => 68, 'name' => 'Symphony' }, { 'id' => 69, 'name' => 'Side conversation' }, { 'id' => 70, 'name' => 'Answer Bot' }, { 'id' => 71, 'name' => 'Omnichannel' }, { 'id' => 72, 'name' => 'LINE' }, { 'id' => 73, 'name' => 'WeChat' }, { 'id' => 74, 'name' => 'WhatsApp' }, { 'id' => 75, 'name' => 'Native messaging' }, { 'id' => 76, 'name' => 'Mailgun' }, { 'id' => 77, 'name' => 'MessageBird SMS' }, { 'id' => 78, 'name' => 'Sunshine Conversations Facebook Messenger' }, { 'id' => 79, 'name' => 'Telegram messenger' }, { 'id' => 80, 'name' => 'Sunshine Conversations Twilio SMS' }, { 'id' => 81, 'name' => 'Viber messenger' }, { 'id' => 82, 'name' => 'Google RCS messaging' }, { 'id' => 83, 'name' => 'Apple Messages for Business' }, { 'id' => 84, 'name' => 'Google Business Messages' }, { 'id' => 85, 'name' => 'KakaoTalk messenger' }, { 'id' => 86, 'name' => 'Instagram Direct Messenger' }, { 'id' => 87, 'name' => 'Sunshine Conversations API' }, { 'id' => 88, 'name' => 'Sunshine Conversations X DM' }, { 'id' => 89, 'name' => 'Offline Chat Message' }, { 'id' => 90, 'name' => 'Chat transcript' }, { 'id' => 91, 'name' => 'Slack Connect Business Messaging' } ].map { |v| ViaTypes.new(v) } end |