64bafda6ab91d1a702a68ff96632f882eb5ed714
[motion2.git] / server / api / intFreshsalesConfiguration / 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 _0x27c7=['multer','util','path','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','index','get','/:id','show','/:id/subjects','isAuthenticated','getSubjects','/:id/descriptions','post','create','put','delete','destroy','exports'];(function(_0x66bfe8,_0x5e10fb){var _0x16b08a=function(_0x2ef6a5){while(--_0x2ef6a5){_0x66bfe8['push'](_0x66bfe8['shift']());}};_0x16b08a(++_0x5e10fb);}(_0x27c7,0xa0));var _0x727c=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0x27c7[_0x160c73];return _0xd9302;};'use strict';var multer=require(_0x727c('0x0'));var util=require(_0x727c('0x1'));var path=require(_0x727c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x727c('0x3'));var config=require(_0x727c('0x4'));var controller=require(_0x727c('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x727c('0x6')]);router[_0x727c('0x7')](_0x727c('0x8'),auth['isAuthenticated'](),controller[_0x727c('0x9')]);router['get'](_0x727c('0xa'),auth[_0x727c('0xb')](),controller[_0x727c('0xc')]);router[_0x727c('0x7')](_0x727c('0xd'),auth[_0x727c('0xb')](),controller['getDescriptions']);router[_0x727c('0x7')]('/:id/fields',auth[_0x727c('0xb')](),controller['getFields']);router[_0x727c('0xe')]('/',auth[_0x727c('0xb')](),controller[_0x727c('0xf')]);router[_0x727c('0x10')](_0x727c('0x8'),auth['isAuthenticated'](),controller['update']);router[_0x727c('0x11')](_0x727c('0x8'),auth['isAuthenticated'](),controller[_0x727c('0x12')]);module[_0x727c('0x13')]=router;