Built motion from commit 3e059bc2.|2.5.32
[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 _0x8e44=['pull','/restart','isAuthenticated','restart','/migrations','exports','express','./version.controller','index','/fetch','fetch','get','/reset','canUpdate','reset','/pull'];(function(_0x32b0fa,_0x4ad2d6){var _0x23826e=function(_0x4fc0fd){while(--_0x4fc0fd){_0x32b0fa['push'](_0x32b0fa['shift']());}};_0x23826e(++_0x4ad2d6);}(_0x8e44,0x136));var _0x48e4=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0x8e44[_0x36eaaa];return _0x461349;};'use strict';var express=require(_0x48e4('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0x48e4('0x1'));router['get']('/',controller[_0x48e4('0x2')]);router['get'](_0x48e4('0x3'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x48e4('0x4')]);router[_0x48e4('0x5')](_0x48e4('0x6'),auth['isAuthenticated'](),auth[_0x48e4('0x7')](),controller[_0x48e4('0x8')]);router['get'](_0x48e4('0x9'),auth['isAuthenticated'](),auth[_0x48e4('0x7')](),controller[_0x48e4('0xa')]);router[_0x48e4('0x5')](_0x48e4('0xb'),auth[_0x48e4('0xc')](),controller[_0x48e4('0xd')]);router[_0x48e4('0x5')](_0x48e4('0xe'),controller['migrations']);module[_0x48e4('0xf')]=router;