Built motion from commit (unavailable).|2.5.11
[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 _0x440f=['delete','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./variable.controller','get','isAuthenticated','/:id','show','create','update'];(function(_0x20b0bc,_0x126df6){var _0xc5e34f=function(_0x495855){while(--_0x495855){_0x20b0bc['push'](_0x20b0bc['shift']());}};_0xc5e34f(++_0x126df6);}(_0x440f,0x143));var _0xf440=function(_0x2e2d78,_0x3eabe5){_0x2e2d78=_0x2e2d78-0x0;var _0x7b7e3e=_0x440f[_0x2e2d78];return _0x7b7e3e;};'use strict';var multer=require('multer');var util=require(_0xf440('0x0'));var path=require(_0xf440('0x1'));var timeout=require(_0xf440('0x2'));var express=require('express');var router=express[_0xf440('0x3')]();var auth=require(_0xf440('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf440('0x5'));var controller=require(_0xf440('0x6'));router[_0xf440('0x7')]('/',auth[_0xf440('0x8')](),controller['index']);router[_0xf440('0x7')](_0xf440('0x9'),auth[_0xf440('0x8')](),controller[_0xf440('0xa')]);router['post']('/',auth[_0xf440('0x8')](),controller[_0xf440('0xb')]);router['put'](_0xf440('0x9'),auth[_0xf440('0x8')](),controller[_0xf440('0xc')]);router[_0xf440('0xd')]('/:id',auth[_0xf440('0x8')](),controller[_0xf440('0xe')]);module[_0xf440('0xf')]=router;