r.result);
				if (items && items instanceof Array) {
					SETTER('loading', 'show');
					AJAX('POST [url]api/products/import/', items, function(response) {
						SETTER('loading', 'hide', 5000);
						SETTER('snackbar', 'success', '@(Products import has been started. <b>Please wait</b>.)');
						setTimeout(ctrl.refresh, 5000);
					});
				}
				reader = null;
			};
			reader.readAsText(this.files[0]);
			this.value = '';
		});

		ctrl.destroy = function() {
			$('#productsimportjson').remove();
			SETTE