Built motion from commit 9d7072cc.|2.5.39
[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 _0x5636=['post','create','put','update','delete','exports','multer','util','Router','fs-extra','../../components/auth/service','../../config/environment','./variable.controller','get','isAuthenticated','index','/:id','show'];(function(_0x284a9e,_0x559f1f){var _0x42d0dd=function(_0xc21672){while(--_0xc21672){_0x284a9e['push'](_0x284a9e['shift']());}};_0x42d0dd(++_0x559f1f);}(_0x5636,0x102));var _0x6563=function(_0xd42d05,_0x43b588){_0xd42d05=_0xd42d05-0x0;var _0x3d3690=_0x5636[_0xd42d05];return _0x3d3690;};'use strict';var multer=require(_0x6563('0x0'));var util=require(_0x6563('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6563('0x2')]();var fs_extra=require(_0x6563('0x3'));var auth=require(_0x6563('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6563('0x5'));var controller=require(_0x6563('0x6'));router[_0x6563('0x7')]('/',auth[_0x6563('0x8')](),controller[_0x6563('0x9')]);router[_0x6563('0x7')](_0x6563('0xa'),auth[_0x6563('0x8')](),controller[_0x6563('0xb')]);router[_0x6563('0xc')]('/',auth[_0x6563('0x8')](),controller[_0x6563('0xd')]);router[_0x6563('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x6563('0xf')]);router[_0x6563('0x10')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x6563('0x11')]=router;