5177b0ef44019bd75e402f4d797fdeb52ca82ece
[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 _0x3c05=['/:id/subjects','getSubjects','getDescriptions','/:id/fields','getFields','update','delete','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id'];(function(_0x293865,_0x2f8e6b){var _0x2ef8ce=function(_0x2a4bda){while(--_0x2a4bda){_0x293865['push'](_0x293865['shift']());}};_0x2ef8ce(++_0x2f8e6b);}(_0x3c05,0x1d7));var _0x53c0=function(_0xbafdf,_0x47c717){_0xbafdf=_0xbafdf-0x0;var _0x126475=_0x3c05[_0xbafdf];return _0x126475;};'use strict';var multer=require('multer');var util=require(_0x53c0('0x0'));var path=require(_0x53c0('0x1'));var timeout=require('connect-timeout');var express=require(_0x53c0('0x2'));var router=express[_0x53c0('0x3')]();var fs_extra=require(_0x53c0('0x4'));var auth=require(_0x53c0('0x5'));var interaction=require(_0x53c0('0x6'));var config=require('../../config/environment');var controller=require(_0x53c0('0x7'));router[_0x53c0('0x8')]('/',auth[_0x53c0('0x9')](),controller[_0x53c0('0xa')]);router['get'](_0x53c0('0xb'),auth[_0x53c0('0x9')](),controller['show']);router[_0x53c0('0x8')](_0x53c0('0xc'),auth[_0x53c0('0x9')](),controller[_0x53c0('0xd')]);router[_0x53c0('0x8')]('/:id/descriptions',auth[_0x53c0('0x9')](),controller[_0x53c0('0xe')]);router[_0x53c0('0x8')](_0x53c0('0xf'),auth[_0x53c0('0x9')](),controller[_0x53c0('0x10')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0x53c0('0x9')](),controller[_0x53c0('0x11')]);router[_0x53c0('0x12')]('/:id',auth[_0x53c0('0x9')](),controller[_0x53c0('0x13')]);module[_0x53c0('0x14')]=router;