2018-01-08 15:29:34 +00:00
|
|
|
class Sequencer
|
|
|
|
class Unit
|
|
|
|
module Import
|
|
|
|
module Zendesk
|
|
|
|
module Ticket
|
|
|
|
class OwnerID < Sequencer::Unit::Common::Provider::Named
|
|
|
|
|
|
|
|
uses :resource, :user_map
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def owner_id
|
2019-08-14 12:39:32 +00:00
|
|
|
user_map.fetch(resource.assignee_id, 1)
|
2018-01-08 15:29:34 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|