Built motion from commit b5996064.|2.6.21
[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 _0xd66c=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index','show','post','create','put','update','/:id','exports','multer','path','connect-timeout','express'];(function(_0x47b15f,_0x103e93){var _0x55bf25=function(_0x51fe7f){while(--_0x51fe7f){_0x47b15f['push'](_0x47b15f['shift']());}};_0x55bf25(++_0x103e93);}(_0xd66c,0x106));var _0xcd66=function(_0x35cae7,_0x827335){_0x35cae7=_0x35cae7-0x0;var _0x2f664c=_0xd66c[_0x35cae7];return _0x2f664c;};'use strict';var multer=require(_0xcd66('0x0'));var util=require('util');var path=require(_0xcd66('0x1'));var timeout=require(_0xcd66('0x2'));var express=require(_0xcd66('0x3'));var router=express[_0xcd66('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xcd66('0x5'));var interaction=require(_0xcd66('0x6'));var config=require(_0xcd66('0x7'));var controller=require(_0xcd66('0x8'));router[_0xcd66('0x9')]('/',auth[_0xcd66('0xa')](),controller[_0xcd66('0xb')]);router[_0xcd66('0x9')]('/:id',auth[_0xcd66('0xa')](),controller[_0xcd66('0xc')]);router[_0xcd66('0xd')]('/',auth[_0xcd66('0xa')](),controller[_0xcd66('0xe')]);router[_0xcd66('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xcd66('0x10')]);router['delete'](_0xcd66('0x11'),auth[_0xcd66('0xa')](),controller['destroy']);module[_0xcd66('0x12')]=router;