30aa9dec4645cdf8fdd4eb8a2e6cd072b86a27b6
[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 _0x3a83=['./intVtigerConfiguration.controller','get','/:id','isAuthenticated','show','getDescriptions','create','put','delete','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x5e2639,_0x3529f){var _0x25022a=function(_0x437a57){while(--_0x437a57){_0x5e2639['push'](_0x5e2639['shift']());}};_0x25022a(++_0x3529f);}(_0x3a83,0xa3));var _0x33a8=function(_0x2f4cf5,_0x509e5a){_0x2f4cf5=_0x2f4cf5-0x0;var _0xdeadfd=_0x3a83[_0x2f4cf5];return _0xdeadfd;};'use strict';var multer=require('multer');var util=require(_0x33a8('0x0'));var path=require(_0x33a8('0x1'));var timeout=require(_0x33a8('0x2'));var express=require(_0x33a8('0x3'));var router=express[_0x33a8('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x33a8('0x5'));var interaction=require(_0x33a8('0x6'));var config=require('../../config/environment');var controller=require(_0x33a8('0x7'));router[_0x33a8('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x33a8('0x8')](_0x33a8('0x9'),auth[_0x33a8('0xa')](),controller[_0x33a8('0xb')]);router[_0x33a8('0x8')]('/:id/fields',auth[_0x33a8('0xa')](),controller['getFields']);router['get']('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0x33a8('0xa')](),controller[_0x33a8('0xc')]);router['post']('/',auth[_0x33a8('0xa')](),controller[_0x33a8('0xd')]);router[_0x33a8('0xe')](_0x33a8('0x9'),auth['isAuthenticated'](),controller['update']);router[_0x33a8('0xf')]('/:id',auth[_0x33a8('0xa')](),controller[_0x33a8('0x10')]);module['exports']=router;