Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / variable / 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 _0x38a4=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','index','/:id','isAuthenticated','post','create','put','delete','destroy','util'];(function(_0xe6f7f4,_0x4a0d73){var _0x2bfaef=function(_0x30e586){while(--_0x30e586){_0xe6f7f4['push'](_0xe6f7f4['shift']());}};_0x2bfaef(++_0x4a0d73);}(_0x38a4,0x6f));var _0x438a=function(_0x3f6bfc,_0x3c3ae4){_0x3f6bfc=_0x3f6bfc-0x0;var _0x1f0b7d=_0x38a4[_0x3f6bfc];return _0x1f0b7d;};'use strict';var multer=require('multer');var util=require(_0x438a('0x0'));var path=require('path');var timeout=require(_0x438a('0x1'));var express=require('express');var router=express[_0x438a('0x2')]();var auth=require(_0x438a('0x3'));var interaction=require(_0x438a('0x4'));var config=require(_0x438a('0x5'));var controller=require(_0x438a('0x6'));router[_0x438a('0x7')]('/',auth['isAuthenticated'](),controller[_0x438a('0x8')]);router['get'](_0x438a('0x9'),auth[_0x438a('0xa')](),controller['show']);router[_0x438a('0xb')]('/',auth['isAuthenticated'](),controller[_0x438a('0xc')]);router[_0x438a('0xd')](_0x438a('0x9'),auth[_0x438a('0xa')](),controller['update']);router[_0x438a('0xe')](_0x438a('0x9'),auth[_0x438a('0xa')](),controller[_0x438a('0xf')]);module['exports']=router;