Given the | x | - 1 power of (x-1) = 1, find the value of integer X

Given the | x | - 1 power of (x-1) = 1, find the value of integer X

The | x | - 1 power of (x-1) = 1
be
X-1 ≠ 0 and | x | - 1 = 0
Then x = - 1