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 _0x0d73=['reset','/pull','pull','/restart','restart','/migrations','express','./version.controller','get','/fetch','isAuthenticated','fetch','/reset'];(function(_0x42e2fd,_0x2b1e1d){var _0x1ce610=function(_0x1b794e){while(--_0x1b794e){_0x42e2fd['push'](_0x42e2fd['shift']());}};_0x1ce610(++_0x2b1e1d);}(_0x0d73,0x1cd));var _0x30d7=function(_0x5b556b,_0xfa7c40){_0x5b556b=_0x5b556b-0x0;var _0xcc8fde=_0x0d73[_0x5b556b];return _0xcc8fde;};'use strict';var express=require(_0x30d7('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0x30d7('0x1'));router['get']('/',controller['index']);router[_0x30d7('0x2')](_0x30d7('0x3'),auth[_0x30d7('0x4')](),auth['canUpdate'](),controller[_0x30d7('0x5')]);router[_0x30d7('0x2')](_0x30d7('0x6'),auth[_0x30d7('0x4')](),auth['canUpdate'](),controller[_0x30d7('0x7')]);router[_0x30d7('0x2')](_0x30d7('0x8'),auth[_0x30d7('0x4')](),auth['canUpdate'](),controller[_0x30d7('0x9')]);router['get'](_0x30d7('0xa'),auth[_0x30d7('0x4')](),controller[_0x30d7('0xb')]);router[_0x30d7('0x2')](_0x30d7('0xc'),controller['migrations']);module['exports']=router;