c0226f47558e84b77a378cb15c048c3a81141d3c
[motion2.git] / server / api / intVtigerConfiguration / 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 _0x8fb0=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerConfiguration.controller','isAuthenticated','index','get','/:id','show','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','post','create','destroy','multer','util','path','connect-timeout','express'];(function(_0x45b50d,_0x1d4df1){var _0x879d30=function(_0x1658dc){while(--_0x1658dc){_0x45b50d['push'](_0x45b50d['shift']());}};_0x879d30(++_0x1d4df1);}(_0x8fb0,0x154));var _0x08fb=function(_0x2070da,_0x45e586){_0x2070da=_0x2070da-0x0;var _0x4f9fe1=_0x8fb0[_0x2070da];return _0x4f9fe1;};'use strict';var multer=require(_0x08fb('0x0'));var util=require(_0x08fb('0x1'));var path=require(_0x08fb('0x2'));var timeout=require(_0x08fb('0x3'));var express=require(_0x08fb('0x4'));var router=express[_0x08fb('0x5')]();var fs_extra=require(_0x08fb('0x6'));var auth=require(_0x08fb('0x7'));var interaction=require(_0x08fb('0x8'));var config=require(_0x08fb('0x9'));var controller=require(_0x08fb('0xa'));router['get']('/',auth[_0x08fb('0xb')](),controller[_0x08fb('0xc')]);router[_0x08fb('0xd')](_0x08fb('0xe'),auth[_0x08fb('0xb')](),controller[_0x08fb('0xf')]);router[_0x08fb('0xd')](_0x08fb('0x10'),auth['isAuthenticated'](),controller['getFields']);router[_0x08fb('0xd')](_0x08fb('0x11'),auth[_0x08fb('0xb')](),controller[_0x08fb('0x12')]);router[_0x08fb('0xd')](_0x08fb('0x13'),auth[_0x08fb('0xb')](),controller['getDescriptions']);router[_0x08fb('0x14')]('/',auth[_0x08fb('0xb')](),controller[_0x08fb('0x15')]);router['put'](_0x08fb('0xe'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x08fb('0xb')](),controller[_0x08fb('0x16')]);module['exports']=router;