e90b75a88ba281799790df18a509c62986e062a5
[motion2.git] / server / api / version / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe290=['exports','Router','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','pull','restart','migrations'];(function(_0x34f86d,_0x469a3b){var _0x1c457a=function(_0x102cd4){while(--_0x102cd4){_0x34f86d['push'](_0x34f86d['shift']());}};_0x1c457a(++_0x469a3b);}(_0xe290,0x10f));var _0x0e29=function(_0x3bfd9a,_0x5c5a47){_0x3bfd9a=_0x3bfd9a-0x0;var _0x34ae7c=_0xe290[_0x3bfd9a];return _0x34ae7c;};'use strict';var express=require('express');var router=express[_0x0e29('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0x0e29('0x1'));router[_0x0e29('0x2')]('/',controller[_0x0e29('0x3')]);router[_0x0e29('0x2')](_0x0e29('0x4'),auth[_0x0e29('0x5')](),auth[_0x0e29('0x6')](),controller[_0x0e29('0x7')]);router[_0x0e29('0x2')](_0x0e29('0x8'),auth[_0x0e29('0x5')](),auth[_0x0e29('0x6')](),controller[_0x0e29('0x9')]);router[_0x0e29('0x2')](_0x0e29('0xa'),auth[_0x0e29('0x5')](),auth['canUpdate'](),controller[_0x0e29('0xb')]);router[_0x0e29('0x2')]('/restart',auth['isAuthenticated'](),controller[_0x0e29('0xc')]);router[_0x0e29('0x2')]('/migrations',controller[_0x0e29('0xd')]);module[_0x0e29('0xe')]=router;