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 _0x5f00=['get','index','/fetch','isAuthenticated','fetch','canUpdate','reset','/pull','pull','/restart','restart','/migrations','migrations','exports','Router','../../components/auth/service','./version.controller'];(function(_0x3642ef,_0x79bfa8){var _0xa8726d=function(_0x1acad1){while(--_0x1acad1){_0x3642ef['push'](_0x3642ef['shift']());}};_0xa8726d(++_0x79bfa8);}(_0x5f00,0x74));var _0x05f0=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5f00[_0x3dd15e];return _0x231fd0;};'use strict';var express=require('express');var router=express[_0x05f0('0x0')]();var auth=require(_0x05f0('0x1'));var controller=require(_0x05f0('0x2'));router[_0x05f0('0x3')]('/',controller[_0x05f0('0x4')]);router[_0x05f0('0x3')](_0x05f0('0x5'),auth[_0x05f0('0x6')](),auth['canUpdate'](),controller[_0x05f0('0x7')]);router[_0x05f0('0x3')]('/reset',auth['isAuthenticated'](),auth[_0x05f0('0x8')](),controller[_0x05f0('0x9')]);router['get'](_0x05f0('0xa'),auth[_0x05f0('0x6')](),auth['canUpdate'](),controller[_0x05f0('0xb')]);router['get'](_0x05f0('0xc'),auth[_0x05f0('0x6')](),controller[_0x05f0('0xd')]);router['get'](_0x05f0('0xe'),controller[_0x05f0('0xf')]);module[_0x05f0('0x10')]=router;