f8f9b5583a015b815606604ee7b30168702de692
[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 _0xdd0a=['delete','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','/:id','show','getFields','/:id/descriptions','getDescriptions','/:id/tags','post','create','setTags','put','update'];(function(_0x28dadc,_0x33a3dc){var _0x1b8496=function(_0x193426){while(--_0x193426){_0x28dadc['push'](_0x28dadc['shift']());}};_0x1b8496(++_0x33a3dc);}(_0xdd0a,0xf2));var _0xadd0=function(_0x43a1f0,_0x279e28){_0x43a1f0=_0x43a1f0-0x0;var _0x32f486=_0xdd0a[_0x43a1f0];return _0x32f486;};'use strict';var multer=require(_0xadd0('0x0'));var util=require('util');var path=require(_0xadd0('0x1'));var timeout=require(_0xadd0('0x2'));var express=require(_0xadd0('0x3'));var router=express[_0xadd0('0x4')]();var auth=require(_0xadd0('0x5'));var interaction=require(_0xadd0('0x6'));var config=require(_0xadd0('0x7'));var controller=require(_0xadd0('0x8'));router[_0xadd0('0x9')]('/',auth[_0xadd0('0xa')](),controller['index']);router[_0xadd0('0x9')](_0xadd0('0xb'),auth[_0xadd0('0xa')](),controller[_0xadd0('0xc')]);router[_0xadd0('0x9')]('/:id/fields',auth[_0xadd0('0xa')](),controller[_0xadd0('0xd')]);router['get']('/:id/subjects',auth[_0xadd0('0xa')](),controller['getSubjects']);router[_0xadd0('0x9')](_0xadd0('0xe'),auth[_0xadd0('0xa')](),controller[_0xadd0('0xf')]);router[_0xadd0('0x9')](_0xadd0('0x10'),auth['isAuthenticated'](),controller['getTags']);router[_0xadd0('0x11')]('/',auth[_0xadd0('0xa')](),controller[_0xadd0('0x12')]);router[_0xadd0('0x11')](_0xadd0('0x10'),auth['isAuthenticated'](),controller[_0xadd0('0x13')]);router[_0xadd0('0x14')]('/:id',auth['isAuthenticated'](),controller[_0xadd0('0x15')]);router[_0xadd0('0x16')](_0xadd0('0xb'),auth[_0xadd0('0xa')](),controller[_0xadd0('0x17')]);module['exports']=router;