The deal marks the company’s valuation at $365 million.