dbfff88b5a9f5607f4fbd4bc8eb373f1e9703622
[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 _0xbf83=['connect-timeout','express','Router','fs-extra','../../config/environment','./variable.controller','get','isAuthenticated','/:id','post','create','put','update','delete','destroy','exports','multer','path'];(function(_0x4bfac3,_0x58324d){var _0x15f0f2=function(_0xf0c511){while(--_0xf0c511){_0x4bfac3['push'](_0x4bfac3['shift']());}};_0x15f0f2(++_0x58324d);}(_0xbf83,0x11e));var _0x3bf8=function(_0x16f3d7,_0x3d8d0b){_0x16f3d7=_0x16f3d7-0x0;var _0x4552de=_0xbf83[_0x16f3d7];return _0x4552de;};'use strict';var multer=require(_0x3bf8('0x0'));var util=require('util');var path=require(_0x3bf8('0x1'));var timeout=require(_0x3bf8('0x2'));var express=require(_0x3bf8('0x3'));var router=express[_0x3bf8('0x4')]();var fs_extra=require(_0x3bf8('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3bf8('0x6'));var controller=require(_0x3bf8('0x7'));router[_0x3bf8('0x8')]('/',auth[_0x3bf8('0x9')](),controller['index']);router['get'](_0x3bf8('0xa'),auth[_0x3bf8('0x9')](),controller['show']);router[_0x3bf8('0xb')]('/',auth['isAuthenticated'](),controller[_0x3bf8('0xc')]);router[_0x3bf8('0xd')](_0x3bf8('0xa'),auth[_0x3bf8('0x9')](),controller[_0x3bf8('0xe')]);router[_0x3bf8('0xf')](_0x3bf8('0xa'),auth['isAuthenticated'](),controller[_0x3bf8('0x10')]);module[_0x3bf8('0x11')]=router;