5e83fdbd78585586b5125f0cffdc9709b55a4971
[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 _0xd2ce=['./version.controller','get','index','/fetch','fetch','isAuthenticated','canUpdate','reset','/pull','/restart','restart','/migrations','migrations','exports','express','Router','../../components/auth/service'];(function(_0x50a964,_0x57e2f9){var _0x5e2b8b=function(_0x3216e3){while(--_0x3216e3){_0x50a964['push'](_0x50a964['shift']());}};_0x5e2b8b(++_0x57e2f9);}(_0xd2ce,0x151));var _0xed2c=function(_0x1b349a,_0x22222c){_0x1b349a=_0x1b349a-0x0;var _0x5d1f7c=_0xd2ce[_0x1b349a];return _0x5d1f7c;};'use strict';var express=require(_0xed2c('0x0'));var router=express[_0xed2c('0x1')]();var auth=require(_0xed2c('0x2'));var controller=require(_0xed2c('0x3'));router[_0xed2c('0x4')]('/',controller[_0xed2c('0x5')]);router['get'](_0xed2c('0x6'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xed2c('0x7')]);router['get']('/reset',auth[_0xed2c('0x8')](),auth[_0xed2c('0x9')](),controller[_0xed2c('0xa')]);router['get'](_0xed2c('0xb'),auth[_0xed2c('0x8')](),auth['canUpdate'](),controller['pull']);router[_0xed2c('0x4')](_0xed2c('0xc'),auth[_0xed2c('0x8')](),controller[_0xed2c('0xd')]);router[_0xed2c('0x4')](_0xed2c('0xe'),controller[_0xed2c('0xf')]);module[_0xed2c('0x10')]=router;