Built motion from commit 3a7e82ea.|2.6.29
[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 _0x54c7=['../../config/environment','./intVtigerConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','create','update','exports','multer','util','path','express','Router','../../components/auth/service'];(function(_0x27340d,_0x2813a9){var _0x4b73bf=function(_0x2f2459){while(--_0x2f2459){_0x27340d['push'](_0x27340d['shift']());}};_0x4b73bf(++_0x2813a9);}(_0x54c7,0x9a));var _0x754c=function(_0x3d4f47,_0x4833e1){_0x3d4f47=_0x3d4f47-0x0;var _0x5b3559=_0x54c7[_0x3d4f47];return _0x5b3559;};'use strict';var multer=require(_0x754c('0x0'));var util=require(_0x754c('0x1'));var path=require(_0x754c('0x2'));var timeout=require('connect-timeout');var express=require(_0x754c('0x3'));var router=express[_0x754c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x754c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x754c('0x6'));var controller=require(_0x754c('0x7'));router[_0x754c('0x8')]('/',auth[_0x754c('0x9')](),controller['index']);router[_0x754c('0x8')](_0x754c('0xa'),auth[_0x754c('0x9')](),controller[_0x754c('0xb')]);router[_0x754c('0x8')](_0x754c('0xc'),auth[_0x754c('0x9')](),controller[_0x754c('0xd')]);router[_0x754c('0x8')](_0x754c('0xe'),auth[_0x754c('0x9')](),controller['getSubjects']);router['get'](_0x754c('0xf'),auth[_0x754c('0x9')](),controller[_0x754c('0x10')]);router['post']('/',auth[_0x754c('0x9')](),controller[_0x754c('0x11')]);router['put'](_0x754c('0xa'),auth[_0x754c('0x9')](),controller[_0x754c('0x12')]);router['delete'](_0x754c('0xa'),auth[_0x754c('0x9')](),controller['destroy']);module[_0x754c('0x13')]=router;