$scope.syncProducts = function () {
            var success;

            success = function (task) {
                var message = translate("Product sync has been initiated in the background.");