1b506e12337555be0e783b4398e57ae697d60a28
[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 _0x7ac8=['util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerConfiguration.controller','get','isAuthenticated','show','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create','/:id','delete','destroy','exports','multer'];(function(_0x1597f3,_0x43f2ff){var _0x1d8bdb=function(_0x2c66bb){while(--_0x2c66bb){_0x1597f3['push'](_0x1597f3['shift']());}};_0x1d8bdb(++_0x43f2ff);}(_0x7ac8,0x13a));var _0x87ac=function(_0x29b756,_0xfeb77a){_0x29b756=_0x29b756-0x0;var _0x2b464a=_0x7ac8[_0x29b756];return _0x2b464a;};'use strict';var multer=require(_0x87ac('0x0'));var util=require(_0x87ac('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x87ac('0x2'));var router=express['Router']();var fs_extra=require(_0x87ac('0x3'));var auth=require(_0x87ac('0x4'));var interaction=require(_0x87ac('0x5'));var config=require(_0x87ac('0x6'));var controller=require(_0x87ac('0x7'));router[_0x87ac('0x8')]('/',auth[_0x87ac('0x9')](),controller['index']);router[_0x87ac('0x8')]('/:id',auth[_0x87ac('0x9')](),controller[_0x87ac('0xa')]);router['get'](_0x87ac('0xb'),auth[_0x87ac('0x9')](),controller['getFields']);router[_0x87ac('0x8')](_0x87ac('0xc'),auth[_0x87ac('0x9')](),controller[_0x87ac('0xd')]);router[_0x87ac('0x8')](_0x87ac('0xe'),auth['isAuthenticated'](),controller[_0x87ac('0xf')]);router['post']('/',auth[_0x87ac('0x9')](),controller[_0x87ac('0x10')]);router['put'](_0x87ac('0x11'),auth[_0x87ac('0x9')](),controller['update']);router[_0x87ac('0x12')](_0x87ac('0x11'),auth['isAuthenticated'](),controller[_0x87ac('0x13')]);module[_0x87ac('0x14')]=router;