Built motion from commit ddca4d0d.|2.5.47
[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 _0xdc73=['index','canUpdate','fetch','isAuthenticated','reset','pull','/migrations','migrations','exports','express','Router','../../components/auth/service','./version.controller','get'];(function(_0x3439ea,_0x3c68ba){var _0x3900a3=function(_0x38f9a5){while(--_0x38f9a5){_0x3439ea['push'](_0x3439ea['shift']());}};_0x3900a3(++_0x3c68ba);}(_0xdc73,0xa3));var _0x3dc7=function(_0x123e94,_0x10c06d){_0x123e94=_0x123e94-0x0;var _0x4b8834=_0xdc73[_0x123e94];return _0x4b8834;};'use strict';var express=require(_0x3dc7('0x0'));var router=express[_0x3dc7('0x1')]();var auth=require(_0x3dc7('0x2'));var controller=require(_0x3dc7('0x3'));router[_0x3dc7('0x4')]('/',controller[_0x3dc7('0x5')]);router['get']('/fetch',auth['isAuthenticated'](),auth[_0x3dc7('0x6')](),controller[_0x3dc7('0x7')]);router[_0x3dc7('0x4')]('/reset',auth[_0x3dc7('0x8')](),auth[_0x3dc7('0x6')](),controller[_0x3dc7('0x9')]);router[_0x3dc7('0x4')]('/pull',auth[_0x3dc7('0x8')](),auth[_0x3dc7('0x6')](),controller[_0x3dc7('0xa')]);router[_0x3dc7('0x4')]('/restart',auth[_0x3dc7('0x8')](),controller['restart']);router[_0x3dc7('0x4')](_0x3dc7('0xb'),controller[_0x3dc7('0xc')]);module[_0x3dc7('0xd')]=router;