!function(a,b){"use strict";function c(a,c){var d=this,c=b.extend({},c);d.$element=a,d.options=c,d.$element.on("click","[data-notification-action=archive]",function(a){a.preventDefault();var c=b(this).closest("div[data-notification-alert-id]"),e=c.attr("data-notification-alert-id"),f=c.attr("data-token");b.ajax({url:CCM_DISPATCHER_FILENAME+"/ccm/system/notification/alert/archive",dataType:"json",data:{naID:e,ccm_token:f},type:"post"}),c.queue(function(){c.addClass("animated fadeOut"),c.dequeue()}).delay(500).queue(function(){c.remove(),c.dequeue(),d.handleEmpty()})}),d.$element.on("click","a[data-workflow-task]",function(a){var c=b(this).attr("data-workflow-task"),e=b(this).closest("form"),f=b(this).closest("div[data-notification-alert-id]");a.preventDefault(),e.append('<input type="hidden" name="action_'+c+'" value="'+c+'">'),e.ajaxSubmit({dataType:"json",beforeSubmit:function(){jQuery.fn.dialog.showLoader()},success:function(a){f.addClass("animated fadeOut"),jQuery.fn.dialog.hideLoader(),setTimeout(function(){f.remove(),d.handleEmpty()},500)}})})}c.prototype={handleEmpty:function(){var a=this,b=a.$element.find("div[data-notification-alert-id]");b.length<1&&a.$element.find("[data-notification-description=empty]").show()}},b.fn.concreteNotificationList=function(a){return b.each(b(this),function(d,e){new c(b(this),a)})},a.ConcreteNotificationList=c}(this,$);