81b04f3c946436d5aec75e2ed6ad4a3f3dce9e5c
[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 _0x2137=['update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','isAuthenticated','show','/:id'];(function(_0x6cf19c,_0x2f3f02){var _0xce14f3=function(_0x474587){while(--_0x474587){_0x6cf19c['push'](_0x6cf19c['shift']());}};_0xce14f3(++_0x2f3f02);}(_0x2137,0x134));var _0x7213=function(_0x3a6acc,_0x4f51a1){_0x3a6acc=_0x3a6acc-0x0;var _0xeba8db=_0x2137[_0x3a6acc];return _0xeba8db;};'use strict';var multer=require(_0x7213('0x0'));var util=require(_0x7213('0x1'));var path=require(_0x7213('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7213('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x7213('0x4'));var interaction=require(_0x7213('0x5'));var config=require(_0x7213('0x6'));var controller=require('./variable.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x7213('0x7')]);router[_0x7213('0x8')]('/:id',auth[_0x7213('0x9')](),controller[_0x7213('0xa')]);router['post']('/',auth[_0x7213('0x9')](),controller['create']);router['put'](_0x7213('0xb'),auth['isAuthenticated'](),controller[_0x7213('0xc')]);router[_0x7213('0xd')](_0x7213('0xb'),auth[_0x7213('0x9')](),controller[_0x7213('0xe')]);module[_0x7213('0xf')]=router;