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 _0x2f16=['reset','pull','/restart','restart','migrations','exports','./version.controller','get','index','/fetch','canUpdate','fetch','/reset','isAuthenticated'];(function(_0x91ed5c,_0xdb6b34){var _0x2387d8=function(_0x1a9d15){while(--_0x1a9d15){_0x91ed5c['push'](_0x91ed5c['shift']());}};_0x2387d8(++_0xdb6b34);}(_0x2f16,0x164));var _0x62f1=function(_0x5d07ee,_0x33eca4){_0x5d07ee=_0x5d07ee-0x0;var _0x19efab=_0x2f16[_0x5d07ee];return _0x19efab;};'use strict';var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0x62f1('0x0'));router[_0x62f1('0x1')]('/',controller[_0x62f1('0x2')]);router[_0x62f1('0x1')](_0x62f1('0x3'),auth['isAuthenticated'](),auth[_0x62f1('0x4')](),controller[_0x62f1('0x5')]);router['get'](_0x62f1('0x6'),auth[_0x62f1('0x7')](),auth[_0x62f1('0x4')](),controller[_0x62f1('0x8')]);router[_0x62f1('0x1')]('/pull',auth[_0x62f1('0x7')](),auth[_0x62f1('0x4')](),controller[_0x62f1('0x9')]);router[_0x62f1('0x1')](_0x62f1('0xa'),auth[_0x62f1('0x7')](),controller[_0x62f1('0xb')]);router[_0x62f1('0x1')]('/migrations',controller[_0x62f1('0xc')]);module[_0x62f1('0xd')]=router;