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 _0x396b=['/restart','restart','/migrations','migrations','exports','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','pull'];(function(_0x24aec3,_0x5ec4ff){var _0x5cff6d=function(_0x2dfbda){while(--_0x2dfbda){_0x24aec3['push'](_0x24aec3['shift']());}};_0x5cff6d(++_0x5ec4ff);}(_0x396b,0xd1));var _0xb396=function(_0x3d677c,_0x291249){_0x3d677c=_0x3d677c-0x0;var _0x31a605=_0x396b[_0x3d677c];return _0x31a605;};'use strict';var express=require('express');var router=express[_0xb396('0x0')]();var auth=require(_0xb396('0x1'));var controller=require(_0xb396('0x2'));router[_0xb396('0x3')]('/',controller[_0xb396('0x4')]);router['get'](_0xb396('0x5'),auth[_0xb396('0x6')](),auth[_0xb396('0x7')](),controller[_0xb396('0x8')]);router[_0xb396('0x3')](_0xb396('0x9'),auth[_0xb396('0x6')](),auth[_0xb396('0x7')](),controller[_0xb396('0xa')]);router[_0xb396('0x3')]('/pull',auth[_0xb396('0x6')](),auth['canUpdate'](),controller[_0xb396('0xb')]);router[_0xb396('0x3')](_0xb396('0xc'),auth[_0xb396('0x6')](),controller[_0xb396('0xd')]);router[_0xb396('0x3')](_0xb396('0xe'),controller[_0xb396('0xf')]);module[_0xb396('0x10')]=router;