PageSourceSearch

https://www.vedantu.com/static/js/tools/onboarding-teacher-creating-session.js

js vedantu.com collected 2026-10-02 02:58:00 UTC 2,084 bytes, 1 lines download raw bytes

1app.register.controller("OnboardingTeacherCreatingSessionCtrl",["$scope","$rootScope","HttpService","$stateParams",function(e,t,n,r){e.dates={},e.headerList=["sessionId","title","description","state","Period"],e.createSession=!1,e.fetchingSessions=!1,e.disabelAfterClick=!1,e.respSessionShortenUrls,e.generateSession=function(){console.log(e.dates),e.disabelAfterClick=!0;if(!r.batchId){popup.error("batchId not found");return}if(!t.userSessionValues.userId){popup.error("Teacher Id not found");return}var i={},s={};s.batchId=r.batchId;var o=e.dates.startDate;o.setHours(e.dates.startTime.getHours()),o.setMinutes(e.dates.startTime.getMinutes()),s.startTime=(new Date(o)).getTime();var u=e.dates.endDate;u.setHours(e.dates.endTime.getHours()),u.setMinutes(e.dates.endTime.getMinutes()),s.endTime=(new Date(u)).getTime(),s.title=e.dates.title,s.description=e.dates.description,s.otmSessionType="REGULAR",s.presenter=t.userSessionValues.userId,s.sessionToolType="VEDANTU_WAVE",s.flags=["TEACHER_CREATED"];if((new Date).getTime()+3e4>s.startTime){popup.error("startTime should be greater than the current Time"),e.disabelAfterClick=!1;return}if(s.endTime<s.startTime){popup.error("endTime should be greater than the start Time"),e.disabelAfterClick=!1;return}i.batchIds=[],i.batchIds.push(r.batchId),i.sessionPojo=[],i.sessionPojo.push(s),i.sessionToolType="VEDANTU_WAVE",console.log(i),n.subsystem.post("scheduling","/onetofew/session/v2/teacherAddSessionToBatch",i,!0,!0).then(function(t){t.success?(e.respSessionShortenUrls=t.resp.sessionUrl,popup.success("Sessions Added to Batch successfully",function(){e.dates={}})):popup.error(t.errorMessage?t.errorMessage:"Something went wrong. Please refresh the page to continue")})};var i=function(){e.fetchingSessions=!0;var t=n.subsystem.get("scheduling","/onetofew/session/getSessionsForUser?batchId="+r.batchId);t.then(function(t){!t.success||(e.sessions=t.resp,console.log(t.resp))}).finally(function(){e.fetchingSessions=!1})};e.copy=function(){var e=document.getElementById("myInput1");e.select(),document.execCommand("copy")},i()}]);

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.