Class: Phone::CallLogPartyMatcher

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/phone/call_log_party_matcher.rb

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Instance Method Details

#process(match_start_time = 1.month.ago) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/services/phone/call_log_party_matcher.rb', line 7

def process(match_start_time = 1.month.ago)
  employee_from_matched = populate_from_party_id_for_employees match_start_time
  employee_to_matched = populate_to_party_id_for_employees match_start_time
  customer_from_matched = populate_from_party_id_for_customers match_start_time
  customer_to_matched = populate_to_party_id_for_customers match_start_time
  Result.new(
    employee_from_matched: employee_from_matched,
    employee_to_matched: employee_to_matched,
    customer_from_matched: customer_from_matched,
    customer_to_matched: customer_to_matched
  )
end