Built motion from commit c116dc8b.|2.6.30
[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 _0x99f6=['/reset','canUpdate','/pull','restart','/migrations','exports','express','Router','../../components/auth/service','./version.controller','index','/fetch','isAuthenticated','fetch','get'];(function(_0x413f3c,_0x2e61fd){var _0x422eea=function(_0x422661){while(--_0x422661){_0x413f3c['push'](_0x413f3c['shift']());}};_0x422eea(++_0x2e61fd);}(_0x99f6,0xc9));var _0x699f=function(_0x4d05a0,_0x53aa7e){_0x4d05a0=_0x4d05a0-0x0;var _0x4c999c=_0x99f6[_0x4d05a0];return _0x4c999c;};'use strict';var express=require(_0x699f('0x0'));var router=express[_0x699f('0x1')]();var auth=require(_0x699f('0x2'));var controller=require(_0x699f('0x3'));router['get']('/',controller[_0x699f('0x4')]);router['get'](_0x699f('0x5'),auth[_0x699f('0x6')](),auth['canUpdate'](),controller[_0x699f('0x7')]);router[_0x699f('0x8')](_0x699f('0x9'),auth[_0x699f('0x6')](),auth[_0x699f('0xa')](),controller['reset']);router[_0x699f('0x8')](_0x699f('0xb'),auth[_0x699f('0x6')](),auth[_0x699f('0xa')](),controller['pull']);router['get']('/restart',auth[_0x699f('0x6')](),controller[_0x699f('0xc')]);router[_0x699f('0x8')](_0x699f('0xd'),controller['migrations']);module[_0x699f('0xe')]=router;