c42e2b60c7f5ac880c8048c2ca0aa84ce39ca738
[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 _0x0d0f=['Router','../../components/auth/service','../../config/environment','./intFreshdeskConfiguration.controller','isAuthenticated','index','get','/:id','show','/:id/fields','getFields','getSubjects','getDescriptions','/:id/tags','getTags','post','create','put','update','delete','destroy','exports','multer','util','path','express'];(function(_0x46cd24,_0xb4813b){var _0x293def=function(_0x4ecfb4){while(--_0x4ecfb4){_0x46cd24['push'](_0x46cd24['shift']());}};_0x293def(++_0xb4813b);}(_0x0d0f,0xcc));var _0xf0d0=function(_0x47853b,_0x21856b){_0x47853b=_0x47853b-0x0;var _0x4deb01=_0x0d0f[_0x47853b];return _0x4deb01;};'use strict';var multer=require(_0xf0d0('0x0'));var util=require(_0xf0d0('0x1'));var path=require(_0xf0d0('0x2'));var timeout=require('connect-timeout');var express=require(_0xf0d0('0x3'));var router=express[_0xf0d0('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf0d0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf0d0('0x6'));var controller=require(_0xf0d0('0x7'));router['get']('/',auth[_0xf0d0('0x8')](),controller[_0xf0d0('0x9')]);router[_0xf0d0('0xa')](_0xf0d0('0xb'),auth[_0xf0d0('0x8')](),controller[_0xf0d0('0xc')]);router['get'](_0xf0d0('0xd'),auth[_0xf0d0('0x8')](),controller[_0xf0d0('0xe')]);router[_0xf0d0('0xa')]('/:id/subjects',auth[_0xf0d0('0x8')](),controller[_0xf0d0('0xf')]);router[_0xf0d0('0xa')]('/:id/descriptions',auth[_0xf0d0('0x8')](),controller[_0xf0d0('0x10')]);router[_0xf0d0('0xa')](_0xf0d0('0x11'),auth[_0xf0d0('0x8')](),controller[_0xf0d0('0x12')]);router[_0xf0d0('0x13')]('/',auth[_0xf0d0('0x8')](),controller[_0xf0d0('0x14')]);router['post'](_0xf0d0('0x11'),auth[_0xf0d0('0x8')](),controller['setTags']);router[_0xf0d0('0x15')](_0xf0d0('0xb'),auth[_0xf0d0('0x8')](),controller[_0xf0d0('0x16')]);router[_0xf0d0('0x17')](_0xf0d0('0xb'),auth[_0xf0d0('0x8')](),controller[_0xf0d0('0x18')]);module[_0xf0d0('0x19')]=router;