10a6a4aef3475cb35a729401f1461e221b1dcc8f
[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 _0x1b0b=['delete','destroy','exports','multer','util','path','express','Router','fs-extra','./intFreshdeskConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','/:id/descriptions','/:id/tags','getTags','post','create','setTags'];(function(_0x24de9f,_0x228cac){var _0x1de54b=function(_0x1e92c9){while(--_0x1e92c9){_0x24de9f['push'](_0x24de9f['shift']());}};_0x1de54b(++_0x228cac);}(_0x1b0b,0x173));var _0xb1b0=function(_0x68c979,_0x431cff){_0x68c979=_0x68c979-0x0;var _0x4f0001=_0x1b0b[_0x68c979];return _0x4f0001;};'use strict';var multer=require(_0xb1b0('0x0'));var util=require(_0xb1b0('0x1'));var path=require(_0xb1b0('0x2'));var timeout=require('connect-timeout');var express=require(_0xb1b0('0x3'));var router=express[_0xb1b0('0x4')]();var fs_extra=require(_0xb1b0('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb1b0('0x6'));router[_0xb1b0('0x7')]('/',auth[_0xb1b0('0x8')](),controller[_0xb1b0('0x9')]);router[_0xb1b0('0x7')](_0xb1b0('0xa'),auth[_0xb1b0('0x8')](),controller[_0xb1b0('0xb')]);router[_0xb1b0('0x7')]('/:id/fields',auth[_0xb1b0('0x8')](),controller['getFields']);router['get'](_0xb1b0('0xc'),auth[_0xb1b0('0x8')](),controller[_0xb1b0('0xd')]);router[_0xb1b0('0x7')](_0xb1b0('0xe'),auth[_0xb1b0('0x8')](),controller['getDescriptions']);router[_0xb1b0('0x7')](_0xb1b0('0xf'),auth[_0xb1b0('0x8')](),controller[_0xb1b0('0x10')]);router[_0xb1b0('0x11')]('/',auth[_0xb1b0('0x8')](),controller[_0xb1b0('0x12')]);router[_0xb1b0('0x11')](_0xb1b0('0xf'),auth[_0xb1b0('0x8')](),controller[_0xb1b0('0x13')]);router['put'](_0xb1b0('0xa'),auth[_0xb1b0('0x8')](),controller['update']);router[_0xb1b0('0x14')](_0xb1b0('0xa'),auth[_0xb1b0('0x8')](),controller[_0xb1b0('0x15')]);module[_0xb1b0('0x16')]=router;