843b33491a910c9e47a4658922b138e45dae67c1
[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 _0x9d92=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','/:id','post','create','delete','exports','multer','connect-timeout'];(function(_0x1e878f,_0x3a63e7){var _0x442563=function(_0x311f4d){while(--_0x311f4d){_0x1e878f['push'](_0x1e878f['shift']());}};_0x442563(++_0x3a63e7);}(_0x9d92,0xdf));var _0x29d9=function(_0x51ac09,_0x383098){_0x51ac09=_0x51ac09-0x0;var _0x3f827d=_0x9d92[_0x51ac09];return _0x3f827d;};'use strict';var multer=require(_0x29d9('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x29d9('0x1'));var express=require(_0x29d9('0x2'));var router=express['Router']();var fs_extra=require(_0x29d9('0x3'));var auth=require(_0x29d9('0x4'));var interaction=require(_0x29d9('0x5'));var config=require(_0x29d9('0x6'));var controller=require(_0x29d9('0x7'));router[_0x29d9('0x8')]('/',auth[_0x29d9('0x9')](),controller['index']);router[_0x29d9('0x8')](_0x29d9('0xa'),auth[_0x29d9('0x9')](),controller['show']);router[_0x29d9('0xb')]('/',auth[_0x29d9('0x9')](),controller[_0x29d9('0xc')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x29d9('0xd')](_0x29d9('0xa'),auth[_0x29d9('0x9')](),controller['destroy']);module[_0x29d9('0xe')]=router;