Amazon.com said it is closing its warehouses in Quebec and returning to a third-party delivery model, a move which the province's labor representatives called an attack on employees and the union.