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