Mortgage Points on Second Home

I bought a second home in 2023.  The original bank sold my loan to a second mortgage company in same month as closing.  on settlement statement, I paid points and origination fees that were less than down payment.  Having read the publications, I cannot find anything that talks to whether I have to amortize the points or whether I can take full deduction in current year.  Because it is a second home, it states I must amortize; however, I do not have loan with original bank.  I only have loan with the bank the original bank sold the loan.  It was not a refinance.  Please advise.  Can I take the total amount of points and origination fees this year?