Built motion from commit f0a64034.|2.6.11
[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 _0x83e9=['reset','pull','/restart','restart','/migrations','migrations','express','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','/reset'];(function(_0x289764,_0x1f2ff5){var _0x3515f9=function(_0x3159b7){while(--_0x3159b7){_0x289764['push'](_0x289764['shift']());}};_0x3515f9(++_0x1f2ff5);}(_0x83e9,0x1d6));var _0x983e=function(_0x10a6ee,_0x15678d){_0x10a6ee=_0x10a6ee-0x0;var _0x4e7cac=_0x83e9[_0x10a6ee];return _0x4e7cac;};'use strict';var express=require(_0x983e('0x0'));var router=express[_0x983e('0x1')]();var auth=require(_0x983e('0x2'));var controller=require(_0x983e('0x3'));router[_0x983e('0x4')]('/',controller[_0x983e('0x5')]);router['get'](_0x983e('0x6'),auth[_0x983e('0x7')](),auth[_0x983e('0x8')](),controller['fetch']);router[_0x983e('0x4')](_0x983e('0x9'),auth[_0x983e('0x7')](),auth[_0x983e('0x8')](),controller[_0x983e('0xa')]);router[_0x983e('0x4')]('/pull',auth[_0x983e('0x7')](),auth['canUpdate'](),controller[_0x983e('0xb')]);router[_0x983e('0x4')](_0x983e('0xc'),auth[_0x983e('0x7')](),controller[_0x983e('0xd')]);router[_0x983e('0x4')](_0x983e('0xe'),controller[_0x983e('0xf')]);module['exports']=router;