Built motion from commit (unavailable).|2.5.23
[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 _0x4dc8=['../../config/environment','get','index','isAuthenticated','show','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express','Router'];(function(_0xd17cf8,_0x1a814c){var _0x33ffd9=function(_0x57b7db){while(--_0x57b7db){_0xd17cf8['push'](_0xd17cf8['shift']());}};_0x33ffd9(++_0x1a814c);}(_0x4dc8,0x1e7));var _0x84dc=function(_0x2bb0d1,_0x1abe7b){_0x2bb0d1=_0x2bb0d1-0x0;var _0x4d7959=_0x4dc8[_0x2bb0d1];return _0x4d7959;};'use strict';var multer=require(_0x84dc('0x0'));var util=require(_0x84dc('0x1'));var path=require(_0x84dc('0x2'));var timeout=require(_0x84dc('0x3'));var express=require(_0x84dc('0x4'));var router=express[_0x84dc('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x84dc('0x6'));var controller=require('./variable.controller');router[_0x84dc('0x7')]('/',auth['isAuthenticated'](),controller[_0x84dc('0x8')]);router[_0x84dc('0x7')]('/:id',auth[_0x84dc('0x9')](),controller[_0x84dc('0xa')]);router['post']('/',auth[_0x84dc('0x9')](),controller[_0x84dc('0xb')]);router[_0x84dc('0xc')](_0x84dc('0xd'),auth[_0x84dc('0x9')](),controller[_0x84dc('0xe')]);router[_0x84dc('0xf')](_0x84dc('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x84dc('0x10')]=router;