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 _0x32a0=['/reset','reset','/pull','/restart','restart','migrations','exports','Router','../../components/auth/service','get','index','isAuthenticated','canUpdate','fetch'];(function(_0x586fa8,_0x21ae01){var _0x3b2a0f=function(_0xcee18){while(--_0xcee18){_0x586fa8['push'](_0x586fa8['shift']());}};_0x3b2a0f(++_0x21ae01);}(_0x32a0,0x157));var _0x032a=function(_0x5786f9,_0x59a148){_0x5786f9=_0x5786f9-0x0;var _0x22c3cf=_0x32a0[_0x5786f9];return _0x22c3cf;};'use strict';var express=require('express');var router=express[_0x032a('0x0')]();var auth=require(_0x032a('0x1'));var controller=require('./version.controller');router[_0x032a('0x2')]('/',controller[_0x032a('0x3')]);router[_0x032a('0x2')]('/fetch',auth[_0x032a('0x4')](),auth[_0x032a('0x5')](),controller[_0x032a('0x6')]);router['get'](_0x032a('0x7'),auth[_0x032a('0x4')](),auth[_0x032a('0x5')](),controller[_0x032a('0x8')]);router[_0x032a('0x2')](_0x032a('0x9'),auth[_0x032a('0x4')](),auth['canUpdate'](),controller['pull']);router['get'](_0x032a('0xa'),auth[_0x032a('0x4')](),controller[_0x032a('0xb')]);router[_0x032a('0x2')]('/migrations',controller[_0x032a('0xc')]);module[_0x032a('0xd')]=router;