bf692610a7708bc4912cac69dd8a25ef08f0134a
[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 _0x0633=['../../components/auth/service','../../components/interaction/service','./variable.controller','index','get','/:id','isAuthenticated','show','post','create','update','delete','destroy','multer','util','path','connect-timeout','Router'];(function(_0x2db39a,_0x5455a4){var _0x38e5f9=function(_0x39c303){while(--_0x39c303){_0x2db39a['push'](_0x2db39a['shift']());}};_0x38e5f9(++_0x5455a4);}(_0x0633,0x12d));var _0x3063=function(_0x267d4,_0x38e093){_0x267d4=_0x267d4-0x0;var _0x36d792=_0x0633[_0x267d4];return _0x36d792;};'use strict';var multer=require(_0x3063('0x0'));var util=require(_0x3063('0x1'));var path=require(_0x3063('0x2'));var timeout=require(_0x3063('0x3'));var express=require('express');var router=express[_0x3063('0x4')]();var auth=require(_0x3063('0x5'));var interaction=require(_0x3063('0x6'));var config=require('../../config/environment');var controller=require(_0x3063('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x3063('0x8')]);router[_0x3063('0x9')](_0x3063('0xa'),auth[_0x3063('0xb')](),controller[_0x3063('0xc')]);router[_0x3063('0xd')]('/',auth[_0x3063('0xb')](),controller[_0x3063('0xe')]);router['put']('/:id',auth[_0x3063('0xb')](),controller[_0x3063('0xf')]);router[_0x3063('0x10')](_0x3063('0xa'),auth[_0x3063('0xb')](),controller[_0x3063('0x11')]);module['exports']=router;