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 _0xd7de=['/fetch','isAuthenticated','fetch','reset','/pull','canUpdate','pull','/restart','/migrations','express','Router','../../components/auth/service','./version.controller','get'];(function(_0x208d75,_0x92d742){var _0x382d27=function(_0x3aaba3){while(--_0x3aaba3){_0x208d75['push'](_0x208d75['shift']());}};_0x382d27(++_0x92d742);}(_0xd7de,0x1bb));var _0xed7d=function(_0x3fc2c7,_0x1387a1){_0x3fc2c7=_0x3fc2c7-0x0;var _0x17a06e=_0xd7de[_0x3fc2c7];return _0x17a06e;};'use strict';var express=require(_0xed7d('0x0'));var router=express[_0xed7d('0x1')]();var auth=require(_0xed7d('0x2'));var controller=require(_0xed7d('0x3'));router['get']('/',controller['index']);router[_0xed7d('0x4')](_0xed7d('0x5'),auth[_0xed7d('0x6')](),auth['canUpdate'](),controller[_0xed7d('0x7')]);router['get']('/reset',auth[_0xed7d('0x6')](),auth['canUpdate'](),controller[_0xed7d('0x8')]);router[_0xed7d('0x4')](_0xed7d('0x9'),auth[_0xed7d('0x6')](),auth[_0xed7d('0xa')](),controller[_0xed7d('0xb')]);router[_0xed7d('0x4')](_0xed7d('0xc'),auth[_0xed7d('0x6')](),controller['restart']);router[_0xed7d('0x4')](_0xed7d('0xd'),controller['migrations']);module['exports']=router;