1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x2c90=['/pull','/restart','restart','/migrations','exports','express','../../components/auth/service','get','/fetch','canUpdate','fetch','/reset','isAuthenticated','reset'];(function(_0x562faf,_0x102bcc){var _0x22c1f6=function(_0x2cd3b8){while(--_0x2cd3b8){_0x562faf['push'](_0x562faf['shift']());}};_0x22c1f6(++_0x102bcc);}(_0x2c90,0xad));var _0x02c9=function(_0x444116,_0x52345e){_0x444116=_0x444116-0x0;var _0xb2f395=_0x2c90[_0x444116];return _0xb2f395;};'use strict';var express=require(_0x02c9('0x0'));var router=express['Router']();var auth=require(_0x02c9('0x1'));var controller=require('./version.controller');router[_0x02c9('0x2')]('/',controller['index']);router[_0x02c9('0x2')](_0x02c9('0x3'),auth['isAuthenticated'](),auth[_0x02c9('0x4')](),controller[_0x02c9('0x5')]);router[_0x02c9('0x2')](_0x02c9('0x6'),auth[_0x02c9('0x7')](),auth['canUpdate'](),controller[_0x02c9('0x8')]);router['get'](_0x02c9('0x9'),auth[_0x02c9('0x7')](),auth[_0x02c9('0x4')](),controller['pull']);router[_0x02c9('0x2')](_0x02c9('0xa'),auth[_0x02c9('0x7')](),controller[_0x02c9('0xb')]);router['get'](_0x02c9('0xc'),controller['migrations']);module[_0x02c9('0xd')]=router;