Built motion from commit 53172ac8.|2.6.30
[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 _0xa0f6=['get','/:id','show','getDescriptions','post','create','delete','exports','util','express','Router','fs-extra','../../config/environment','./intVtigerConfiguration.controller','isAuthenticated'];(function(_0x53e3de,_0x13da7b){var _0x7b905b=function(_0x29b56a){while(--_0x29b56a){_0x53e3de['push'](_0x53e3de['shift']());}};_0x7b905b(++_0x13da7b);}(_0xa0f6,0x116));var _0x6a0f=function(_0x1495c0,_0x2af3bf){_0x1495c0=_0x1495c0-0x0;var _0x36bbfe=_0xa0f6[_0x1495c0];return _0x36bbfe;};'use strict';var multer=require('multer');var util=require(_0x6a0f('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6a0f('0x1'));var router=express[_0x6a0f('0x2')]();var fs_extra=require(_0x6a0f('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x6a0f('0x4'));var controller=require(_0x6a0f('0x5'));router['get']('/',auth[_0x6a0f('0x6')](),controller['index']);router[_0x6a0f('0x7')](_0x6a0f('0x8'),auth[_0x6a0f('0x6')](),controller[_0x6a0f('0x9')]);router['get']('/:id/fields',auth[_0x6a0f('0x6')](),controller['getFields']);router['get']('/:id/subjects',auth[_0x6a0f('0x6')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0x6a0f('0x6')](),controller[_0x6a0f('0xa')]);router[_0x6a0f('0xb')]('/',auth['isAuthenticated'](),controller[_0x6a0f('0xc')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x6a0f('0xd')]('/:id',auth[_0x6a0f('0x6')](),controller['destroy']);module[_0x6a0f('0xe')]=router;