Built motion from commit 19a84241.|2.5.34
[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 _0x3937=['path','connect-timeout','Router','../../components/auth/service','../../config/environment','./variable.controller','get','isAuthenticated','index','/:id','show','create','put','update','exports','multer'];(function(_0x14903d,_0x296126){var _0x5005e1=function(_0x2a4eed){while(--_0x2a4eed){_0x14903d['push'](_0x14903d['shift']());}};_0x5005e1(++_0x296126);}(_0x3937,0xbf));var _0x7393=function(_0x191253,_0x16b7a9){_0x191253=_0x191253-0x0;var _0x12b5cc=_0x3937[_0x191253];return _0x12b5cc;};'use strict';var multer=require(_0x7393('0x0'));var util=require('util');var path=require(_0x7393('0x1'));var timeout=require(_0x7393('0x2'));var express=require('express');var router=express[_0x7393('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x7393('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x7393('0x5'));var controller=require(_0x7393('0x6'));router[_0x7393('0x7')]('/',auth[_0x7393('0x8')](),controller[_0x7393('0x9')]);router[_0x7393('0x7')](_0x7393('0xa'),auth[_0x7393('0x8')](),controller[_0x7393('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x7393('0xc')]);router[_0x7393('0xd')](_0x7393('0xa'),auth['isAuthenticated'](),controller[_0x7393('0xe')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x7393('0xf')]=router;