(function(){"use strict";u8.Crm.EventManagement=function(){this.commandBindings={"EventManagement/CalculateTopicEvaluation":this._calculateTopicEvaluation.bind(this),"EventManagement/CalculateVenueEvaluation":this._calculateVenueEvaluation.bind(this)};this._isCreated=false;u8.using({texts:["error_text","net_events"]},u8.tools.created.curry(this))};u8.Crm.EventManagement.makeClass({events:["Create"]});$.extend(u8.Crm.EventManagement.prototype,{_calculateTopicEvaluation:function(){this._schedule(11,function(e,n){if(n.error){return}u8.services.notification.info("TXT_net_events_2")})},_calculateVenueEvaluation:function(){this._schedule(10,function(e,n){if(n.error){return}u8.services.notification.info("TXT_net_events_3")})},_schedule:function(e,n){u8.request("EventManagementChannel.ScheduleEventEvaluation",{code:e},n)}});$.extend(u8.Crm.EventManagement,{registerEditHandlers:function(){u8.services.menus.registerMenuItem(function(e){return["ID_NET_CALCULATE_TOPIC_LECTURE_EVALUATION","ID_NET_CALCULATE_ACCOMODATION_VENUE_EVALUATION"].contains(e.name)},{create:function(e,n){var t=n.menuItem;var a=u8.session.webConfigValues.get("UpdateServer.RepID");t.visible=!!u8.services.reps.get(a);t.update()}})}});u8.services.add({name:"eventManagement",ctor:u8.Crm.EventManagement,scope:"Session"});u8.services.ready("menus",function(){u8.Crm.EventManagement.registerEditHandlers()})})();