File: /var/www/html/ielts-store/wp-content/plugins/automatewoo/admin/assets/js/min/sms-test.min.js.map
{"version":3,"sources":["sms-test.js"],"names":["jQuery","$","AutomateWoo","SMS_Tester","$fields","from","auth_id","auth_token","test_recipient","test_message","$button","init","on","send_test","text_initial","val","text_loading","data","addClass","trigger","notices","clear_all","ajax","method","url","ajaxurl","action","done","response","console","log","success","message","error","removeClass","fail"],"mappings":"AAIAA,QAAO,SAASC,GAEfC,YAAYC,WAAa,CAExBC,QAAS,CACRC,KAAMJ,EAAG,4BACTK,QAASL,EAAG,+BACZM,WAAYN,EAAG,kCACfO,eAAgBP,EAAG,mCACnBQ,aAAcR,EAAG,kCAGlBS,QAAST,EAAG,gCAGZU,KAAM,WAELT,YAAYC,WAAWO,QAAQE,GAAI,SAAS,WAC3CV,YAAYC,WAAWU,gBAMzBA,UAAW,WAEV,IAAIC,EAAeZ,YAAYC,WAAWO,QAAQK,MACjDC,EAAed,YAAYC,WAAWO,QAAQO,KAAK,gBAEpDf,YAAYC,WAAWO,QAAQK,IAAKC,GAAeE,SAAS,YAAYC,QAAS,QAEjFjB,YAAYkB,QAAQC,YAEpBpB,EAAEqB,KAAK,CACNC,OAAQ,OACRC,IAAKC,QACLR,KAAM,CACLS,OAAQ,cACRrB,KAAMH,YAAYC,WAAWC,QAAQC,KAAKU,MAC1CT,QAASJ,YAAYC,WAAWC,QAAQE,QAAQS,MAChDR,WAAYL,YAAYC,WAAWC,QAAQG,WAAWQ,MACtDN,aAAcP,YAAYC,WAAWC,QAAQK,aAAaM,MAC1DP,eAAgBN,YAAYC,WAAWC,QAAQI,eAAeO,SAG9DY,MAAK,SAASC,GAEdC,QAAQC,IAAKF,GAERA,EAASG,QACb7B,YAAYkB,QAAQW,QAASH,EAASX,KAAKe,QAAS/B,EAAE,oCAGtDC,YAAYkB,QAAQa,MAAOL,EAASX,KAAKe,QAAS/B,EAAE,oCAGrDC,YAAYC,WAAWO,QAAQK,IAAKD,GAAeoB,YAAY,eAG/DC,MAAK,SAASP,GACdC,QAAQC,IAAKF,QASjB1B,YAAYC,WAAWQ","file":"sms-test.min.js","sourcesContent":["/**\n * AutomateWoo SMS Tester\n */\n\njQuery(function($) {\n\n\tAutomateWoo.SMS_Tester = {\n\n\t\t$fields: {\n\t\t\tfrom: $( '#automatewoo_twilio_from' ),\n\t\t\tauth_id: $( '#automatewoo_twilio_auth_id' ),\n\t\t\tauth_token: $( '#automatewoo_twilio_auth_token' ),\n\t\t\ttest_recipient: $( '#automatewoo-sms-test-recipient' ),\n\t\t\ttest_message: $( '#automatewoo-sms-test-message' )\n\t\t},\n\n\t\t$button: $( '#automatewoo-sms-test-twilio' ),\n\n\n\t\tinit: function(){\n\n\t\t\tAutomateWoo.SMS_Tester.$button.on( 'click', function(){\n\t\t\t\tAutomateWoo.SMS_Tester.send_test();\n\t\t\t});\n\n\t\t},\n\n\n\t\tsend_test: function() {\n\n\t\t\tvar text_initial = AutomateWoo.SMS_Tester.$button.val(),\n\t\t\t\ttext_loading = AutomateWoo.SMS_Tester.$button.data('loading-text');\n\n\t\t\tAutomateWoo.SMS_Tester.$button.val( text_loading ).addClass('disabled').trigger( 'blur' );\n\n\t\t\tAutomateWoo.notices.clear_all();\n\n\t\t\t$.ajax({\n\t\t\t\tmethod: 'POST',\n\t\t\t\turl: ajaxurl,\n\t\t\t\tdata: {\n\t\t\t\t\taction: 'aw_test_sms',\n\t\t\t\t\tfrom: AutomateWoo.SMS_Tester.$fields.from.val(),\n\t\t\t\t\tauth_id: AutomateWoo.SMS_Tester.$fields.auth_id.val(),\n\t\t\t\t\tauth_token: AutomateWoo.SMS_Tester.$fields.auth_token.val(),\n\t\t\t\t\ttest_message: AutomateWoo.SMS_Tester.$fields.test_message.val(),\n\t\t\t\t\ttest_recipient: AutomateWoo.SMS_Tester.$fields.test_recipient.val()\n\t\t\t\t}\n\t\t\t})\n\t\t\t\t.done(function(response){\n\n\t\t\t\t\tconsole.log( response );\n\n\t\t\t\t\tif ( response.success ) {\n\t\t\t\t\t\tAutomateWoo.notices.success( response.data.message, $('.automatewoo-sms-test-container') );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tAutomateWoo.notices.error( response.data.message, $('.automatewoo-sms-test-container') );\n\t\t\t\t\t}\n\n\t\t\t\t\tAutomateWoo.SMS_Tester.$button.val( text_initial ).removeClass('disabled');\n\t\t\t\t})\n\n\t\t\t\t.fail(function(response){\n\t\t\t\t\tconsole.log( response );\n\t\t\t\t});\n\t\t\t;\n\n\t\t}\n\n\t};\n\n\n\tAutomateWoo.SMS_Tester.init();\n\n});\n"]}