Built motion from commit da617fac.|2.6.6
[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 _0x5af0=['show','post','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x35cbb6,_0x4588cc){var _0x3830b8=function(_0x4e6d8c){while(--_0x4e6d8c){_0x35cbb6['push'](_0x35cbb6['shift']());}};_0x3830b8(++_0x4588cc);}(_0x5af0,0x1eb));var _0x05af=function(_0x541051,_0x557dc7){_0x541051=_0x541051-0x0;var _0x1eb28d=_0x5af0[_0x541051];return _0x1eb28d;};'use strict';var multer=require(_0x05af('0x0'));var util=require(_0x05af('0x1'));var path=require(_0x05af('0x2'));var timeout=require(_0x05af('0x3'));var express=require(_0x05af('0x4'));var router=express[_0x05af('0x5')]();var fs_extra=require(_0x05af('0x6'));var auth=require(_0x05af('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x05af('0x8'));var controller=require('./variable.controller');router[_0x05af('0x9')]('/',auth[_0x05af('0xa')](),controller[_0x05af('0xb')]);router['get'](_0x05af('0xc'),auth['isAuthenticated'](),controller[_0x05af('0xd')]);router[_0x05af('0xe')]('/',auth[_0x05af('0xa')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x05af('0xf')]);router[_0x05af('0x10')](_0x05af('0xc'),auth['isAuthenticated'](),controller[_0x05af('0x11')]);module['exports']=router;