angular.module("RdmApp").controller("semesterCtrl",["$scope","$rootScope","common","DTOptionsBuilder","DTColumnBuilder","$http","$q","ApiServer",function(e,t,r,o,s,l,a,i){e.savesemester=function(){$.blockUI({}),i.post("proktor/semester/save",{aktif:t.datasemester.aktif},(function(e){$.unblockUI({}),null!==e&&e.success?(t.getsemester(),Swal.fire({type:"success",title:"Berhasil",showConfirmButton:!1,html:"Data Berhasil Disimpan",timer:1e3})):null==e?Swal.fire({type:"error",title:"Gagal",showConfirmButton:!0,html:"Data Gagal Disimpan"}):Swal.fire({type:"error",title:"Gagal",showConfirmButton:!0,html:e.message})}))}}]);