Built motion from commit 9e1399f3.|2.5.37
[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 _0x82f0=['post','create','setTags','put','/:id','update','delete','exports','multer','util','Router','../../components/auth/service','../../components/interaction/service','./intFreshdeskConfiguration.controller','get','index','isAuthenticated','show','/:id/fields','getFields','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags'];(function(_0x5738cf,_0x1f35dc){var _0xb8ed56=function(_0x4f9445){while(--_0x4f9445){_0x5738cf['push'](_0x5738cf['shift']());}};_0xb8ed56(++_0x1f35dc);}(_0x82f0,0x9e));var _0x082f=function(_0x30ae5e,_0x391fc4){_0x30ae5e=_0x30ae5e-0x0;var _0x1f2e93=_0x82f0[_0x30ae5e];return _0x1f2e93;};'use strict';var multer=require(_0x082f('0x0'));var util=require(_0x082f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x082f('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x082f('0x3'));var interaction=require(_0x082f('0x4'));var config=require('../../config/environment');var controller=require(_0x082f('0x5'));router[_0x082f('0x6')]('/',auth['isAuthenticated'](),controller[_0x082f('0x7')]);router[_0x082f('0x6')]('/:id',auth[_0x082f('0x8')](),controller[_0x082f('0x9')]);router[_0x082f('0x6')](_0x082f('0xa'),auth[_0x082f('0x8')](),controller[_0x082f('0xb')]);router[_0x082f('0x6')]('/:id/subjects',auth[_0x082f('0x8')](),controller[_0x082f('0xc')]);router['get'](_0x082f('0xd'),auth[_0x082f('0x8')](),controller[_0x082f('0xe')]);router[_0x082f('0x6')](_0x082f('0xf'),auth[_0x082f('0x8')](),controller[_0x082f('0x10')]);router[_0x082f('0x11')]('/',auth[_0x082f('0x8')](),controller[_0x082f('0x12')]);router[_0x082f('0x11')]('/:id/tags',auth[_0x082f('0x8')](),controller[_0x082f('0x13')]);router[_0x082f('0x14')](_0x082f('0x15'),auth[_0x082f('0x8')](),controller[_0x082f('0x16')]);router[_0x082f('0x17')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x082f('0x18')]=router;