b89b84f217ca23829ea5190adb4763d5691a6e55
[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 _0x0404=['reset','pull','/restart','restart','/migrations','migrations','Router','../../components/auth/service','./version.controller','get','index','isAuthenticated','canUpdate','fetch'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x0404,0xf4));var _0x4040=function(_0x3b4b1d,_0x15029e){_0x3b4b1d=_0x3b4b1d-0x0;var _0x488c36=_0x0404[_0x3b4b1d];return _0x488c36;};'use strict';var express=require('express');var router=express[_0x4040('0x0')]();var auth=require(_0x4040('0x1'));var controller=require(_0x4040('0x2'));router[_0x4040('0x3')]('/',controller[_0x4040('0x4')]);router[_0x4040('0x3')]('/fetch',auth[_0x4040('0x5')](),auth[_0x4040('0x6')](),controller[_0x4040('0x7')]);router[_0x4040('0x3')]('/reset',auth[_0x4040('0x5')](),auth['canUpdate'](),controller[_0x4040('0x8')]);router['get']('/pull',auth[_0x4040('0x5')](),auth[_0x4040('0x6')](),controller[_0x4040('0x9')]);router['get'](_0x4040('0xa'),auth[_0x4040('0x5')](),controller[_0x4040('0xb')]);router['get'](_0x4040('0xc'),controller[_0x4040('0xd')]);module['exports']=router;