Built motion from commit 10af8726.|2.6.34
[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 _0xfd74=['get','index','/fetch','canUpdate','fetch','/reset','isAuthenticated','/restart','restart','/migrations','exports','express','../../components/auth/service','./version.controller'];(function(_0x38080e,_0x95512d){var _0x4e4c87=function(_0x2be6b3){while(--_0x2be6b3){_0x38080e['push'](_0x38080e['shift']());}};_0x4e4c87(++_0x95512d);}(_0xfd74,0x1cb));var _0x4fd7=function(_0x3f6b1b,_0x58d3d6){_0x3f6b1b=_0x3f6b1b-0x0;var _0x4a3d2b=_0xfd74[_0x3f6b1b];return _0x4a3d2b;};'use strict';var express=require(_0x4fd7('0x0'));var router=express['Router']();var auth=require(_0x4fd7('0x1'));var controller=require(_0x4fd7('0x2'));router[_0x4fd7('0x3')]('/',controller[_0x4fd7('0x4')]);router[_0x4fd7('0x3')](_0x4fd7('0x5'),auth['isAuthenticated'](),auth[_0x4fd7('0x6')](),controller[_0x4fd7('0x7')]);router['get'](_0x4fd7('0x8'),auth['isAuthenticated'](),auth[_0x4fd7('0x6')](),controller['reset']);router[_0x4fd7('0x3')]('/pull',auth[_0x4fd7('0x9')](),auth[_0x4fd7('0x6')](),controller['pull']);router[_0x4fd7('0x3')](_0x4fd7('0xa'),auth[_0x4fd7('0x9')](),controller[_0x4fd7('0xb')]);router[_0x4fd7('0x3')](_0x4fd7('0xc'),controller['migrations']);module[_0x4fd7('0xd')]=router;