--[[----------------------------------------------------------------------------

ADOBE CONFIDENTIAL
------------------
Copyright 2023 Adobe
All Rights Reserved.

NOTICE: All information contained herein is, and remains
the property of Adobe and its suppliers, if any. The intellectual
and technical concepts contained herein are proprietary to Adobe
and its suppliers and are protected by all applicable intellectual
property laws, including trade secret and copyright laws.
Dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from Adobe.

------------------------------------------------------------------------------]]

	-- RxLua
local Rx = require 'Rx'
local Observable = Rx.Observable

	-- WF.core.models
local WFModelsUtils = require 'WFModelsUtils'

	-- WF.web
local WFRxHttpClientUtils = require 'WFRxHttpClientUtils'

	-- WF.oz_client.managed_catalog
local WFUserFeedback = require 'WFUserFeedback'

--------------------------------------------------------------------------------

local LrmUtilsModelImp = {}

--==============================================================================

function LrmUtilsModelImp:getUserAgent()

	local userAgent = WFRxHttpClientUtils.getUserAgent()

	return {
		value = Observable.just( userAgent )
	}

end

--------------------------------------------------------------------------------

function LrmUtilsModelImp:postUserFeedback( assetId, autoSavedVersionId, rating, feature, categories, comments, feedbackId, deviceInfo, modelInfo )

	return WFModelsUtils.createModelForFunction( self._wfCatalogStream, 
			WFUserFeedback.postUserFeedback, assetId, autoSavedVersionId, rating, feature, categories, comments, feedbackId, deviceInfo, modelInfo )

	
end

--------------------------------------------------------------------------------

return LrmUtilsModelImp
