e7a0136fba8d50073c76183108902fc80275ba34
[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 _0x37f6=['Router','fs-extra','../../components/auth/service','isAuthenticated','/:id','show','/:id/fields','getFields','get','/:id/descriptions','getDescriptions','post','create','update','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x5bbdf7,_0x2e1a8a){var _0x14122d=function(_0x47b7d1){while(--_0x47b7d1){_0x5bbdf7['push'](_0x5bbdf7['shift']());}};_0x14122d(++_0x2e1a8a);}(_0x37f6,0xcd));var _0x637f=function(_0x5af9ba,_0x30adfb){_0x5af9ba=_0x5af9ba-0x0;var _0x488c7c=_0x37f6[_0x5af9ba];return _0x488c7c;};'use strict';var multer=require(_0x637f('0x0'));var util=require(_0x637f('0x1'));var path=require(_0x637f('0x2'));var timeout=require(_0x637f('0x3'));var express=require(_0x637f('0x4'));var router=express[_0x637f('0x5')]();var fs_extra=require(_0x637f('0x6'));var auth=require(_0x637f('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intVtigerConfiguration.controller');router['get']('/',auth[_0x637f('0x8')](),controller['index']);router['get'](_0x637f('0x9'),auth[_0x637f('0x8')](),controller[_0x637f('0xa')]);router['get'](_0x637f('0xb'),auth[_0x637f('0x8')](),controller[_0x637f('0xc')]);router[_0x637f('0xd')]('/:id/subjects',auth[_0x637f('0x8')](),controller['getSubjects']);router[_0x637f('0xd')](_0x637f('0xe'),auth[_0x637f('0x8')](),controller[_0x637f('0xf')]);router[_0x637f('0x10')]('/',auth[_0x637f('0x8')](),controller[_0x637f('0x11')]);router['put']('/:id',auth[_0x637f('0x8')](),controller[_0x637f('0x12')]);router[_0x637f('0x13')](_0x637f('0x9'),auth[_0x637f('0x8')](),controller['destroy']);module[_0x637f('0x14')]=router;