411c27c7385bc340315a97d3ae9b09802c5a6f24
[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 _0x44ae=['exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','/:id','show','create','put','update','delete','destroy'];(function(_0xd94171,_0x33729a){var _0x4dc7bf=function(_0x26cf0d){while(--_0x26cf0d){_0xd94171['push'](_0xd94171['shift']());}};_0x4dc7bf(++_0x33729a);}(_0x44ae,0x17d));var _0xe44a=function(_0x4baf36,_0x4e3e17){_0x4baf36=_0x4baf36-0x0;var _0x5a029f=_0x44ae[_0x4baf36];return _0x5a029f;};'use strict';var multer=require(_0xe44a('0x0'));var util=require(_0xe44a('0x1'));var path=require(_0xe44a('0x2'));var timeout=require(_0xe44a('0x3'));var express=require('express');var router=express[_0xe44a('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xe44a('0x5'));var interaction=require(_0xe44a('0x6'));var config=require(_0xe44a('0x7'));var controller=require(_0xe44a('0x8'));router[_0xe44a('0x9')]('/',auth[_0xe44a('0xa')](),controller['index']);router[_0xe44a('0x9')](_0xe44a('0xb'),auth[_0xe44a('0xa')](),controller[_0xe44a('0xc')]);router['post']('/',auth[_0xe44a('0xa')](),controller[_0xe44a('0xd')]);router[_0xe44a('0xe')](_0xe44a('0xb'),auth['isAuthenticated'](),controller[_0xe44a('0xf')]);router[_0xe44a('0x10')](_0xe44a('0xb'),auth[_0xe44a('0xa')](),controller[_0xe44a('0x11')]);module[_0xe44a('0x12')]=router;