f3a34ce66aa9dcb4fa86ebc40f7a16f3f01eee71
[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 _0x0c5d=['isAuthenticated','canUpdate','fetch','pull','/restart','restart','migrations','exports','express','Router','../../components/auth/service','./version.controller','index','get','/fetch'];(function(_0x4a4185,_0x5df1e6){var _0x16babc=function(_0x4c9db2){while(--_0x4c9db2){_0x4a4185['push'](_0x4a4185['shift']());}};_0x16babc(++_0x5df1e6);}(_0x0c5d,0xda));var _0xd0c5=function(_0x22d78a,_0x266ee0){_0x22d78a=_0x22d78a-0x0;var _0x46b80a=_0x0c5d[_0x22d78a];return _0x46b80a;};'use strict';var express=require(_0xd0c5('0x0'));var router=express[_0xd0c5('0x1')]();var auth=require(_0xd0c5('0x2'));var controller=require(_0xd0c5('0x3'));router['get']('/',controller[_0xd0c5('0x4')]);router[_0xd0c5('0x5')](_0xd0c5('0x6'),auth[_0xd0c5('0x7')](),auth[_0xd0c5('0x8')](),controller[_0xd0c5('0x9')]);router[_0xd0c5('0x5')]('/reset',auth[_0xd0c5('0x7')](),auth[_0xd0c5('0x8')](),controller['reset']);router[_0xd0c5('0x5')]('/pull',auth[_0xd0c5('0x7')](),auth[_0xd0c5('0x8')](),controller[_0xd0c5('0xa')]);router[_0xd0c5('0x5')](_0xd0c5('0xb'),auth[_0xd0c5('0x7')](),controller[_0xd0c5('0xc')]);router[_0xd0c5('0x5')]('/migrations',controller[_0xd0c5('0xd')]);module[_0xd0c5('0xe')]=router;