c0c07de94b0af9a3f09bd84178fa052444a2f4f5
[motion2.git] / server / api / intFreshdeskConfiguration / 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 _0x4dbc=['/:id/fields','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','delete','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','index','/:id','show'];(function(_0x369a09,_0x3af13f){var _0xaff18=function(_0x18926b){while(--_0x18926b){_0x369a09['push'](_0x369a09['shift']());}};_0xaff18(++_0x3af13f);}(_0x4dbc,0x7b));var _0xc4db=function(_0x59f6be,_0x472a09){_0x59f6be=_0x59f6be-0x0;var _0x2aef59=_0x4dbc[_0x59f6be];return _0x2aef59;};'use strict';var multer=require(_0xc4db('0x0'));var util=require(_0xc4db('0x1'));var path=require(_0xc4db('0x2'));var timeout=require('connect-timeout');var express=require(_0xc4db('0x3'));var router=express[_0xc4db('0x4')]();var fs_extra=require(_0xc4db('0x5'));var auth=require(_0xc4db('0x6'));var interaction=require(_0xc4db('0x7'));var config=require(_0xc4db('0x8'));var controller=require(_0xc4db('0x9'));router[_0xc4db('0xa')]('/',auth[_0xc4db('0xb')](),controller[_0xc4db('0xc')]);router['get'](_0xc4db('0xd'),auth[_0xc4db('0xb')](),controller[_0xc4db('0xe')]);router[_0xc4db('0xa')](_0xc4db('0xf'),auth['isAuthenticated'](),controller['getFields']);router[_0xc4db('0xa')]('/:id/subjects',auth[_0xc4db('0xb')](),controller['getSubjects']);router[_0xc4db('0xa')](_0xc4db('0x10'),auth['isAuthenticated'](),controller[_0xc4db('0x11')]);router[_0xc4db('0xa')](_0xc4db('0x12'),auth[_0xc4db('0xb')](),controller[_0xc4db('0x13')]);router[_0xc4db('0x14')]('/',auth[_0xc4db('0xb')](),controller[_0xc4db('0x15')]);router[_0xc4db('0x14')](_0xc4db('0x12'),auth[_0xc4db('0xb')](),controller['setTags']);router['put'](_0xc4db('0xd'),auth['isAuthenticated'](),controller['update']);router[_0xc4db('0x16')]('/:id',auth[_0xc4db('0xb')](),controller['destroy']);module['exports']=router;