Built motion from commit (unavailable).|2.4.9
[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 _0x1492=['./version.controller','get','index','/fetch','isAuthenticated','canUpdate','fetch','reset','/restart','/migrations','migrations','exports','express','Router'];(function(_0x23c5cc,_0x1de75c){var _0x436f8c=function(_0x10293c){while(--_0x10293c){_0x23c5cc['push'](_0x23c5cc['shift']());}};_0x436f8c(++_0x1de75c);}(_0x1492,0xa6));var _0x2149=function(_0x2d344f,_0x25fa84){_0x2d344f=_0x2d344f-0x0;var _0x2e796b=_0x1492[_0x2d344f];return _0x2e796b;};'use strict';var express=require(_0x2149('0x0'));var router=express[_0x2149('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x2149('0x2'));router[_0x2149('0x3')]('/',controller[_0x2149('0x4')]);router['get'](_0x2149('0x5'),auth[_0x2149('0x6')](),auth[_0x2149('0x7')](),controller[_0x2149('0x8')]);router['get']('/reset',auth[_0x2149('0x6')](),auth['canUpdate'](),controller[_0x2149('0x9')]);router['get']('/pull',auth[_0x2149('0x6')](),auth[_0x2149('0x7')](),controller['pull']);router[_0x2149('0x3')](_0x2149('0xa'),auth[_0x2149('0x6')](),controller['restart']);router['get'](_0x2149('0xb'),controller[_0x2149('0xc')]);module[_0x2149('0xd')]=router;