File: /var/www/html/ielts-store/wp-content/plugins/automatewoo/admin/assets/js/min/sms-test.min.js
jQuery((function(t){AutomateWoo.SMS_Tester={$fields:{from:t("#automatewoo_twilio_from"),auth_id:t("#automatewoo_twilio_auth_id"),auth_token:t("#automatewoo_twilio_auth_token"),test_recipient:t("#automatewoo-sms-test-recipient"),test_message:t("#automatewoo-sms-test-message")},$button:t("#automatewoo-sms-test-twilio"),init:function(){AutomateWoo.SMS_Tester.$button.on("click",(function(){AutomateWoo.SMS_Tester.send_test()}))},send_test:function(){var e=AutomateWoo.SMS_Tester.$button.val(),o=AutomateWoo.SMS_Tester.$button.data("loading-text");AutomateWoo.SMS_Tester.$button.val(o).addClass("disabled").trigger("blur"),AutomateWoo.notices.clear_all(),t.ajax({method:"POST",url:ajaxurl,data:{action:"aw_test_sms",from:AutomateWoo.SMS_Tester.$fields.from.val(),auth_id:AutomateWoo.SMS_Tester.$fields.auth_id.val(),auth_token:AutomateWoo.SMS_Tester.$fields.auth_token.val(),test_message:AutomateWoo.SMS_Tester.$fields.test_message.val(),test_recipient:AutomateWoo.SMS_Tester.$fields.test_recipient.val()}}).done((function(o){console.log(o),o.success?AutomateWoo.notices.success(o.data.message,t(".automatewoo-sms-test-container")):AutomateWoo.notices.error(o.data.message,t(".automatewoo-sms-test-container")),AutomateWoo.SMS_Tester.$button.val(e).removeClass("disabled")})).fail((function(t){console.log(t)}))}},AutomateWoo.SMS_Tester.init()}));
//# sourceMappingURL=sms-test.min.js.map