526b8188ece7849520466904d23ef686d57dc523
[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 _0x404b=['update','delete','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./intVtigerConfiguration.controller','isAuthenticated','get','/:id','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x404b,0xca));var _0xb404=function(_0x43f3e5,_0x4dd37b){_0x43f3e5=_0x43f3e5-0x0;var _0x30c15d=_0x404b[_0x43f3e5];return _0x30c15d;};'use strict';var multer=require(_0xb404('0x0'));var util=require(_0xb404('0x1'));var path=require('path');var timeout=require(_0xb404('0x2'));var express=require('express');var router=express[_0xb404('0x3')]();var fs_extra=require(_0xb404('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xb404('0x5'));var config=require(_0xb404('0x6'));var controller=require(_0xb404('0x7'));router['get']('/',auth[_0xb404('0x8')](),controller['index']);router[_0xb404('0x9')](_0xb404('0xa'),auth['isAuthenticated'](),controller[_0xb404('0xb')]);router[_0xb404('0x9')]('/:id/fields',auth['isAuthenticated'](),controller[_0xb404('0xc')]);router['get'](_0xb404('0xd'),auth[_0xb404('0x8')](),controller[_0xb404('0xe')]);router['get'](_0xb404('0xf'),auth[_0xb404('0x8')](),controller[_0xb404('0x10')]);router[_0xb404('0x11')]('/',auth[_0xb404('0x8')](),controller['create']);router['put'](_0xb404('0xa'),auth['isAuthenticated'](),controller[_0xb404('0x12')]);router[_0xb404('0x13')](_0xb404('0xa'),auth[_0xb404('0x8')](),controller[_0xb404('0x14')]);module[_0xb404('0x15')]=router;