Built motion from commit (unavailable).|2.6.0
[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 _0xd0e0=['fs-extra','../../components/interaction/service','isAuthenticated','get','/:id','post','create','put','exports','path','connect-timeout','Router'];(function(_0x50bf5a,_0x807bba){var _0x4ddc1d=function(_0x349a61){while(--_0x349a61){_0x50bf5a['push'](_0x50bf5a['shift']());}};_0x4ddc1d(++_0x807bba);}(_0xd0e0,0x111));var _0x0d0e=function(_0x20c141,_0x2d916f){_0x20c141=_0x20c141-0x0;var _0x224b57=_0xd0e0[_0x20c141];return _0x224b57;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0d0e('0x0'));var timeout=require(_0x0d0e('0x1'));var express=require('express');var router=express[_0x0d0e('0x2')]();var fs_extra=require(_0x0d0e('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x0d0e('0x4'));var config=require('../../config/environment');var controller=require('./variable.controller');router['get']('/',auth[_0x0d0e('0x5')](),controller['index']);router[_0x0d0e('0x6')](_0x0d0e('0x7'),auth[_0x0d0e('0x5')](),controller['show']);router[_0x0d0e('0x8')]('/',auth[_0x0d0e('0x5')](),controller[_0x0d0e('0x9')]);router[_0x0d0e('0xa')](_0x0d0e('0x7'),auth[_0x0d0e('0x5')](),controller['update']);router['delete']('/:id',auth[_0x0d0e('0x5')](),controller['destroy']);module[_0x0d0e('0xb')]=router;