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 _0xc0c9=['reset','/pull','/restart','restart','/migrations','migrations','express','Router','./version.controller','index','get','/fetch','isAuthenticated','fetch','/reset','canUpdate'];(function(_0x1e191a,_0x547422){var _0xdd2950=function(_0x15731a){while(--_0x15731a){_0x1e191a['push'](_0x1e191a['shift']());}};_0xdd2950(++_0x547422);}(_0xc0c9,0x66));var _0x9c0c=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0xc0c9[_0x297fd3];return _0x2af381;};'use strict';var express=require(_0x9c0c('0x0'));var router=express[_0x9c0c('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x9c0c('0x2'));router['get']('/',controller[_0x9c0c('0x3')]);router[_0x9c0c('0x4')](_0x9c0c('0x5'),auth[_0x9c0c('0x6')](),auth['canUpdate'](),controller[_0x9c0c('0x7')]);router['get'](_0x9c0c('0x8'),auth[_0x9c0c('0x6')](),auth[_0x9c0c('0x9')](),controller[_0x9c0c('0xa')]);router['get'](_0x9c0c('0xb'),auth[_0x9c0c('0x6')](),auth[_0x9c0c('0x9')](),controller['pull']);router[_0x9c0c('0x4')](_0x9c0c('0xc'),auth['isAuthenticated'](),controller[_0x9c0c('0xd')]);router[_0x9c0c('0x4')](_0x9c0c('0xe'),controller[_0x9c0c('0xf')]);module['exports']=router;