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 _0xe0a3=['restart','/migrations','migrations','exports','express','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','fetch','/reset','canUpdate','reset','/pull','pull','/restart'];(function(_0x7358a0,_0x3c4bfb){var _0x802cd4=function(_0x397c69){while(--_0x397c69){_0x7358a0['push'](_0x7358a0['shift']());}};_0x802cd4(++_0x3c4bfb);}(_0xe0a3,0x136));var _0x3e0a=function(_0x55abd9,_0x1148af){_0x55abd9=_0x55abd9-0x0;var _0x3e5669=_0xe0a3[_0x55abd9];return _0x3e5669;};'use strict';var express=require(_0x3e0a('0x0'));var router=express['Router']();var auth=require(_0x3e0a('0x1'));var controller=require(_0x3e0a('0x2'));router[_0x3e0a('0x3')]('/',controller[_0x3e0a('0x4')]);router[_0x3e0a('0x3')](_0x3e0a('0x5'),auth[_0x3e0a('0x6')](),auth['canUpdate'](),controller[_0x3e0a('0x7')]);router[_0x3e0a('0x3')](_0x3e0a('0x8'),auth[_0x3e0a('0x6')](),auth[_0x3e0a('0x9')](),controller[_0x3e0a('0xa')]);router[_0x3e0a('0x3')](_0x3e0a('0xb'),auth[_0x3e0a('0x6')](),auth[_0x3e0a('0x9')](),controller[_0x3e0a('0xc')]);router[_0x3e0a('0x3')](_0x3e0a('0xd'),auth['isAuthenticated'](),controller[_0x3e0a('0xe')]);router[_0x3e0a('0x3')](_0x3e0a('0xf'),controller[_0x3e0a('0x10')]);module[_0x3e0a('0x11')]=router;