Built motion from commit da617fac.|2.6.6
[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 _0x598c=['express','Router','../../components/auth/service','./version.controller','get','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','/restart','restart','/migrations','migrations'];(function(_0x4cb408,_0x2054c9){var _0x28fc52=function(_0x5a2d57){while(--_0x5a2d57){_0x4cb408['push'](_0x4cb408['shift']());}};_0x28fc52(++_0x2054c9);}(_0x598c,0xe1));var _0xc598=function(_0x12ce51,_0x159e83){_0x12ce51=_0x12ce51-0x0;var _0x500653=_0x598c[_0x12ce51];return _0x500653;};'use strict';var express=require(_0xc598('0x0'));var router=express[_0xc598('0x1')]();var auth=require(_0xc598('0x2'));var controller=require(_0xc598('0x3'));router[_0xc598('0x4')]('/',controller['index']);router['get']('/fetch',auth[_0xc598('0x5')](),auth[_0xc598('0x6')](),controller[_0xc598('0x7')]);router[_0xc598('0x4')](_0xc598('0x8'),auth[_0xc598('0x5')](),auth[_0xc598('0x6')](),controller[_0xc598('0x9')]);router['get'](_0xc598('0xa'),auth[_0xc598('0x5')](),auth[_0xc598('0x6')](),controller['pull']);router[_0xc598('0x4')](_0xc598('0xb'),auth[_0xc598('0x5')](),controller[_0xc598('0xc')]);router[_0xc598('0x4')](_0xc598('0xd'),controller[_0xc598('0xe')]);module['exports']=router;