e4c3c9d936170a70b295070334e66141a6d83079
[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 _0xa4ba=['create','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','fs-extra','../../config/environment','./variable.controller','get','isAuthenticated'];(function(_0x43e4b3,_0x1444de){var _0x10c655=function(_0x56c01d){while(--_0x56c01d){_0x43e4b3['push'](_0x43e4b3['shift']());}};_0x10c655(++_0x1444de);}(_0xa4ba,0x1b7));var _0xaa4b=function(_0x2aea9e,_0x1f587f){_0x2aea9e=_0x2aea9e-0x0;var _0x430b92=_0xa4ba[_0x2aea9e];return _0x430b92;};'use strict';var multer=require('multer');var util=require(_0xaa4b('0x0'));var path=require(_0xaa4b('0x1'));var timeout=require(_0xaa4b('0x2'));var express=require(_0xaa4b('0x3'));var router=express['Router']();var fs_extra=require(_0xaa4b('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xaa4b('0x5'));var controller=require(_0xaa4b('0x6'));router[_0xaa4b('0x7')]('/',auth[_0xaa4b('0x8')](),controller['index']);router[_0xaa4b('0x7')]('/:id',auth[_0xaa4b('0x8')](),controller['show']);router['post']('/',auth[_0xaa4b('0x8')](),controller[_0xaa4b('0x9')]);router[_0xaa4b('0xa')](_0xaa4b('0xb'),auth[_0xaa4b('0x8')](),controller[_0xaa4b('0xc')]);router[_0xaa4b('0xd')](_0xaa4b('0xb'),auth[_0xaa4b('0x8')](),controller[_0xaa4b('0xe')]);module[_0xaa4b('0xf')]=router;