6db2033eb61d0dc8d18bc1c8650556585f476a02
[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 _0x1a8f=['/migrations','exports','express','Router','../../components/auth/service','./version.controller','index','get','/fetch','isAuthenticated','canUpdate','/reset','reset','/pull','restart'];(function(_0x33f7f1,_0x158559){var _0x445e29=function(_0x4d9545){while(--_0x4d9545){_0x33f7f1['push'](_0x33f7f1['shift']());}};_0x445e29(++_0x158559);}(_0x1a8f,0xd4));var _0xf1a8=function(_0x51bb38,_0x4e57a0){_0x51bb38=_0x51bb38-0x0;var _0x51c09b=_0x1a8f[_0x51bb38];return _0x51c09b;};'use strict';var express=require(_0xf1a8('0x0'));var router=express[_0xf1a8('0x1')]();var auth=require(_0xf1a8('0x2'));var controller=require(_0xf1a8('0x3'));router['get']('/',controller[_0xf1a8('0x4')]);router[_0xf1a8('0x5')](_0xf1a8('0x6'),auth[_0xf1a8('0x7')](),auth[_0xf1a8('0x8')](),controller['fetch']);router[_0xf1a8('0x5')](_0xf1a8('0x9'),auth['isAuthenticated'](),auth[_0xf1a8('0x8')](),controller[_0xf1a8('0xa')]);router[_0xf1a8('0x5')](_0xf1a8('0xb'),auth[_0xf1a8('0x7')](),auth[_0xf1a8('0x8')](),controller['pull']);router[_0xf1a8('0x5')]('/restart',auth['isAuthenticated'](),controller[_0xf1a8('0xc')]);router[_0xf1a8('0x5')](_0xf1a8('0xd'),controller['migrations']);module[_0xf1a8('0xe')]=router;