7a5ac5ea0222da4e541f4df938695b8ec14a5d13
[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 _0x8f2c=['express','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','/restart','restart','migrations','exports'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x8f2c,0x143));var _0xc8f2=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x8f2c[_0x122ef9];return _0x42fba0;};'use strict';var express=require(_0xc8f2('0x0'));var router=express[_0xc8f2('0x1')]();var auth=require(_0xc8f2('0x2'));var controller=require(_0xc8f2('0x3'));router[_0xc8f2('0x4')]('/',controller[_0xc8f2('0x5')]);router['get'](_0xc8f2('0x6'),auth[_0xc8f2('0x7')](),auth[_0xc8f2('0x8')](),controller[_0xc8f2('0x9')]);router[_0xc8f2('0x4')](_0xc8f2('0xa'),auth[_0xc8f2('0x7')](),auth[_0xc8f2('0x8')](),controller[_0xc8f2('0xb')]);router[_0xc8f2('0x4')](_0xc8f2('0xc'),auth[_0xc8f2('0x7')](),auth[_0xc8f2('0x8')](),controller['pull']);router[_0xc8f2('0x4')](_0xc8f2('0xd'),auth[_0xc8f2('0x7')](),controller[_0xc8f2('0xe')]);router['get']('/migrations',controller[_0xc8f2('0xf')]);module[_0xc8f2('0x10')]=router;