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 _0x62c9=['restart','migrations','exports','express','Router','../../components/auth/service','./version.controller','index','get','fetch','canUpdate','/pull','isAuthenticated','pull'];(function(_0x50fda9,_0x5ee44b){var _0x36b92b=function(_0x121877){while(--_0x121877){_0x50fda9['push'](_0x50fda9['shift']());}};_0x36b92b(++_0x5ee44b);}(_0x62c9,0xe3));var _0x962c=function(_0x3e75ba,_0x90def){_0x3e75ba=_0x3e75ba-0x0;var _0x2765b5=_0x62c9[_0x3e75ba];return _0x2765b5;};'use strict';var express=require(_0x962c('0x0'));var router=express[_0x962c('0x1')]();var auth=require(_0x962c('0x2'));var controller=require(_0x962c('0x3'));router['get']('/',controller[_0x962c('0x4')]);router[_0x962c('0x5')]('/fetch',auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x962c('0x6')]);router[_0x962c('0x5')]('/reset',auth['isAuthenticated'](),auth[_0x962c('0x7')](),controller['reset']);router[_0x962c('0x5')](_0x962c('0x8'),auth[_0x962c('0x9')](),auth['canUpdate'](),controller[_0x962c('0xa')]);router['get']('/restart',auth[_0x962c('0x9')](),controller[_0x962c('0xb')]);router['get']('/migrations',controller[_0x962c('0xc')]);module[_0x962c('0xd')]=router;