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 _0x46d8=['index','get','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','pull','restart','migrations','exports','express','Router','../../components/auth/service','./version.controller'];(function(_0x3733fb,_0xd13dff){var _0x220bda=function(_0x13083d){while(--_0x13083d){_0x3733fb['push'](_0x3733fb['shift']());}};_0x220bda(++_0xd13dff);}(_0x46d8,0x1ac));var _0x846d=function(_0x12bcf7,_0xc11103){_0x12bcf7=_0x12bcf7-0x0;var _0x2825a=_0x46d8[_0x12bcf7];return _0x2825a;};'use strict';var express=require(_0x846d('0x0'));var router=express[_0x846d('0x1')]();var auth=require(_0x846d('0x2'));var controller=require(_0x846d('0x3'));router['get']('/',controller[_0x846d('0x4')]);router[_0x846d('0x5')]('/fetch',auth[_0x846d('0x6')](),auth[_0x846d('0x7')](),controller[_0x846d('0x8')]);router['get'](_0x846d('0x9'),auth[_0x846d('0x6')](),auth['canUpdate'](),controller[_0x846d('0xa')]);router[_0x846d('0x5')](_0x846d('0xb'),auth[_0x846d('0x6')](),auth[_0x846d('0x7')](),controller[_0x846d('0xc')]);router[_0x846d('0x5')]('/restart',auth[_0x846d('0x6')](),controller[_0x846d('0xd')]);router[_0x846d('0x5')]('/migrations',controller[_0x846d('0xe')]);module[_0x846d('0xf')]=router;