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 _0x5f1d=['canUpdate','/reset','pull','/restart','restart','/migrations','migrations','exports','express','Router','../../components/auth/service','./version.controller','get','index','isAuthenticated'];(function(_0x39c734,_0x2f3e06){var _0xb2a2f9=function(_0x502f3f){while(--_0x502f3f){_0x39c734['push'](_0x39c734['shift']());}};_0xb2a2f9(++_0x2f3e06);}(_0x5f1d,0xda));var _0xd5f1=function(_0x3a8e0a,_0x4819e1){_0x3a8e0a=_0x3a8e0a-0x0;var _0x10a1d2=_0x5f1d[_0x3a8e0a];return _0x10a1d2;};'use strict';var express=require(_0xd5f1('0x0'));var router=express[_0xd5f1('0x1')]();var auth=require(_0xd5f1('0x2'));var controller=require(_0xd5f1('0x3'));router[_0xd5f1('0x4')]('/',controller[_0xd5f1('0x5')]);router['get']('/fetch',auth[_0xd5f1('0x6')](),auth[_0xd5f1('0x7')](),controller['fetch']);router[_0xd5f1('0x4')](_0xd5f1('0x8'),auth[_0xd5f1('0x6')](),auth[_0xd5f1('0x7')](),controller['reset']);router['get']('/pull',auth[_0xd5f1('0x6')](),auth[_0xd5f1('0x7')](),controller[_0xd5f1('0x9')]);router[_0xd5f1('0x4')](_0xd5f1('0xa'),auth[_0xd5f1('0x6')](),controller[_0xd5f1('0xb')]);router[_0xd5f1('0x4')](_0xd5f1('0xc'),controller[_0xd5f1('0xd')]);module[_0xd5f1('0xe')]=router;