mints 0.0.27 → 0.0.28
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 +4 -4
- data/Gemfile +2 -1
- data/lib/client.rb +4 -4
- data/lib/contact.rb +60 -61
- data/lib/errors.rb +1 -1
- data/lib/generators/mints_config.yml.erb +0 -2
- data/lib/generators/mints_link.rb +3 -3
- data/lib/mints/helpers/mints_helper.rb +2 -2
- data/lib/pub.rb +55 -55
- data/lib/user/config/api_keys.rb +7 -7
- data/lib/user/config/appointments.rb +16 -16
- data/lib/user/config/attribute_groups.rb +10 -10
- data/lib/user/config/attributes.rb +10 -10
- data/lib/user/config/calendars.rb +9 -9
- data/lib/user/config/config.rb +7 -7
- data/lib/user/config/importers.rb +15 -15
- data/lib/user/config/public_folders.rb +11 -11
- data/lib/user/config/relationships.rb +11 -11
- data/lib/user/config/roles.rb +9 -9
- data/lib/user/config/seeds.rb +5 -5
- data/lib/user/config/system_settings.rb +5 -5
- data/lib/user/config/tags.rb +5 -5
- data/lib/user/config/taxonomies.rb +15 -15
- data/lib/user/config/teams.rb +67 -68
- data/lib/user/config/users.rb +70 -71
- data/lib/user/contacts/contacts.rb +19 -20
- data/lib/user/content/assets.rb +273 -278
- data/lib/user/content/content.rb +48 -48
- data/lib/user/content/content_instances.rb +136 -138
- data/lib/user/content/content_templates.rb +103 -103
- data/lib/user/content/conversations.rb +193 -193
- data/lib/user/content/dam.rb +83 -80
- data/lib/user/content/forms.rb +229 -233
- data/lib/user/content/message_templates.rb +152 -151
- data/lib/user/content/messages.rb +87 -87
- data/lib/user/content/pages.rb +82 -82
- data/lib/user/content/stories.rb +101 -101
- data/lib/user/content/story_templates.rb +88 -88
- data/lib/user/content/story_versions.rb +115 -117
- data/lib/user/crm/companies.rb +103 -105
- data/lib/user/crm/contacts.rb +285 -292
- data/lib/user/crm/crm.rb +19 -19
- data/lib/user/crm/deals.rb +103 -103
- data/lib/user/crm/favorites.rb +14 -13
- data/lib/user/crm/segments.rb +121 -123
- data/lib/user/crm/users.rb +20 -20
- data/lib/user/crm/workflow_step_objects.rb +84 -84
- data/lib/user/crm/workflow_steps.rb +45 -45
- data/lib/user/crm/workflows.rb +65 -65
- data/lib/user/ecommerce/ecommerce.rb +27 -27
- data/lib/user/ecommerce/item_prices.rb +82 -81
- data/lib/user/ecommerce/locations.rb +160 -160
- data/lib/user/ecommerce/order_items_groups.rb +107 -106
- data/lib/user/ecommerce/order_statuses.rb +24 -24
- data/lib/user/ecommerce/orders.rb +250 -246
- data/lib/user/ecommerce/price_lists.rb +68 -68
- data/lib/user/ecommerce/product_templates.rb +99 -99
- data/lib/user/ecommerce/product_variations.rb +122 -120
- data/lib/user/ecommerce/products.rb +160 -159
- data/lib/user/ecommerce/skus.rb +85 -85
- data/lib/user/ecommerce/taxes.rb +79 -79
- data/lib/user/ecommerce/variant_options.rb +66 -66
- data/lib/user/ecommerce/variant_values.rb +69 -69
- data/lib/user/helpers/helpers.rb +102 -101
- data/lib/user/helpers/object_activities.rb +78 -78
- data/lib/user/helpers/object_folders.rb +76 -76
- data/lib/user/helpers/user_folders.rb +77 -77
- data/lib/user/marketing/marketing.rb +114 -113
- data/lib/user/profile/profile.rb +94 -103
- data/lib/user.rb +3 -3
- metadata +33 -33
data/lib/user/crm/contacts.rb
CHANGED
@@ -1,312 +1,305 @@
|
|
1
1
|
module Contacts
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
##
|
3
|
+
# == Contacts
|
4
|
+
#
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
##
|
16
|
-
# === Get online activity.
|
17
|
-
# Get online activity of a contact.
|
18
|
-
#
|
19
|
-
# ==== Parameters
|
20
|
-
# id:: (Integer) -- Contact id.
|
21
|
-
#
|
22
|
-
# ==== Example
|
23
|
-
# @data = @mints_user.get_online_activity(5)
|
24
|
-
def get_online_activity(id)
|
25
|
-
@client.raw("get", "/crm/contacts/#{id}/online-activity")
|
26
|
-
end
|
6
|
+
##
|
7
|
+
# === Get contacts support data.
|
8
|
+
#
|
9
|
+
# ==== Example
|
10
|
+
# @data = @mints_user.get_contacts_support_data
|
11
|
+
def get_contacts_support_data
|
12
|
+
@client.raw('get', '/crm/contacts/support-data')
|
13
|
+
end
|
27
14
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
# options = {
|
41
|
-
# "sort": "id",
|
42
|
-
# "fields[contacts]": "id, email"
|
43
|
-
# }
|
44
|
-
# @data = @mints_user.get_contacts(options)
|
45
|
-
#
|
46
|
-
# ==== Third Example
|
47
|
-
# options = {
|
48
|
-
# "sort": "id",
|
49
|
-
# "fields[contacts]": "id, email"
|
50
|
-
# }
|
51
|
-
# @data = @mints_user.get_contacts(options, true)
|
52
|
-
def get_contacts(options = nil, use_post = true)
|
53
|
-
return get_query_results("/crm/contacts", options, use_post)
|
54
|
-
end
|
15
|
+
##
|
16
|
+
# === Get online activity.
|
17
|
+
# Get online activity of a contact.
|
18
|
+
#
|
19
|
+
# ==== Parameters
|
20
|
+
# id:: (Integer) -- Contact id.
|
21
|
+
#
|
22
|
+
# ==== Example
|
23
|
+
# @data = @mints_user.get_online_activity(5)
|
24
|
+
def get_online_activity(id)
|
25
|
+
@client.raw('get', "/crm/contacts/#{id}/online-activity")
|
26
|
+
end
|
55
27
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
28
|
+
##
|
29
|
+
# === Get contacts.
|
30
|
+
# Get a collection of contacts.
|
31
|
+
#
|
32
|
+
# ==== Parameters
|
33
|
+
# options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
|
34
|
+
# use_post:: (Boolean) -- Variable to determine if the request is by 'post' or 'get' functions.
|
35
|
+
#
|
36
|
+
# ==== First Example
|
37
|
+
# @data = @mints_user.get_contacts
|
38
|
+
#
|
39
|
+
# ==== Second Example
|
40
|
+
# options = {
|
41
|
+
# sort: 'id',
|
42
|
+
# 'fields[contacts]': 'id, email'
|
43
|
+
# }
|
44
|
+
# @data = @mints_user.get_contacts(options)
|
45
|
+
#
|
46
|
+
# ==== Third Example
|
47
|
+
# options = {
|
48
|
+
# sort: 'id',
|
49
|
+
# 'fields[contacts]': 'id, email'
|
50
|
+
# }
|
51
|
+
# @data = @mints_user.get_contacts(options, true)
|
52
|
+
def get_contacts(options = nil, use_post = true)
|
53
|
+
get_query_results('/crm/contacts', options, use_post)
|
54
|
+
end
|
76
55
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
56
|
+
##
|
57
|
+
# === Get contact.
|
58
|
+
# Get a contact data.
|
59
|
+
#
|
60
|
+
# ==== Parameters
|
61
|
+
# id:: (Integer) -- Contact id.
|
62
|
+
# options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
|
63
|
+
#
|
64
|
+
# ==== First Example
|
65
|
+
# @data = @mints_user.get_contact(5)
|
66
|
+
#
|
67
|
+
# ==== Second Example
|
68
|
+
# options = {
|
69
|
+
# sort: 'id',
|
70
|
+
# 'fields[contacts]': 'id, email'
|
71
|
+
# }
|
72
|
+
# @data = @mints_user.get_contact(5, options)
|
73
|
+
def get_contact(id, options = nil)
|
74
|
+
@client.raw('get', "/crm/contacts/#{id}", options)
|
75
|
+
end
|
95
76
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
77
|
+
##
|
78
|
+
# === Create contact.
|
79
|
+
# Create a contact with data.
|
80
|
+
#
|
81
|
+
# ==== Parameters
|
82
|
+
# data:: (Hash) -- Data to be submitted.
|
83
|
+
#
|
84
|
+
# ==== Example
|
85
|
+
# data = {
|
86
|
+
# email: 'email@example.com',
|
87
|
+
# given_name: 'Given Name',
|
88
|
+
# last_name: 'Last Name',
|
89
|
+
# password: '123456'
|
90
|
+
# }
|
91
|
+
# @data = @mints_user.create_contact(data)
|
92
|
+
def create_contact(data, options = nil)
|
93
|
+
@client.raw('post', '/crm/contacts', options, data_transform(data))
|
94
|
+
end
|
113
95
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
96
|
+
##
|
97
|
+
# === Update contact.
|
98
|
+
# Update contact data.
|
99
|
+
#
|
100
|
+
# ==== Parameters
|
101
|
+
# id:: (Integer) -- Contact id.
|
102
|
+
# data:: (Hash) -- Data to be submitted.
|
103
|
+
#
|
104
|
+
# ==== Example
|
105
|
+
# data = {
|
106
|
+
# email: 'email_modified@example.com',
|
107
|
+
# company_id: 3
|
108
|
+
# }
|
109
|
+
# @data = @mints_user.update_contact(65, data)
|
110
|
+
def update_contact(id, data, options = nil)
|
111
|
+
@client.raw('put', "/crm/contacts/#{id}", options, data_transform(data))
|
112
|
+
end
|
126
113
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
# @data = @mints_user.create_contact_deal(5, data.to_json)
|
140
|
-
def create_contact_deal(contact_id, data)
|
141
|
-
@client.raw("post", "/crm/contacts/#{contact_id}/deals", nil, data)
|
142
|
-
end
|
114
|
+
##
|
115
|
+
# === Get contact deals.
|
116
|
+
# Get a collection of deals of a contact.
|
117
|
+
#
|
118
|
+
# ==== Parameters
|
119
|
+
# contact_id:: (Integer) -- Contact id.
|
120
|
+
#
|
121
|
+
# ==== Example
|
122
|
+
# @data = @mints_user.get_contact_deal(5)
|
123
|
+
def get_contact_deal(contact_id)
|
124
|
+
@client.raw('get', "/crm/contacts/#{contact_id}/deals")
|
125
|
+
end
|
143
126
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
127
|
+
##
|
128
|
+
# === Create contact deal.
|
129
|
+
# Create a contact deal with data.
|
130
|
+
#
|
131
|
+
# ==== Parameters
|
132
|
+
# contact_id:: (Integer) -- Contact id.
|
133
|
+
# data:: (Hash) -- Data to be submitted.
|
134
|
+
#
|
135
|
+
# ==== Example
|
136
|
+
# data = { deal_id: 6 }
|
137
|
+
# @data = @mints_user.create_contact_deal(5, data.to_json)
|
138
|
+
def create_contact_deal(contact_id, data)
|
139
|
+
@client.raw('post', "/crm/contacts/#{contact_id}/deals", nil, data)
|
140
|
+
end
|
157
141
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
end
|
142
|
+
##
|
143
|
+
# === Delete contact deal.
|
144
|
+
# Delete a contact deal with data.
|
145
|
+
#
|
146
|
+
# ==== Parameters
|
147
|
+
# contact_id:: (Integer) -- Contact id.
|
148
|
+
# deal_id:: (Integer) -- Deal id.
|
149
|
+
#
|
150
|
+
# ==== Example
|
151
|
+
# @data = @mints_user.delete_contact_deal(5, 100)
|
152
|
+
def delete_contact_deal(contact_id, deal_id)
|
153
|
+
@client.raw('delete', "/crm/contacts/#{contact_id}/deals/#{deal_id}")
|
154
|
+
end
|
172
155
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
@client.raw("post", "/crm/contacts/#{contact_id}/users", nil, data)
|
188
|
-
end
|
156
|
+
##
|
157
|
+
# === Get contact user.
|
158
|
+
# Get user data of a contact.
|
159
|
+
#
|
160
|
+
# ==== Parameters
|
161
|
+
# TODO: Replace Resource collection options url
|
162
|
+
# contact_id:: (Integer) -- Contact id.
|
163
|
+
# options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
|
164
|
+
#
|
165
|
+
# ==== Example
|
166
|
+
# @data = @mints_user.get_contact_user(66)
|
167
|
+
def get_contact_user(contact_id)
|
168
|
+
@client.raw('get', "/crm/contacts/#{contact_id}/users")
|
169
|
+
end
|
189
170
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
171
|
+
##
|
172
|
+
# === Create contact user.
|
173
|
+
# Relate a contact with an user.
|
174
|
+
#
|
175
|
+
# ==== Parameters
|
176
|
+
# contact_id:: (Integer) -- Contact id.
|
177
|
+
# data:: (Hash) -- Data to be submitted.
|
178
|
+
#
|
179
|
+
# ==== Example
|
180
|
+
# data = { user_id: 9 }
|
181
|
+
# @data = @mints_user.create_contact_user(66, data.to_json)
|
182
|
+
def create_contact_user(contact_id, data)
|
183
|
+
@client.raw('post', "/crm/contacts/#{contact_id}/users", nil, data)
|
184
|
+
end
|
203
185
|
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
186
|
+
##
|
187
|
+
# === Delete contact user.
|
188
|
+
# Delete a relationship between a contact and an user.
|
189
|
+
#
|
190
|
+
# ==== Parameters
|
191
|
+
# contact_id:: (Integer) -- Contact id.
|
192
|
+
# id:: (Integer) -- User id.
|
193
|
+
#
|
194
|
+
# ==== Example
|
195
|
+
# @data = @mints_user.delete_contact_user(153, 9)
|
196
|
+
def delete_contact_user(contact_id, id)
|
197
|
+
@client.raw('delete', "/crm/contacts/#{contact_id}/users/#{id}")
|
198
|
+
end
|
216
199
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
200
|
+
##
|
201
|
+
# === Get contact segments.
|
202
|
+
# Get segments of a contact.
|
203
|
+
#
|
204
|
+
# ==== Parameters
|
205
|
+
# contact_id:: (Integer) -- Contact id.
|
206
|
+
#
|
207
|
+
# ==== Example
|
208
|
+
# @data = @mints_user.get_contact_segments(1)
|
209
|
+
def get_contact_segments(contact_id)
|
210
|
+
@client.raw('get', "/crm/contacts/#{contact_id}/segments")
|
211
|
+
end
|
229
212
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
213
|
+
##
|
214
|
+
# === Get contact submissions.
|
215
|
+
# Get submissions of a contact.
|
216
|
+
#
|
217
|
+
# ==== Parameters
|
218
|
+
# contact_id:: (Integer) -- Contact id.
|
219
|
+
#
|
220
|
+
# ==== Example
|
221
|
+
# @data = @mints_user.get_contact_submissions(146)
|
222
|
+
def get_contact_submissions(contact_id)
|
223
|
+
@client.raw('get', "/crm/contacts/#{contact_id}/submissions")
|
224
|
+
end
|
242
225
|
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
226
|
+
##
|
227
|
+
# === Get contact tags.
|
228
|
+
# Get tags of a contact.
|
229
|
+
#
|
230
|
+
# ==== Parameters
|
231
|
+
# contact_id:: (Integer) -- Contact id.
|
232
|
+
#
|
233
|
+
# ==== Example
|
234
|
+
# @data = @mints_user.get_contact_tags(1)
|
235
|
+
def get_contact_tags(contact_id)
|
236
|
+
@client.raw('get', "/crm/contacts/#{contact_id}/tags")
|
237
|
+
end
|
255
238
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
# @data = @mints_user.merge_contacts(151, data)
|
269
|
-
def merge_contacts(id, data)
|
270
|
-
@client.raw("post", "/crm/contacts/#{id}/merge", nil, data_transform(data))
|
271
|
-
end
|
239
|
+
##
|
240
|
+
# === Get contact magic links.
|
241
|
+
# Get magic links of a contact.
|
242
|
+
#
|
243
|
+
# ==== Parameters
|
244
|
+
# contact_id:: (Integer) -- Contact id.
|
245
|
+
#
|
246
|
+
# ==== Example
|
247
|
+
# @data = @mints_user.get_contact_magic_links(150)
|
248
|
+
def get_contact_magic_links(contact_id)
|
249
|
+
@client.raw('get', "/crm/contacts/#{contact_id}/magic-links")
|
250
|
+
end
|
272
251
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
# }
|
288
|
-
# @data = @mints_user.send_magic_links(data)
|
289
|
-
def send_magic_links(data)
|
290
|
-
@client.raw("post", "/crm/contacts/send-magic-link", nil, data_transform(data))
|
291
|
-
end
|
252
|
+
##
|
253
|
+
# === Create contact merge.
|
254
|
+
# Merge contacts.
|
255
|
+
#
|
256
|
+
# ==== Parameters
|
257
|
+
# id:: (Integer) -- Contact id.
|
258
|
+
# data:: (Hash) -- Data to be submitted. It contains ids to be merged.
|
259
|
+
#
|
260
|
+
# ==== Example
|
261
|
+
# data = { mergeContactIds: [152] }
|
262
|
+
# @data = @mints_user.merge_contacts(151, data)
|
263
|
+
def merge_contacts(id, data)
|
264
|
+
@client.raw('post', "/crm/contacts/#{id}/merge", nil, data_transform(data))
|
265
|
+
end
|
292
266
|
|
293
|
-
|
294
|
-
|
295
|
-
|
267
|
+
##
|
268
|
+
# === Send magic links.
|
269
|
+
# Send magic links to contacts.
|
270
|
+
#
|
271
|
+
# ==== Parameters
|
272
|
+
# data:: (Hash) -- Data to be submitted.
|
273
|
+
#
|
274
|
+
# ==== Example
|
275
|
+
# data = {
|
276
|
+
# contacts: %w[email_1@example.com email_2@example.com email_3@example.com],
|
277
|
+
# templateId: 2,
|
278
|
+
# redirectUrl: "",
|
279
|
+
# lifeTime: 1440,
|
280
|
+
# maxVisits: 3
|
281
|
+
# }
|
282
|
+
# @data = @mints_user.send_magic_links(data)
|
283
|
+
def send_magic_links(data)
|
284
|
+
@client.raw('post', '/crm/contacts/send-magic-link', nil, data_transform(data))
|
285
|
+
end
|
296
286
|
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
287
|
+
##
|
288
|
+
# == Contacts Bulk Actions
|
289
|
+
#
|
290
|
+
|
291
|
+
##
|
292
|
+
# === Delete contacts.
|
293
|
+
# Delete different contacts.
|
294
|
+
#
|
295
|
+
# ==== Parameters
|
296
|
+
# data:: (Hash) -- Data to be submitted.
|
297
|
+
#
|
298
|
+
# ==== Example
|
299
|
+
# data = { ids": %w[67 68 69] }
|
300
|
+
# @data = @mints_user.delete_contacts(data)
|
301
|
+
def delete_contacts(data)
|
302
|
+
# TODO: ContactController.delete need a success output
|
303
|
+
@client.raw('delete', '/crm/contacts/delete', nil, data_transform(data))
|
304
|
+
end
|
305
|
+
end
|
data/lib/user/crm/crm.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
require_relative './companies
|
2
|
-
require_relative './contacts
|
3
|
-
require_relative './deals
|
4
|
-
require_relative './favorites
|
5
|
-
require_relative './segments
|
6
|
-
require_relative './users
|
7
|
-
require_relative './workflow_step_objects
|
8
|
-
require_relative './workflow_steps
|
9
|
-
require_relative './workflows
|
1
|
+
require_relative './companies'
|
2
|
+
require_relative './contacts'
|
3
|
+
require_relative './deals'
|
4
|
+
require_relative './favorites'
|
5
|
+
require_relative './segments'
|
6
|
+
require_relative './users'
|
7
|
+
require_relative './workflow_step_objects'
|
8
|
+
require_relative './workflow_steps'
|
9
|
+
require_relative './workflows'
|
10
10
|
|
11
11
|
module CRM
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
12
|
+
include Companies
|
13
|
+
include Contacts
|
14
|
+
include Deals
|
15
|
+
include Favorites
|
16
|
+
include Segments
|
17
|
+
include Users
|
18
|
+
include WorkflowStepObjects
|
19
|
+
include WorkFlowSteps
|
20
|
+
include Workflows
|
21
|
+
end
|