6d9f5d8ca82f86fdbd102963ea59262fc45b03ce
[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 _0x3a1a=['./variable.controller','get','isAuthenticated','index','/:id','show','create','update','delete','destroy','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x1857d0,_0x6eade0){var _0x3e3c46=function(_0x3915b8){while(--_0x3915b8){_0x1857d0['push'](_0x1857d0['shift']());}};_0x3e3c46(++_0x6eade0);}(_0x3a1a,0x9b));var _0xa3a1=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x3a1a[_0x59ee6f];return _0x4c0979;};'use strict';var multer=require('multer');var util=require(_0xa3a1('0x0'));var path=require('path');var timeout=require(_0xa3a1('0x1'));var express=require(_0xa3a1('0x2'));var router=express['Router']();var auth=require(_0xa3a1('0x3'));var interaction=require(_0xa3a1('0x4'));var config=require('../../config/environment');var controller=require(_0xa3a1('0x5'));router[_0xa3a1('0x6')]('/',auth[_0xa3a1('0x7')](),controller[_0xa3a1('0x8')]);router['get'](_0xa3a1('0x9'),auth['isAuthenticated'](),controller[_0xa3a1('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa3a1('0xb')]);router['put'](_0xa3a1('0x9'),auth[_0xa3a1('0x7')](),controller[_0xa3a1('0xc')]);router[_0xa3a1('0xd')](_0xa3a1('0x9'),auth['isAuthenticated'](),controller[_0xa3a1('0xe')]);module[_0xa3a1('0xf')]=router;