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 _0x18d5=['index','isAuthenticated','get','canUpdate','pull','/restart','/migrations','exports','express','../../components/auth/service','./version.controller'];(function(_0x31823c,_0x3e6e4a){var _0xc959f9=function(_0x18178c){while(--_0x18178c){_0x31823c['push'](_0x31823c['shift']());}};_0xc959f9(++_0x3e6e4a);}(_0x18d5,0xfa));var _0x518d=function(_0x5ec13b,_0x3a0097){_0x5ec13b=_0x5ec13b-0x0;var _0x5c82a1=_0x18d5[_0x5ec13b];return _0x5c82a1;};'use strict';var express=require(_0x518d('0x0'));var router=express['Router']();var auth=require(_0x518d('0x1'));var controller=require(_0x518d('0x2'));router['get']('/',controller[_0x518d('0x3')]);router['get']('/fetch',auth[_0x518d('0x4')](),auth['canUpdate'](),controller['fetch']);router[_0x518d('0x5')]('/reset',auth[_0x518d('0x4')](),auth[_0x518d('0x6')](),controller['reset']);router[_0x518d('0x5')]('/pull',auth[_0x518d('0x4')](),auth[_0x518d('0x6')](),controller[_0x518d('0x7')]);router[_0x518d('0x5')](_0x518d('0x8'),auth[_0x518d('0x4')](),controller['restart']);router['get'](_0x518d('0x9'),controller['migrations']);module[_0x518d('0xa')]=router;