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 _0xaa46=['canUpdate','pull','/restart','restart','/migrations','migrations','exports','express','../../components/auth/service','get','index','isAuthenticated','reset','/pull'];(function(_0xd9feb1,_0x41e2fa){var _0x7cfe41=function(_0x11483b){while(--_0x11483b){_0xd9feb1['push'](_0xd9feb1['shift']());}};_0x7cfe41(++_0x41e2fa);}(_0xaa46,0x85));var _0x6aa4=function(_0x4e0a96,_0x531ed7){_0x4e0a96=_0x4e0a96-0x0;var _0x255076=_0xaa46[_0x4e0a96];return _0x255076;};'use strict';var express=require(_0x6aa4('0x0'));var router=express['Router']();var auth=require(_0x6aa4('0x1'));var controller=require('./version.controller');router[_0x6aa4('0x2')]('/',controller[_0x6aa4('0x3')]);router[_0x6aa4('0x2')]('/fetch',auth[_0x6aa4('0x4')](),auth['canUpdate'](),controller['fetch']);router[_0x6aa4('0x2')]('/reset',auth[_0x6aa4('0x4')](),auth['canUpdate'](),controller[_0x6aa4('0x5')]);router[_0x6aa4('0x2')](_0x6aa4('0x6'),auth[_0x6aa4('0x4')](),auth[_0x6aa4('0x7')](),controller[_0x6aa4('0x8')]);router[_0x6aa4('0x2')](_0x6aa4('0x9'),auth[_0x6aa4('0x4')](),controller[_0x6aa4('0xa')]);router['get'](_0x6aa4('0xb'),controller[_0x6aa4('0xc')]);module[_0x6aa4('0xd')]=router;