ishapi 0.1.8.277 → 0.1.8.279

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
  SHA256:
3
- metadata.gz: e2788aed203d7bb614f39e9447a05268298a5b5ab414ff733d702303c0a8bedf
4
- data.tar.gz: c9366091480ea57b6146bd71986a39a63d748a0a7b9d69cf5eb136da3cc3375f
3
+ metadata.gz: 8ce8f0bb38995cbae2386ac80cca5348d7b6f66a0157c59456d2ed78917b8e2a
4
+ data.tar.gz: 66507dd1f36f90a17a07eaadd4471b12320802807b837f42fc055240616d6925
5
5
  SHA512:
6
- metadata.gz: 9158bc6e3cd655d2d321f6a15f3c4e139e0813d6844925a4efc84b9972c415eddb7e04b4a4c02b45b2d7e6d9a98dad8a6233b9b52b0663488860d86adbaf9dac
7
- data.tar.gz: ddebc04ffa40287d392f30ab7bad9caaa36d050b409c611e4680b43f8b28e26d404993a12f7e3c60a813f787bdf2917bad57cc462ec4999eb9152d7f9efa30e4
6
+ metadata.gz: 4ae954c9597a3618101cca2d7ba450355093d3f89bd6e3de59b8508720fbb616028a755a25633a2734e9a751df7afb1c10e1e22909277b5f27e0d9f42629ad57
7
+ data.tar.gz: f5fa92e6e1e5befe590c3d08174b5420233b6aeedf40d91c8df3f38c50d8ea11ffacf64a095d5f9f553658625ca1ac51c51dc7363363ab2204b9586941a88763
@@ -0,0 +1,18 @@
1
+
2
+ require_dependency "ishapi/application_controller"
3
+ module Ishapi
4
+ class LeadsController < ApplicationController
5
+
6
+ before_action :check_jwt
7
+
8
+ def index
9
+ authorize! :leads_index, ::Ishapi
10
+ out = Lead.all.page( params[:leads_page] ).per( @current_profile.per_page )
11
+ render json: {
12
+ items: out,
13
+ }
14
+ end
15
+
16
+ end
17
+ end
18
+
@@ -57,9 +57,9 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
57
57
  return
58
58
  end
59
59
  client = Aws::S3::Client.new({
60
- region: ::S3_CREDENTIALS[:region],
61
- access_key_id: ::S3_CREDENTIALS[:access_key_id],
62
- secret_access_key: ::S3_CREDENTIALS[:secret_access_key] })
60
+ region: ::S3_CREDENTIALS[:region_ses],
61
+ access_key_id: ::S3_CREDENTIALS[:access_key_id_ses],
62
+ secret_access_key: ::S3_CREDENTIALS[:secret_access_key_ses] })
63
63
 
64
64
  _mail = client.get_object( bucket: ::S3_CREDENTIALS[:bucket_ses], key: stub.object_key ).body.read
65
65
  the_mail = Mail.new(_mail)
data/config/routes.rb CHANGED
@@ -24,6 +24,7 @@ Ishapi::Engine.routes.draw do
24
24
  post 'invoices/search', :to => 'invoices#search'
25
25
 
26
26
  # L
27
+ get 'leads', to: 'leads#index'
27
28
  get 'leadsets', to: 'leadsets#index'
28
29
  delete 'leadsets', to: 'leadsets#destroy'
29
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.277
4
+ version: 0.1.8.279
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-05 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -215,6 +215,7 @@ files:
215
215
  - app/controllers/ishapi/galleries_controller.rb
216
216
  - app/controllers/ishapi/gameui_controller.rb
217
217
  - app/controllers/ishapi/invoices_controller.rb
218
+ - app/controllers/ishapi/leads_controller.rb
218
219
  - app/controllers/ishapi/leadsets_controller.rb
219
220
  - app/controllers/ishapi/locations_controller.rb
220
221
  - app/controllers/ishapi/maps_controller.rb