Built motion from commit 3e059bc2.|2.5.32
[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 _0x14c5=['multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','getFields','getSubjects','/:id/descriptions','getDescriptions','getTags','post','create','/:id/tags','setTags','update','delete','destroy','exports'];(function(_0x377dcd,_0x3286ab){var _0x157cc0=function(_0x2f94a0){while(--_0x2f94a0){_0x377dcd['push'](_0x377dcd['shift']());}};_0x157cc0(++_0x3286ab);}(_0x14c5,0xaf));var _0x514c=function(_0x16cc38,_0x4c679e){_0x16cc38=_0x16cc38-0x0;var _0x464b71=_0x14c5[_0x16cc38];return _0x464b71;};'use strict';var multer=require(_0x514c('0x0'));var util=require(_0x514c('0x1'));var path=require('path');var timeout=require(_0x514c('0x2'));var express=require(_0x514c('0x3'));var router=express[_0x514c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x514c('0x5'));var interaction=require(_0x514c('0x6'));var config=require(_0x514c('0x7'));var controller=require('./intFreshdeskConfiguration.controller');router[_0x514c('0x8')]('/',auth[_0x514c('0x9')](),controller['index']);router[_0x514c('0x8')](_0x514c('0xa'),auth['isAuthenticated'](),controller[_0x514c('0xb')]);router['get']('/:id/fields',auth[_0x514c('0x9')](),controller[_0x514c('0xc')]);router[_0x514c('0x8')]('/:id/subjects',auth[_0x514c('0x9')](),controller[_0x514c('0xd')]);router[_0x514c('0x8')](_0x514c('0xe'),auth[_0x514c('0x9')](),controller[_0x514c('0xf')]);router[_0x514c('0x8')]('/:id/tags',auth['isAuthenticated'](),controller[_0x514c('0x10')]);router[_0x514c('0x11')]('/',auth[_0x514c('0x9')](),controller[_0x514c('0x12')]);router[_0x514c('0x11')](_0x514c('0x13'),auth[_0x514c('0x9')](),controller[_0x514c('0x14')]);router['put'](_0x514c('0xa'),auth['isAuthenticated'](),controller[_0x514c('0x15')]);router[_0x514c('0x16')]('/:id',auth[_0x514c('0x9')](),controller[_0x514c('0x17')]);module[_0x514c('0x18')]=router;