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 _0xb968=['canUpdate','fetch','get','/reset','reset','/restart','restart','migrations','exports','express','../../components/auth/service','./version.controller','index','/fetch'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xb968,0xe9));var _0x8b96=function(_0x2fbabe,_0x45bebc){_0x2fbabe=_0x2fbabe-0x0;var _0x79e99c=_0xb968[_0x2fbabe];return _0x79e99c;};'use strict';var express=require(_0x8b96('0x0'));var router=express['Router']();var auth=require(_0x8b96('0x1'));var controller=require(_0x8b96('0x2'));router['get']('/',controller[_0x8b96('0x3')]);router['get'](_0x8b96('0x4'),auth['isAuthenticated'](),auth[_0x8b96('0x5')](),controller[_0x8b96('0x6')]);router[_0x8b96('0x7')](_0x8b96('0x8'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x8b96('0x9')]);router[_0x8b96('0x7')]('/pull',auth['isAuthenticated'](),auth[_0x8b96('0x5')](),controller['pull']);router['get'](_0x8b96('0xa'),auth['isAuthenticated'](),controller[_0x8b96('0xb')]);router[_0x8b96('0x7')]('/migrations',controller[_0x8b96('0xc')]);module[_0x8b96('0xd')]=router;