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 _0xceb8=['index','/fetch','isAuthenticated','canUpdate','fetch','/reset','pull','/restart','migrations','express','Router','../../components/auth/service','./version.controller','get'];(function(_0x20bf0a,_0x3f260c){var _0x326e25=function(_0x2c320c){while(--_0x2c320c){_0x20bf0a['push'](_0x20bf0a['shift']());}};_0x326e25(++_0x3f260c);}(_0xceb8,0xf7));var _0x8ceb=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xceb8[_0x14add3];return _0x4a174f;};'use strict';var express=require(_0x8ceb('0x0'));var router=express[_0x8ceb('0x1')]();var auth=require(_0x8ceb('0x2'));var controller=require(_0x8ceb('0x3'));router[_0x8ceb('0x4')]('/',controller[_0x8ceb('0x5')]);router[_0x8ceb('0x4')](_0x8ceb('0x6'),auth[_0x8ceb('0x7')](),auth[_0x8ceb('0x8')](),controller[_0x8ceb('0x9')]);router[_0x8ceb('0x4')](_0x8ceb('0xa'),auth[_0x8ceb('0x7')](),auth[_0x8ceb('0x8')](),controller['reset']);router[_0x8ceb('0x4')]('/pull',auth[_0x8ceb('0x7')](),auth['canUpdate'](),controller[_0x8ceb('0xb')]);router['get'](_0x8ceb('0xc'),auth['isAuthenticated'](),controller['restart']);router[_0x8ceb('0x4')]('/migrations',controller[_0x8ceb('0xd')]);module['exports']=router;