f23696db33bf62ce8faab3f3daca37648d9886a0
[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 _0x44e0=['./intVtigerConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','put','/:id','update','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x40220a,_0x22feb1){var _0x3903cc=function(_0x33a296){while(--_0x33a296){_0x40220a['push'](_0x40220a['shift']());}};_0x3903cc(++_0x22feb1);}(_0x44e0,0xf6));var _0x044e=function(_0x5269b3,_0x4fd0d3){_0x5269b3=_0x5269b3-0x0;var _0x673668=_0x44e0[_0x5269b3];return _0x673668;};'use strict';var multer=require(_0x044e('0x0'));var util=require(_0x044e('0x1'));var path=require('path');var timeout=require(_0x044e('0x2'));var express=require(_0x044e('0x3'));var router=express[_0x044e('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x044e('0x5'));var interaction=require(_0x044e('0x6'));var config=require('../../config/environment');var controller=require(_0x044e('0x7'));router[_0x044e('0x8')]('/',auth[_0x044e('0x9')](),controller[_0x044e('0xa')]);router[_0x044e('0x8')]('/:id',auth[_0x044e('0x9')](),controller[_0x044e('0xb')]);router['get'](_0x044e('0xc'),auth[_0x044e('0x9')](),controller[_0x044e('0xd')]);router[_0x044e('0x8')](_0x044e('0xe'),auth[_0x044e('0x9')](),controller[_0x044e('0xf')]);router['get'](_0x044e('0x10'),auth[_0x044e('0x9')](),controller[_0x044e('0x11')]);router['post']('/',auth[_0x044e('0x9')](),controller['create']);router[_0x044e('0x12')](_0x044e('0x13'),auth[_0x044e('0x9')](),controller[_0x044e('0x14')]);router['delete'](_0x044e('0x13'),auth[_0x044e('0x9')](),controller[_0x044e('0x15')]);module[_0x044e('0x16')]=router;