Built motion from commit 3c2ce842.|2.6.31
[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 _0xd82e=['index','/fetch','fetch','/reset','isAuthenticated','canUpdate','/restart','restart','express','../../components/auth/service','./version.controller','get'];(function(_0x531d41,_0x10c594){var _0x5b062e=function(_0x471971){while(--_0x471971){_0x531d41['push'](_0x531d41['shift']());}};_0x5b062e(++_0x10c594);}(_0xd82e,0x11c));var _0xed82=function(_0x5967da,_0x533fd1){_0x5967da=_0x5967da-0x0;var _0x3edc84=_0xd82e[_0x5967da];return _0x3edc84;};'use strict';var express=require(_0xed82('0x0'));var router=express['Router']();var auth=require(_0xed82('0x1'));var controller=require(_0xed82('0x2'));router[_0xed82('0x3')]('/',controller[_0xed82('0x4')]);router[_0xed82('0x3')](_0xed82('0x5'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xed82('0x6')]);router[_0xed82('0x3')](_0xed82('0x7'),auth[_0xed82('0x8')](),auth[_0xed82('0x9')](),controller['reset']);router[_0xed82('0x3')]('/pull',auth[_0xed82('0x8')](),auth['canUpdate'](),controller['pull']);router['get'](_0xed82('0xa'),auth[_0xed82('0x8')](),controller[_0xed82('0xb')]);router['get']('/migrations',controller['migrations']);module['exports']=router;