31c0b65eb302d33e9b9050e8ea71eeb059efcc53
[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 _0xa709=['isAuthenticated','create','put','/:id','delete','destroy','exports','path','connect-timeout','express','Router','../../components/interaction/service','./variable.controller','get'];(function(_0x2dbf78,_0x432d11){var _0x261b77=function(_0x5f3f5f){while(--_0x5f3f5f){_0x2dbf78['push'](_0x2dbf78['shift']());}};_0x261b77(++_0x432d11);}(_0xa709,0xf5));var _0x9a70=function(_0x5037ab,_0x43209e){_0x5037ab=_0x5037ab-0x0;var _0x512adb=_0xa709[_0x5037ab];return _0x512adb;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x9a70('0x0'));var timeout=require(_0x9a70('0x1'));var express=require(_0x9a70('0x2'));var router=express[_0x9a70('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x9a70('0x4'));var config=require('../../config/environment');var controller=require(_0x9a70('0x5'));router[_0x9a70('0x6')]('/',auth[_0x9a70('0x7')](),controller['index']);router[_0x9a70('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x9a70('0x7')](),controller[_0x9a70('0x8')]);router[_0x9a70('0x9')](_0x9a70('0xa'),auth[_0x9a70('0x7')](),controller['update']);router[_0x9a70('0xb')]('/:id',auth[_0x9a70('0x7')](),controller[_0x9a70('0xc')]);module[_0x9a70('0xd')]=router;