Built motion from commit 616d3211.|2.6.4
[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 _0xc746=['index','/fetch','isAuthenticated','canUpdate','fetch','reset','pull','/migrations','exports','Router','./version.controller','get'];(function(_0x4aaffc,_0x10f2e6){var _0x35a811=function(_0x3ed276){while(--_0x3ed276){_0x4aaffc['push'](_0x4aaffc['shift']());}};_0x35a811(++_0x10f2e6);}(_0xc746,0x11d));var _0x6c74=function(_0x56b118,_0x36745c){_0x56b118=_0x56b118-0x0;var _0x19bda9=_0xc746[_0x56b118];return _0x19bda9;};'use strict';var express=require('express');var router=express[_0x6c74('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0x6c74('0x1'));router[_0x6c74('0x2')]('/',controller[_0x6c74('0x3')]);router[_0x6c74('0x2')](_0x6c74('0x4'),auth[_0x6c74('0x5')](),auth[_0x6c74('0x6')](),controller[_0x6c74('0x7')]);router[_0x6c74('0x2')]('/reset',auth['isAuthenticated'](),auth[_0x6c74('0x6')](),controller[_0x6c74('0x8')]);router['get']('/pull',auth[_0x6c74('0x5')](),auth[_0x6c74('0x6')](),controller[_0x6c74('0x9')]);router[_0x6c74('0x2')]('/restart',auth[_0x6c74('0x5')](),controller['restart']);router[_0x6c74('0x2')](_0x6c74('0xa'),controller['migrations']);module[_0x6c74('0xb')]=router;