1function CheckinFactory(e){return{Settings:e("/rest/v1/events/:eventId/checkin-settings/update",{},{update:{method:"PUT",params:{eventId:"@eventId"}}}),CheckinSettings:e("/rest/v1/events/:eventId/checkin-settings",{},{fetch:{method:"GET"}}),CheckinStatusCount:e("/rest/v1/events/:eventId/attendee/count/checkIn",{},{get:{method:"GET"}}),Checkin:e("/rest/v1/events/:eventId/attendees/:attendeeId/checkin",{},{update:{method:"PUT",params:{eventId:"@eventId",attendeeId:"@attendeeId"}}})}}function VolunteerFactory(e){return{Volunteer:e("/rest/v1/events/:eventId/volunteers",{},{fetch:{method:"GET"},add:{method:"POST",params:{eventId:"@eventId"}},remove:{method:"DELETE"},update:{method:"PUT",params:{eventId:"@eventId"}}}),VolunteerDetails:e("/rest/v1/events/:eventId/volunteers/delete",{},{remove:{method:"POST",params:{eventId:"@eventId"}}}),IsExist:e("/rest/v1/events/:eventId/volunteers/:email/is-exists",{},{get:{method:"GET"}})}}function checkinController(e,t,n,s,c,r,o,a,i,l,u,d){var h=this;h.loading={attendees:!0,volunteers:!0},h.pageSize=50,h.statusFilter="",h.volunteersPaging={totalElements:0,totalPages:0,number:1,keyword:"",status:""},h.attendeePaging={totalElements:0,totalPages:0,number:1,keyword:"",status:""},h.statuses=[{name:"All Status",value:""},{name:"Checked In",value:"CHECKED_IN"},{name:"Checked Out",value:"CHECKED_OUT"},{name:"Pending",value:"PENDING"}],h.statusCount={checkedIn:0,checkedOut:0,pending:0,totalVolunteers:0},h.fetchLogedUser=function(){h.loading.user=!0;a.getAuthUser().then(function(e){h.user=e.activeProfile,h.loading.user=!1},function(e){})},h.init=function(){h.fetchLogedUser(),h.loading.content=!0,n.all([h.fetchCheckinSettings(),h.fetchEventDetails()]).then(function(e){"FETCH_CHECKIN_SETTINGS"===e[0]&&"FETCH_EVENT_DETAILS"===e[1]&&(h.fetchCheckInStatusCount(),h.startDatePicker={date:moment(h.checkInSettings.startTime)},h.endDatePicker={date:moment(h.checkInSettings.endTime)},h.startDate={max:moment(h.event.startTime)},h.endDate={min:moment(h.checkInSettings.startTime),max:moment(h.event.endTime)},moment(h.event.endTime)<moment()?h.buttonDisable=!0:h.buttonDisable=!1,h.loading.content=!1)},function(e){o.error("Error occured while fetching data")})},h.fetchEventDetails=function(){var e=n.defer();return l.Basics.get({id:s.id}).$promise.then(function(t){h.event=t,"5"!=h.event.eventType&&h.fetchAttendees(),h.fetchCheckinVolunteers(),e.resolve("FETCH_EVENT_DETAILS")},function(){e.reject("FAILED_EVENT_FETCH")}),e.promise},h.updateCheckinSettings=function(){i.Settings.update({eventId:s.id,checkInSettings:h.checkInSettings}).$promise.then(function(e){"success"==e.status?(o.success("Sucessfully Updated"),h.checkInSettings=e.result):(o.error("Error Occured!"),console.log(e.message))},function(e){o.error("Error Occured! Please retry")})},h.checkInOut=function(e,t){h.checkinVolunteer={name:h.user.displayName,email:h.user.email},e.loading=!0,i.Checkin.update({eventId:s.id,attendeeId:e.id,action:t}).$promise.then(function(t){if(e.loading=!1,"success"==t.status&&t.result.isValid)if(t.result.isCheckedIn){o.success(t.message),e.checkInStatus=t.result.checkInStatus;var n={action:t.result.checkInStatus,createdAt:Date.now(),volunteers:h.checkinVolunteer};e.checkInUpdates?e.checkInUpdates.push(n):(e.checkInUpdates=[],e.checkInUpdates.push(n)),h.fetchCheckInStatusCount()}else{h.event.checkInSettings=h.checkInSettings;var s=r.open({templateUrl:"assets/components/manage-event/check-in/views/check-in-modal.html",controller:"CheckinModalController as ctrl",size:"md",keyboard:!1,backdrop:"static",windowClass:"fade slide-right",resolve:{attendee:function(){return e},event:function(){return h.event},checkinVolunteer:function(){return h.checkinVolunteer},data:function(){return t}}});s.result.then(function(t){if("success"==t.status){e.checkInStatus=t.checkInStatus,"CHECKIN"==t.type||t.type;var n={action:t.checkInStatus,createdAt:t.now,volunteers:t.volunteer};e.checkInUpdates?e.checkInUpdates.push(n):(e.checkInUpdates=[],e.checkInUpdates.push(n))}h.fetchCheckInStatusCount()})}else o.error(t.message)},function(e){o.error("Error Occured! Please retry")})},h.refreshPage=function(){h.fetchAttendees(),h.fetchCheckInStatusCount()},h.fetchCheckinSettings=function(){var e=n.defer();return i.CheckinSettings.fetch({eventId:s.id}).$promise.then(function(t){"success"==t.status?(h.checkInSettings=t.result,e.resolve("FETCH_CHECKIN_SETTINGS")):e.reject("FAILED_CHECKIN_SETTINGS_FETCH")},function(){e.reject("FAILED_CHECKIN_SETTINGS_FETCH")}),e.promise}
1,h.viewCheckInDetails=function(e){r.open({templateUrl:"assets/components/manage-event/check-in/views/check-in-attendee-details.html",controller:"CheckinAttendeeDetailsModal as ctrl",keyboard:!1,backdrop:"static",windowClass:"fade slide-right",size:"md",resolve:{attendee:function(){return e}}}).result.then(function(e){})},h.checkInVolunteerOperation=function(e,t){h.duplicateVolunteer=angular.copy(t),h.event.checkInSettings=h.checkInSettings,r.open({templateUrl:"assets/components/manage-event/check-in/views/check-in-volunteer-add.html",controller:"CheckinVolunteerController as ctrl",keyboard:!1,backdrop:"static",windowClass:"fade slide-right",size:"md",resolve:{event:function(){return h.event},type:function(){return e},volunteer:function(){return h.duplicateVolunteer}}}).result.then(function(e){"success"==e&&h.fetchCheckinVolunteers(),h.statusCount.totalVolunteers++})},h.options1={singleDatePicker:!0,timePicker:!0,autoUpdateInput:!1,applyClass:"btn-success",locale:{applyLabel:"Apply",format:"MMMM DD, YYYY h:mm A",cancelLabel:"Cancel",opens:"bottom"},eventHandlers:{"hide.daterangepicker":function(e,t){h.checkInSettings.startTime=h.startDatePicker.date,h.updateCheckinSettings()},"cancel.daterangepicker":function(e,t){}}},h.options2={singleDatePicker:!0,timePicker:!0,autoUpdateInput:!1,applyClass:"btn-success",locale:{applyLabel:"Apply",format:"MMMM DD, YYYY h:mm A",cancelLabel:"Cancel",opens:"bottom"},eventHandlers:{"hide.daterangepicker":function(e,t){h.checkInSettings.endTime=h.endDatePicker.date,h.updateCheckinSettings()},"cancel.daterangepicker":function(e,t){}}},h.fetchAttendees=function(){h.loading.attendees=!0,u.CheckinAttendees.get({eventId:s.id,pageno:h.attendeePaging.number-1,pagesize:h.pageSize,keyword:h.attendeePaging.keyword,status:h.statusFilter}).$promise.then(function(e){"success"==e.status?(h.attendees=e.result.content,h.loading.attendees=!1,h.attendeePaging.totalElements=e.result.totalElements,h.attendeePaging.totalPages=e.result.totalPages,h.attendeePaging.number=e.result.number+1):o.error(e.message)},function(e){o.error("Error Occured! Please retry")})},h.fetchCheckInStatusCount=function(){i.CheckinStatusCount.get({eventId:s.id}).$promise.then(function(e){"success"==e.status?h.statusCount=e.result:o.error(e.message)},function(e){o.error("Error Occured! Please retry")})},h.fetchCheckinVolunteers=function(){if("1"!=h.event.eventType){h.loading.volunteers=!0;d.Volunteer.fetch({eventId:s.id,pageno:h.volunteersPaging.number-1,pagesize:h.pageSize,keyword:h.volunteersPaging.keyword,status:h.statusFilter}).$promise.then(function(e){"success"==e.status?(h.volunteers=e.result.content,h.loading.volunteers=!1,h.volunteersPaging.totalElements=e.result.totalElements,h.volunteersPaging.totalPages=e.result.totalPages,h.volunteersPaging.number=e.result.number+1):o.error(e.message)},function(e){o.error("Error Occured! Please retry")})}},h.removeVolunteer=function(e){r.open({templateUrl:"/assets/partials/templates/confirm-modal.html",controller:"ConfirmModalController",resolve:{message:function(){return"Are you sure to delete selected volunteer?"}}}).result.then(function(t){t&&d.VolunteerDetails.remove({eventId:s.id,volunteerId:e.id}).$promise.then(function(e){"success"==e.status?(o.success("Deleted Successfully"),h.fetchCheckinVolunteers(),h.statusCount.totalVolunteers--):o.error(e.message)},function(e){o.error("Error Occured! Please retry")})})},h.init()}function CheckinModalController(e,t,n,s,c,r,o,a){var i=this;i.data=a,i.attendee=t,i.event=s,i.loading={},i.checkinVolunteer=r,i.dataPass={},i.cancel=function(){i.dataPass.status="close",n.close(i.dataPass)},i.checkInStatus=i.data.result.checkInStatus,i.packageDetails=i.data.result.details,i.userDetails=i.data.result.userDetails,i.checkInOut=function(e){i.loading.checkin=!0,c.Checkin.update({eventId:i.event.id,attendeeId:i.attendee.id,action:e}).$promise.then(function(e){i.loading.checkin=!1,"success"==e.status?(o.success(e.message),i.currentCheckInStatus=e.result.checkInStatus,i.dataPass={status:"success",volunteer:i.checkinVolunteer,now:Date.now(),checkInStatus:i.currentCheckInStatus},n.close(i.dataPass)):o.error(e.message)},function(e){o.error("Error Occured! Please retry")})}}function CheckinVolunteerController(e,t,n,s,c,r,o){var a=this;a.volunteer={},"Edit"==r&&(a.volunteer=o,a.tempEmail=angular.copy(a.volunteer.email)),a.event=s,a.volunteerModalTitle=r,a.cancel=function(){t.close()},a.isVolunteerExist=function(e,t){if(a.isExists=!1,e&&a.tempEmail!=a.volunteer.email){n.IsExist.get({eventId:a.event.id,email:e}).$promise.then(function(e){"success"==e.status?(a.isExists=e.result,a.isExists&&t.$setValidity("email",!1)):(c.error("Error Occured!"),console.log(e.message))},function(e){c.error("Error Occured! Please retry")})}},a.volunteer.eventId=a.event.id,a.save=function(){if(a.saving=!0,"Add"==r)var e=n.Volunteer.add({eventId:a.event.id,volunteer:a.volunteer});else if("Edit"==r)var e=n.Volunteer.update({eventId:a.event.id,volunteer:a.volunteer});e.$promise.then(function(e){a.saving=!1,"success"==e.status?(c.success("Volunteer "+r+"ed successfully!"),t.close("success")):(c.error("Error Occured!"),console.log(e.message))},function(e){c.error("Error Occured! Please retry")})}}function CheckinAttendeeDetailsModal(e,t,n){var s=this;s.attendee=t,s.cancel=function(){n.close()}}function checkInSettings(){return{restrict:"A",transclude:!1,templateUrl:"/assets/components/manage-event/check-in/views/check-in-settings.html"}}function checkInVolunteers(){return{restrict:"A",transclude:!1,templateUrl:"/assets/components/manage-event/check-in/views/check-in-volunteers.html"}}function checkInAttendees(){return{restrict:"A",transclude:!1,templateUrl:"/assets/components/manage-event/check-in/views/check-in-attendees.html"}}angular.module("yepdesk").controller("checkinController",checkinController).controller("CheckinVolunteerController",CheckinVolunteerController).controller("CheckinAttendeeDetailsModal",CheckinAttendeeDetailsModal).factory("CheckinFactory",CheckinFactory).factory("VolunteerFactory",VolunteerFactory).directive("checkInSettings",checkInSettings).directive("checkInVolunteers",checkInVolunteers).directive("checkInAttendees",checkInAttendees).controller("CheckinModalController",CheckinModalController),checkinController.$inject=["$scope","$rootScope","$q","$stateParams","$location","$modal","NotifyFactory","AuthService","CheckinFactory","EventFactory","AttendeeFactory","VolunteerFactory"],CheckinVolunteerController.$inject=["$scope","$modalInstance","VolunteerFactory","event","NotifyFactory","type","volunteer"],CheckinFactory.$inject=["$resource"],VolunteerFactory.$inject=["$resource"],CheckinModalController.$inject=["$scope","attendee","$modalInstance","event","CheckinFactory","checkinVolunteer","NotifyFactory","data"],CheckinAttendeeDetailsModal.$inject=["$scope","attendee","$modalInstance"];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.