use common-config collection names instead of hardcoded values

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
save new sticky messages in the db and delete them when clear

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
use message model instead of hardcoded object

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
export error codes constants for ease of use

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
send message on outOfSync

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
have the mongo driver filter out inexisting clips, and notify them

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
more natural arguments order

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
started playing message code

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
send 'started playing' message to caspa

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
send 'file not found' message to caspa

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
make target that runs a node shell with the mosto environment

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fix the "sticky" message implementation

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
better event name

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
all messages are saved now

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
save end-date for fixed errors

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
bugfix

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
bugfix

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
create a blank clip when a file is not found instead of just dropping it

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
replace broken medias for an equivalent amount of blank medias

(split the broken clip's duration)

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
keep a list of "active" messages

Signed-off-by: Tomas Neme <lacrymology@gmail.com>