342dda73c5c26d15b59ffc63a40a27601f6ed6db
[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 _0x0e45=['../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','fetch','reset','/pull','pull','/restart','restart','/migrations','migrations','exports','express','Router'];(function(_0x47994e,_0x270c34){var _0x1c55fb=function(_0x2e7b35){while(--_0x2e7b35){_0x47994e['push'](_0x47994e['shift']());}};_0x1c55fb(++_0x270c34);}(_0x0e45,0x18a));var _0x50e4=function(_0x3a1600,_0x460ef0){_0x3a1600=_0x3a1600-0x0;var _0xfc157f=_0x0e45[_0x3a1600];return _0xfc157f;};'use strict';var express=require(_0x50e4('0x0'));var router=express[_0x50e4('0x1')]();var auth=require(_0x50e4('0x2'));var controller=require(_0x50e4('0x3'));router[_0x50e4('0x4')]('/',controller[_0x50e4('0x5')]);router[_0x50e4('0x4')](_0x50e4('0x6'),auth[_0x50e4('0x7')](),auth[_0x50e4('0x8')](),controller[_0x50e4('0x9')]);router[_0x50e4('0x4')]('/reset',auth[_0x50e4('0x7')](),auth[_0x50e4('0x8')](),controller[_0x50e4('0xa')]);router['get'](_0x50e4('0xb'),auth[_0x50e4('0x7')](),auth['canUpdate'](),controller[_0x50e4('0xc')]);router[_0x50e4('0x4')](_0x50e4('0xd'),auth[_0x50e4('0x7')](),controller[_0x50e4('0xe')]);router[_0x50e4('0x4')](_0x50e4('0xf'),controller[_0x50e4('0x10')]);module[_0x50e4('0x11')]=router;