According to an aspect of the present disclosure, an endoscopic surgical device is provided. The surgical device includes a handle assembly including a drive mechanism actuatable by a trigger; and an endoscopic assembly including a proximal end portion extending from the handle assembly; a distal end portion pivotably connected to the proximal end portion of the endoscopic assembly; and a rotatable inner actuation shaft extending from the handle assembly and into the distal end portion of the endoscopic assembly, the inner actuation shaft including a flexible portion extending across the pivot connection. The surgical device includes an end effector selectively connectable to the distal end portion of the endoscopic assembly and to a distal portion of the rotatable inner actuation shaft. The end effector includes a splined inner tube rotatably supported in an outer tube; and a plurality of surgical anchors loaded in the inner tube of the end effector.