651faa25dba84fc2aa9d511cf0705bd30728ed42
[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 _0x4f99=['update','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./variable.controller','get','isAuthenticated','index','post','create','/:id'];(function(_0x1a72f3,_0x217011){var _0x57ef47=function(_0x20123d){while(--_0x20123d){_0x1a72f3['push'](_0x1a72f3['shift']());}};_0x57ef47(++_0x217011);}(_0x4f99,0x157));var _0x94f9=function(_0x7147f3,_0x20ea82){_0x7147f3=_0x7147f3-0x0;var _0x3e9ace=_0x4f99[_0x7147f3];return _0x3e9ace;};'use strict';var multer=require(_0x94f9('0x0'));var util=require(_0x94f9('0x1'));var path=require('path');var timeout=require(_0x94f9('0x2'));var express=require(_0x94f9('0x3'));var router=express[_0x94f9('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x94f9('0x5'));var interaction=require(_0x94f9('0x6'));var config=require('../../config/environment');var controller=require(_0x94f9('0x7'));router[_0x94f9('0x8')]('/',auth[_0x94f9('0x9')](),controller[_0x94f9('0xa')]);router[_0x94f9('0x8')]('/:id',auth[_0x94f9('0x9')](),controller['show']);router[_0x94f9('0xb')]('/',auth['isAuthenticated'](),controller[_0x94f9('0xc')]);router['put'](_0x94f9('0xd'),auth[_0x94f9('0x9')](),controller[_0x94f9('0xe')]);router[_0x94f9('0xf')](_0x94f9('0xd'),auth[_0x94f9('0x9')](),controller[_0x94f9('0x10')]);module['exports']=router;