52ddd486fd7a1f36ef064bde953e0fea25603ecb
[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 _0x024a=['getDescriptions','post','create','put','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerConfiguration.controller','get','index','/:id','isAuthenticated','show','/:id/subjects','/:id/descriptions'];(function(_0x2feb15,_0x26241b){var _0x42272e=function(_0x41e24f){while(--_0x41e24f){_0x2feb15['push'](_0x2feb15['shift']());}};_0x42272e(++_0x26241b);}(_0x024a,0x160));var _0xa024=function(_0x57862e,_0x106cb5){_0x57862e=_0x57862e-0x0;var _0x2b6223=_0x024a[_0x57862e];return _0x2b6223;};'use strict';var multer=require(_0xa024('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa024('0x1'));var express=require(_0xa024('0x2'));var router=express[_0xa024('0x3')]();var fs_extra=require(_0xa024('0x4'));var auth=require(_0xa024('0x5'));var interaction=require(_0xa024('0x6'));var config=require(_0xa024('0x7'));var controller=require(_0xa024('0x8'));router[_0xa024('0x9')]('/',auth['isAuthenticated'](),controller[_0xa024('0xa')]);router['get'](_0xa024('0xb'),auth[_0xa024('0xc')](),controller[_0xa024('0xd')]);router[_0xa024('0x9')]('/:id/fields',auth[_0xa024('0xc')](),controller['getFields']);router[_0xa024('0x9')](_0xa024('0xe'),auth[_0xa024('0xc')](),controller['getSubjects']);router[_0xa024('0x9')](_0xa024('0xf'),auth[_0xa024('0xc')](),controller[_0xa024('0x10')]);router[_0xa024('0x11')]('/',auth[_0xa024('0xc')](),controller[_0xa024('0x12')]);router[_0xa024('0x13')](_0xa024('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xa024('0x14')](_0xa024('0xb'),auth[_0xa024('0xc')](),controller[_0xa024('0x15')]);module[_0xa024('0x16')]=router;