Built motion from commit 092f8824.|2.5.49
[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 _0x9567=['../../components/auth/service','../../components/interaction/service','./variable.controller','isAuthenticated','get','/:id','show','create','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x10e9f8,_0x8679e){var _0x37c6f7=function(_0x2d1579){while(--_0x2d1579){_0x10e9f8['push'](_0x10e9f8['shift']());}};_0x37c6f7(++_0x8679e);}(_0x9567,0xdc));var _0x7956=function(_0x2889cf,_0x23eb2f){_0x2889cf=_0x2889cf-0x0;var _0x3ea8c0=_0x9567[_0x2889cf];return _0x3ea8c0;};'use strict';var multer=require(_0x7956('0x0'));var util=require(_0x7956('0x1'));var path=require(_0x7956('0x2'));var timeout=require(_0x7956('0x3'));var express=require(_0x7956('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x7956('0x5'));var interaction=require(_0x7956('0x6'));var config=require('../../config/environment');var controller=require(_0x7956('0x7'));router['get']('/',auth[_0x7956('0x8')](),controller['index']);router[_0x7956('0x9')](_0x7956('0xa'),auth['isAuthenticated'](),controller[_0x7956('0xb')]);router['post']('/',auth[_0x7956('0x8')](),controller[_0x7956('0xc')]);router['put'](_0x7956('0xa'),auth[_0x7956('0x8')](),controller['update']);router[_0x7956('0xd')](_0x7956('0xa'),auth[_0x7956('0x8')](),controller['destroy']);module[_0x7956('0xe')]=router;