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 _0x46b9=['/restart','restart','/migrations','express','Router','./version.controller','get','/fetch','isAuthenticated','fetch','canUpdate','reset'];(function(_0x2393c0,_0x5d5d61){var _0x188aa9=function(_0x330de9){while(--_0x330de9){_0x2393c0['push'](_0x2393c0['shift']());}};_0x188aa9(++_0x5d5d61);}(_0x46b9,0x7b));var _0x946b=function(_0x12b42f,_0x298674){_0x12b42f=_0x12b42f-0x0;var _0x4109db=_0x46b9[_0x12b42f];return _0x4109db;};'use strict';var express=require(_0x946b('0x0'));var router=express[_0x946b('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x946b('0x2'));router[_0x946b('0x3')]('/',controller['index']);router[_0x946b('0x3')](_0x946b('0x4'),auth[_0x946b('0x5')](),auth['canUpdate'](),controller[_0x946b('0x6')]);router[_0x946b('0x3')]('/reset',auth[_0x946b('0x5')](),auth[_0x946b('0x7')](),controller[_0x946b('0x8')]);router['get']('/pull',auth['isAuthenticated'](),auth[_0x946b('0x7')](),controller['pull']);router[_0x946b('0x3')](_0x946b('0x9'),auth[_0x946b('0x5')](),controller[_0x946b('0xa')]);router[_0x946b('0x3')](_0x946b('0xb'),controller['migrations']);module['exports']=router;