92854b1b4b25d63d8b94c2c705173c6fafc4747c
[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 _0x2d47=['/restart','restart','/migrations','migrations','exports','express','Router','./version.controller','get','index','canUpdate','/reset','reset','/pull','isAuthenticated','pull'];(function(_0x257579,_0x627180){var _0x1a329d=function(_0x27e1f8){while(--_0x27e1f8){_0x257579['push'](_0x257579['shift']());}};_0x1a329d(++_0x627180);}(_0x2d47,0x115));var _0x72d4=function(_0x1f4295,_0x5d0590){_0x1f4295=_0x1f4295-0x0;var _0x39070e=_0x2d47[_0x1f4295];return _0x39070e;};'use strict';var express=require(_0x72d4('0x0'));var router=express[_0x72d4('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x72d4('0x2'));router[_0x72d4('0x3')]('/',controller[_0x72d4('0x4')]);router['get']('/fetch',auth['isAuthenticated'](),auth[_0x72d4('0x5')](),controller['fetch']);router[_0x72d4('0x3')](_0x72d4('0x6'),auth['isAuthenticated'](),auth[_0x72d4('0x5')](),controller[_0x72d4('0x7')]);router[_0x72d4('0x3')](_0x72d4('0x8'),auth[_0x72d4('0x9')](),auth[_0x72d4('0x5')](),controller[_0x72d4('0xa')]);router[_0x72d4('0x3')](_0x72d4('0xb'),auth[_0x72d4('0x9')](),controller[_0x72d4('0xc')]);router[_0x72d4('0x3')](_0x72d4('0xd'),controller[_0x72d4('0xe')]);module[_0x72d4('0xf')]=router;