Built motion from commit a679711e.|2.6.15
[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 _0x80bd=['canUpdate','fetch','/reset','/pull','pull','/restart','restart','migrations','exports','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated'];(function(_0x46c45c,_0x95a8bb){var _0x5a4a28=function(_0x31a7ae){while(--_0x31a7ae){_0x46c45c['push'](_0x46c45c['shift']());}};_0x5a4a28(++_0x95a8bb);}(_0x80bd,0x199));var _0xd80b=function(_0x427d94,_0x1930d0){_0x427d94=_0x427d94-0x0;var _0x6106bf=_0x80bd[_0x427d94];return _0x6106bf;};'use strict';var express=require('express');var router=express[_0xd80b('0x0')]();var auth=require(_0xd80b('0x1'));var controller=require(_0xd80b('0x2'));router[_0xd80b('0x3')]('/',controller[_0xd80b('0x4')]);router[_0xd80b('0x3')](_0xd80b('0x5'),auth[_0xd80b('0x6')](),auth[_0xd80b('0x7')](),controller[_0xd80b('0x8')]);router[_0xd80b('0x3')](_0xd80b('0x9'),auth[_0xd80b('0x6')](),auth[_0xd80b('0x7')](),controller['reset']);router[_0xd80b('0x3')](_0xd80b('0xa'),auth[_0xd80b('0x6')](),auth['canUpdate'](),controller[_0xd80b('0xb')]);router[_0xd80b('0x3')](_0xd80b('0xc'),auth[_0xd80b('0x6')](),controller[_0xd80b('0xd')]);router['get']('/migrations',controller[_0xd80b('0xe')]);module[_0xd80b('0xf')]=router;