Built motion from commit efa66e19.|2.6.22
[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 _0x7460=['get','isAuthenticated','canUpdate','/reset','reset','/pull','restart','/migrations','migrations','exports','express','Router','../../components/auth/service','./version.controller'];(function(_0x1ad0c7,_0x25e4e8){var _0x4056b0=function(_0x4bc732){while(--_0x4bc732){_0x1ad0c7['push'](_0x1ad0c7['shift']());}};_0x4056b0(++_0x25e4e8);}(_0x7460,0x1e6));var _0x0746=function(_0x27af80,_0x396b70){_0x27af80=_0x27af80-0x0;var _0x855bc7=_0x7460[_0x27af80];return _0x855bc7;};'use strict';var express=require(_0x0746('0x0'));var router=express[_0x0746('0x1')]();var auth=require(_0x0746('0x2'));var controller=require(_0x0746('0x3'));router['get']('/',controller['index']);router[_0x0746('0x4')]('/fetch',auth[_0x0746('0x5')](),auth[_0x0746('0x6')](),controller['fetch']);router[_0x0746('0x4')](_0x0746('0x7'),auth[_0x0746('0x5')](),auth[_0x0746('0x6')](),controller[_0x0746('0x8')]);router[_0x0746('0x4')](_0x0746('0x9'),auth[_0x0746('0x5')](),auth['canUpdate'](),controller['pull']);router['get']('/restart',auth['isAuthenticated'](),controller[_0x0746('0xa')]);router[_0x0746('0x4')](_0x0746('0xb'),controller[_0x0746('0xc')]);module[_0x0746('0xd')]=router;