lib/imperituroard.rb in imperituroard-1.1.9 vs lib/imperituroard.rb in imperituroard-1.1.10
- old
+ new
@@ -309,23 +309,25 @@
:sk_password,
:mhub_connector,
:internal_func,
:dabrab_connecter,
:static_callback,
- :crm_connector
+ :crm_connector,
+ :log_level
- def initialize(sk_url_simple, sk_login, sk_password, telegram_api_url, telegram_chat_id, sk_url_broadcast, static_callback, crm_callback_url, crm_login, crm_password, sms_alphaname)
+ def initialize(sk_url_simple, sk_login, sk_password, telegram_api_url, telegram_chat_id, sk_url_broadcast, static_callback, crm_callback_url, crm_login, crm_password, sms_alphaname, log_level)
@sk_url = sk_url_simple
@sk_login = sk_login
@sk_password = sk_password
+ @log_level = log_level
@internal_func = InternalFunc.new
- @mhub_connector = Sksk_2.new(sk_url_simple, sk_login, sk_password, sk_url_broadcast, telegram_api_url, telegram_chat_id)
+ @mhub_connector = Sksk_2.new(sk_url_simple, sk_login, sk_password, sk_url_broadcast, telegram_api_url, telegram_chat_id, log_level)
@internal_func = InternalFunc.new
@dabrab_connecter = Dabrab.new
@static_callback = static_callback
- @crm_connector = Crm_2.new(crm_callback_url, crm_login, crm_password, telegram_api_url, telegram_chat_id)
- @mhub_connector = MhubFunctions_2.new(sk_url_simple, sk_login, sk_password, telegram_api_url, telegram_chat_id, sk_url_broadcast, static_callback, crm_callback_url, crm_login, crm_password, sms_alphaname)
+ @crm_connector = Crm_2.new(crm_callback_url, crm_login, crm_password, telegram_api_url, telegram_chat_id, log_level)
+ @mhub_connector = MhubFunctions_2.new(sk_url_simple, sk_login, sk_password, telegram_api_url, telegram_chat_id, sk_url_broadcast, static_callback, crm_callback_url, crm_login, crm_password, sms_alphaname, log_level)
end
#{"destinations"=>[{"to"=>{"phoneNumber"=>"375297116638", "emailAddress"=>nil}}],
# "scenarioKey"=>"1", "viber"=>nil, "sms"=>{"text"=>"карточка готова"},
# "sendAt"=>"2019-08-15T08:40:00.000", "notifyUrl"=>"https://bpmonline.bankdabrabyt.by:444/0/ServiceModel/ScGetReports.svc/GetReports",
@@ -335,9 +337,13 @@
# "notifyUrl"=>"https://bpmonline.bankdabrabyt.by:444/0/ServiceModel/ScGetReports.svc/GetReports",
# "notifyContentType"=>"application/json"}}
def get_send_message(params, ip_src, ip_real, ip_vip)
mhub_connector.get_send_message_2(params, ip_src, ip_real, ip_vip)
+ end
+
+ def get_send_message_mass(params, ip_src, ip_real, ip_vip)
+ mhub_connector.get_send_message_mass_2(params, ip_src, ip_real, ip_vip)
end
def recieve_delivery_report(params, ip_src, ip_real, ip_vip)
mhub_connector.rec_deliv_report_2(params, ip_src, ip_real, ip_vip)
end
\ No newline at end of file