b049df12bb0d8a2187d2a1f94f3f0820498104a2
[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 _0x0800=['Router','../../components/auth/service','index','get','/fetch','isAuthenticated','canUpdate','fetch','reset','pull','/restart','restart','/migrations','migrations','exports','express'];(function(_0x4f9a54,_0x231f5e){var _0x3cc680=function(_0x3d249c){while(--_0x3d249c){_0x4f9a54['push'](_0x4f9a54['shift']());}};_0x3cc680(++_0x231f5e);}(_0x0800,0x1af));var _0x0080=function(_0x348896,_0x1f7e6e){_0x348896=_0x348896-0x0;var _0x16453f=_0x0800[_0x348896];return _0x16453f;};'use strict';var express=require(_0x0080('0x0'));var router=express[_0x0080('0x1')]();var auth=require(_0x0080('0x2'));var controller=require('./version.controller');router['get']('/',controller[_0x0080('0x3')]);router[_0x0080('0x4')](_0x0080('0x5'),auth[_0x0080('0x6')](),auth[_0x0080('0x7')](),controller[_0x0080('0x8')]);router[_0x0080('0x4')]('/reset',auth[_0x0080('0x6')](),auth[_0x0080('0x7')](),controller[_0x0080('0x9')]);router[_0x0080('0x4')]('/pull',auth['isAuthenticated'](),auth[_0x0080('0x7')](),controller[_0x0080('0xa')]);router[_0x0080('0x4')](_0x0080('0xb'),auth[_0x0080('0x6')](),controller[_0x0080('0xc')]);router[_0x0080('0x4')](_0x0080('0xd'),controller[_0x0080('0xe')]);module[_0x0080('0xf')]=router;