Built motion from commit e02f907f.|2.6.14
[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 _0x9d6a=['./intVtigerConfiguration.controller','isAuthenticated','index','get','/:id','show','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','update','destroy','multer','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x822f7f,_0x355c78){var _0x4c2a28=function(_0x933b07){while(--_0x933b07){_0x822f7f['push'](_0x822f7f['shift']());}};_0x4c2a28(++_0x355c78);}(_0x9d6a,0xe0));var _0xa9d6=function(_0x5bf2cf,_0x2b9a8a){_0x5bf2cf=_0x5bf2cf-0x0;var _0x1715e6=_0x9d6a[_0x5bf2cf];return _0x1715e6;};'use strict';var multer=require(_0xa9d6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa9d6('0x1'));var express=require('express');var router=express[_0xa9d6('0x2')]();var fs_extra=require(_0xa9d6('0x3'));var auth=require(_0xa9d6('0x4'));var interaction=require(_0xa9d6('0x5'));var config=require(_0xa9d6('0x6'));var controller=require(_0xa9d6('0x7'));router['get']('/',auth[_0xa9d6('0x8')](),controller[_0xa9d6('0x9')]);router[_0xa9d6('0xa')](_0xa9d6('0xb'),auth[_0xa9d6('0x8')](),controller[_0xa9d6('0xc')]);router['get']('/:id/fields',auth[_0xa9d6('0x8')](),controller['getFields']);router['get'](_0xa9d6('0xd'),auth[_0xa9d6('0x8')](),controller['getSubjects']);router[_0xa9d6('0xa')](_0xa9d6('0xe'),auth['isAuthenticated'](),controller[_0xa9d6('0xf')]);router[_0xa9d6('0x10')]('/',auth['isAuthenticated'](),controller[_0xa9d6('0x11')]);router[_0xa9d6('0x12')](_0xa9d6('0xb'),auth['isAuthenticated'](),controller[_0xa9d6('0x13')]);router['delete'](_0xa9d6('0xb'),auth[_0xa9d6('0x8')](),controller[_0xa9d6('0x14')]);module['exports']=router;