63bd048c748d23afc966853dbaccdc5086517403
[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 _0xfb54=['/reset','/pull','pull','/restart','isAuthenticated','restart','/migrations','migrations','exports','express','get','index','/fetch','canUpdate','fetch'];(function(_0x458dad,_0x573c0b){var _0x534d3a=function(_0x5889af){while(--_0x5889af){_0x458dad['push'](_0x458dad['shift']());}};_0x534d3a(++_0x573c0b);}(_0xfb54,0x153));var _0x4fb5=function(_0x18c6d8,_0x2268f5){_0x18c6d8=_0x18c6d8-0x0;var _0x5317ec=_0xfb54[_0x18c6d8];return _0x5317ec;};'use strict';var express=require(_0x4fb5('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require('./version.controller');router[_0x4fb5('0x1')]('/',controller[_0x4fb5('0x2')]);router[_0x4fb5('0x1')](_0x4fb5('0x3'),auth['isAuthenticated'](),auth[_0x4fb5('0x4')](),controller[_0x4fb5('0x5')]);router[_0x4fb5('0x1')](_0x4fb5('0x6'),auth['isAuthenticated'](),auth['canUpdate'](),controller['reset']);router[_0x4fb5('0x1')](_0x4fb5('0x7'),auth['isAuthenticated'](),auth[_0x4fb5('0x4')](),controller[_0x4fb5('0x8')]);router[_0x4fb5('0x1')](_0x4fb5('0x9'),auth[_0x4fb5('0xa')](),controller[_0x4fb5('0xb')]);router[_0x4fb5('0x1')](_0x4fb5('0xc'),controller[_0x4fb5('0xd')]);module[_0x4fb5('0xe')]=router;