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 _0x0a96=['restart','/migrations','migrations','exports','express','Router','../../components/auth/service','get','index','/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','pull'];(function(_0x3b0912,_0x39d739){var _0xa8f339=function(_0x6a31ab){while(--_0x6a31ab){_0x3b0912['push'](_0x3b0912['shift']());}};_0xa8f339(++_0x39d739);}(_0x0a96,0xe4));var _0x60a9=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x0a96[_0x122ef9];return _0x42fba0;};'use strict';var express=require(_0x60a9('0x0'));var router=express[_0x60a9('0x1')]();var auth=require(_0x60a9('0x2'));var controller=require('./version.controller');router[_0x60a9('0x3')]('/',controller[_0x60a9('0x4')]);router[_0x60a9('0x3')](_0x60a9('0x5'),auth[_0x60a9('0x6')](),auth[_0x60a9('0x7')](),controller[_0x60a9('0x8')]);router[_0x60a9('0x3')](_0x60a9('0x9'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x60a9('0xa')]);router['get']('/pull',auth[_0x60a9('0x6')](),auth[_0x60a9('0x7')](),controller[_0x60a9('0xb')]);router[_0x60a9('0x3')]('/restart',auth[_0x60a9('0x6')](),controller[_0x60a9('0xc')]);router['get'](_0x60a9('0xd'),controller[_0x60a9('0xe')]);module[_0x60a9('0xf')]=router;