4de9094946db49a6f82b9869e28a4d72090762ab
[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 _0xe70c=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index','show','create','put','/:id','update','destroy','multer','util','path'];(function(_0x4baae2,_0x487ab6){var _0x1a2285=function(_0x1cea47){while(--_0x1cea47){_0x4baae2['push'](_0x4baae2['shift']());}};_0x1a2285(++_0x487ab6);}(_0xe70c,0x1eb));var _0xce70=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0xe70c[_0x501510];return _0x1e6ee5;};'use strict';var multer=require(_0xce70('0x0'));var util=require(_0xce70('0x1'));var path=require(_0xce70('0x2'));var timeout=require(_0xce70('0x3'));var express=require(_0xce70('0x4'));var router=express[_0xce70('0x5')]();var auth=require(_0xce70('0x6'));var interaction=require(_0xce70('0x7'));var config=require(_0xce70('0x8'));var controller=require(_0xce70('0x9'));router[_0xce70('0xa')]('/',auth[_0xce70('0xb')](),controller[_0xce70('0xc')]);router[_0xce70('0xa')]('/:id',auth[_0xce70('0xb')](),controller[_0xce70('0xd')]);router['post']('/',auth[_0xce70('0xb')](),controller[_0xce70('0xe')]);router[_0xce70('0xf')](_0xce70('0x10'),auth[_0xce70('0xb')](),controller[_0xce70('0x11')]);router['delete'](_0xce70('0x10'),auth[_0xce70('0xb')](),controller[_0xce70('0x12')]);module['exports']=router;