class Mhub_2

Attributes

crm_connector[RW]
dabrab_connecter[RW]
internal_func[RW]
log_level[RW]
mhub_connector[RW]
sk_login[RW]
sk_password[RW]
sk_url[RW]
static_callback[RW]

Public Class Methods

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="error") click to toggle source
# File lib/imperituroard.rb, line 318
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="error")
  @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, log_level)
  @internal_func = InternalFunc.new
  @dabrab_connecter = Dabrab.new(log_level)
  @static_callback = static_callback
  @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

Public Instance Methods

get_send_message(params, ip_src, ip_real, ip_vip) click to toggle source

{“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",
"notifyContentType"=>"application/json", "controller"=>"bank", "action"=>"api",
"bank"=>{"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",
"notifyContentType"=>"application/json"}}
# File lib/imperituroard.rb, line 341
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
get_send_message_mass(params, ip_src, ip_real, ip_vip, slice_number=100, time_pause_minutes=5, viberttl=60, params_manual_set=0, smsttl=60) click to toggle source
# File lib/imperituroard.rb, line 345
def get_send_message_mass(params, ip_src, ip_real, ip_vip, slice_number=100, time_pause_minutes=5, viberttl=60, params_manual_set=0, smsttl=60)
  mhub_connector.get_send_message_mass_2(params, ip_src, ip_real, ip_vip, slice_number, time_pause_minutes, viberttl, params_manual_set, smsttl)
end
recieve_delivery_report(params, ip_src, ip_real, ip_vip, crm_slice_num) click to toggle source
# File lib/imperituroard.rb, line 349
def recieve_delivery_report(params, ip_src, ip_real, ip_vip, crm_slice_num)
  mhub_connector.rec_deliv_report_2(params, ip_src, ip_real, ip_vip, crm_slice_num)
end