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