Built motion from commit (unavailable).|2.5.4
[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 _0x7f4c=['post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./variable.controller','isAuthenticated','index','/:id','show'];(function(_0x3f7bf5,_0x5d567a){var _0x2cc6a8=function(_0x7f3499){while(--_0x7f3499){_0x3f7bf5['push'](_0x3f7bf5['shift']());}};_0x2cc6a8(++_0x5d567a);}(_0x7f4c,0xde));var _0xc7f4=function(_0x31fb05,_0x45e4a0){_0x31fb05=_0x31fb05-0x0;var _0x4e0a34=_0x7f4c[_0x31fb05];return _0x4e0a34;};'use strict';var multer=require(_0xc7f4('0x0'));var util=require(_0xc7f4('0x1'));var path=require(_0xc7f4('0x2'));var timeout=require(_0xc7f4('0x3'));var express=require(_0xc7f4('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xc7f4('0x5'));var config=require(_0xc7f4('0x6'));var controller=require(_0xc7f4('0x7'));router['get']('/',auth[_0xc7f4('0x8')](),controller[_0xc7f4('0x9')]);router['get'](_0xc7f4('0xa'),auth[_0xc7f4('0x8')](),controller[_0xc7f4('0xb')]);router[_0xc7f4('0xc')]('/',auth[_0xc7f4('0x8')](),controller[_0xc7f4('0xd')]);router[_0xc7f4('0xe')](_0xc7f4('0xa'),auth['isAuthenticated'](),controller[_0xc7f4('0xf')]);router[_0xc7f4('0x10')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xc7f4('0x11')]=router;