5f689e2c40a606c7b8aec1ba12dcd6c0641d0cbd
[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 _0xe41f=['path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','index','/:id','isAuthenticated','show','post','create','delete','exports','multer','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xe41f,0x13e));var _0xfe41=function(_0x4a0a20,_0x18ee8f){_0x4a0a20=_0x4a0a20-0x0;var _0x15b15d=_0xe41f[_0x4a0a20];return _0x15b15d;};'use strict';var multer=require(_0xfe41('0x0'));var util=require(_0xfe41('0x1'));var path=require(_0xfe41('0x2'));var timeout=require(_0xfe41('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xfe41('0x4'));var interaction=require(_0xfe41('0x5'));var config=require(_0xfe41('0x6'));var controller=require(_0xfe41('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xfe41('0x8')]);router['get'](_0xfe41('0x9'),auth[_0xfe41('0xa')](),controller[_0xfe41('0xb')]);router[_0xfe41('0xc')]('/',auth[_0xfe41('0xa')](),controller[_0xfe41('0xd')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0xfe41('0xe')](_0xfe41('0x9'),auth[_0xfe41('0xa')](),controller['destroy']);module[_0xfe41('0xf')]=router;