Built motion from commit 3c2ce842.|2.6.31
[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 _0xbcbd=['put','/:id','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerConfiguration.controller','get','isAuthenticated','index','show','getSubjects','/:id/descriptions','getDescriptions','post'];(function(_0x8f8842,_0x33cab3){var _0x32e64c=function(_0x18a388){while(--_0x18a388){_0x8f8842['push'](_0x8f8842['shift']());}};_0x32e64c(++_0x33cab3);}(_0xbcbd,0x138));var _0xdbcb=function(_0x265f52,_0x2d59d1){_0x265f52=_0x265f52-0x0;var _0x108c85=_0xbcbd[_0x265f52];return _0x108c85;};'use strict';var multer=require(_0xdbcb('0x0'));var util=require('util');var path=require(_0xdbcb('0x1'));var timeout=require(_0xdbcb('0x2'));var express=require(_0xdbcb('0x3'));var router=express[_0xdbcb('0x4')]();var fs_extra=require(_0xdbcb('0x5'));var auth=require(_0xdbcb('0x6'));var interaction=require(_0xdbcb('0x7'));var config=require(_0xdbcb('0x8'));var controller=require(_0xdbcb('0x9'));router[_0xdbcb('0xa')]('/',auth[_0xdbcb('0xb')](),controller[_0xdbcb('0xc')]);router['get']('/:id',auth[_0xdbcb('0xb')](),controller[_0xdbcb('0xd')]);router[_0xdbcb('0xa')]('/:id/fields',auth[_0xdbcb('0xb')](),controller['getFields']);router[_0xdbcb('0xa')]('/:id/subjects',auth[_0xdbcb('0xb')](),controller[_0xdbcb('0xe')]);router[_0xdbcb('0xa')](_0xdbcb('0xf'),auth['isAuthenticated'](),controller[_0xdbcb('0x10')]);router[_0xdbcb('0x11')]('/',auth[_0xdbcb('0xb')](),controller['create']);router[_0xdbcb('0x12')](_0xdbcb('0x13'),auth[_0xdbcb('0xb')](),controller['update']);router[_0xdbcb('0x14')](_0xdbcb('0x13'),auth[_0xdbcb('0xb')](),controller[_0xdbcb('0x15')]);module['exports']=router;