9452f844ed516a5475acc174eb6754f1c3625622
[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 _0xf7f3=['get','index','isAuthenticated','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0xf7f3,0x12a));var _0x3f7f=function(_0x3d10e,_0x24d54a){_0x3d10e=_0x3d10e-0x0;var _0x27e52a=_0xf7f3[_0x3d10e];return _0x27e52a;};'use strict';var multer=require(_0x3f7f('0x0'));var util=require(_0x3f7f('0x1'));var path=require(_0x3f7f('0x2'));var timeout=require(_0x3f7f('0x3'));var express=require(_0x3f7f('0x4'));var router=express[_0x3f7f('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x3f7f('0x6'));var config=require(_0x3f7f('0x7'));var controller=require('./variable.controller');router[_0x3f7f('0x8')]('/',auth['isAuthenticated'](),controller[_0x3f7f('0x9')]);router[_0x3f7f('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x3f7f('0xa')](),controller[_0x3f7f('0xb')]);router[_0x3f7f('0xc')](_0x3f7f('0xd'),auth[_0x3f7f('0xa')](),controller[_0x3f7f('0xe')]);router[_0x3f7f('0xf')](_0x3f7f('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x3f7f('0x10')]=router;