e9289ae0b49ccc5ef4ef4546e83fb3bd5b37278d
[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 _0xd795=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','/:id/fields','getFields','/:id/descriptions','getDescriptions','put','delete'];(function(_0x4412e2,_0x2fa288){var _0x153bb4=function(_0x5c3e1f){while(--_0x5c3e1f){_0x4412e2['push'](_0x4412e2['shift']());}};_0x153bb4(++_0x2fa288);}(_0xd795,0x168));var _0x5d79=function(_0x45d55e,_0x2fede3){_0x45d55e=_0x45d55e-0x0;var _0x29812a=_0xd795[_0x45d55e];return _0x29812a;};'use strict';var multer=require('multer');var util=require(_0x5d79('0x0'));var path=require('path');var timeout=require(_0x5d79('0x1'));var express=require(_0x5d79('0x2'));var router=express[_0x5d79('0x3')]();var fs_extra=require(_0x5d79('0x4'));var auth=require(_0x5d79('0x5'));var interaction=require(_0x5d79('0x6'));var config=require(_0x5d79('0x7'));var controller=require('./intVtigerConfiguration.controller');router[_0x5d79('0x8')]('/',auth[_0x5d79('0x9')](),controller[_0x5d79('0xa')]);router['get'](_0x5d79('0xb'),auth[_0x5d79('0x9')](),controller['show']);router['get'](_0x5d79('0xc'),auth['isAuthenticated'](),controller[_0x5d79('0xd')]);router['get']('/:id/subjects',auth[_0x5d79('0x9')](),controller['getSubjects']);router[_0x5d79('0x8')](_0x5d79('0xe'),auth[_0x5d79('0x9')](),controller[_0x5d79('0xf')]);router['post']('/',auth[_0x5d79('0x9')](),controller['create']);router[_0x5d79('0x10')](_0x5d79('0xb'),auth[_0x5d79('0x9')](),controller['update']);router[_0x5d79('0x11')](_0x5d79('0xb'),auth[_0x5d79('0x9')](),controller['destroy']);module['exports']=router;