Zopiclone is a ordered medication, specifically a sedative , used to treat insomnia . It works by affecting chemicals in the head that regulate rest patterns . This drug is generally taken shortly before bedtime and can be effective for a brief duration, but prolonged use may lead to reliance and is