var contactServices = (function() {
    this.sendContactEmail = function(formData, callBack) {
        $.ajax({
            type: 'POST',
            data: formData,
            url: siteUrl + 'services/sendContactEmail/',
            dataType: 'json',
            cache: true,
            contentType : false,
            processData : false,
            success: function(data) {
                console.log(data);
                callBack(data);
            },
            error: function(xhr, status, thrownError, error){
                console.log('error');
                console.log(xhr);
                console.log(status);
                console.log(thrownError);
                console.log(error);
            },
            complete: function(data) {
                $('#loading-modal').modal('hide');
            },
            async: true
        });
    }

    return self;
}());