e5245837d53c77a7f30917455278d20fc03ed3a3
[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 _0x7c4f=['../../config/environment','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getTags','create','/:id/tags','setTags','put','update','delete','destroy','exports','connect-timeout','../../components/interaction/service'];(function(_0x593f11,_0x12621d){var _0x582041=function(_0x1fbffc){while(--_0x1fbffc){_0x593f11['push'](_0x593f11['shift']());}};_0x582041(++_0x12621d);}(_0x7c4f,0xda));var _0xf7c4=function(_0x5738fb,_0x495279){_0x5738fb=_0x5738fb-0x0;var _0x4bbdc3=_0x7c4f[_0x5738fb];return _0x4bbdc3;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xf7c4('0x0'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xf7c4('0x1'));var config=require(_0xf7c4('0x2'));var controller=require('./intFreshdeskConfiguration.controller');router[_0xf7c4('0x3')]('/',auth[_0xf7c4('0x4')](),controller[_0xf7c4('0x5')]);router[_0xf7c4('0x3')](_0xf7c4('0x6'),auth[_0xf7c4('0x4')](),controller[_0xf7c4('0x7')]);router[_0xf7c4('0x3')](_0xf7c4('0x8'),auth[_0xf7c4('0x4')](),controller[_0xf7c4('0x9')]);router[_0xf7c4('0x3')](_0xf7c4('0xa'),auth['isAuthenticated'](),controller[_0xf7c4('0xb')]);router[_0xf7c4('0x3')](_0xf7c4('0xc'),auth[_0xf7c4('0x4')](),controller['getDescriptions']);router[_0xf7c4('0x3')]('/:id/tags',auth['isAuthenticated'](),controller[_0xf7c4('0xd')]);router['post']('/',auth[_0xf7c4('0x4')](),controller[_0xf7c4('0xe')]);router['post'](_0xf7c4('0xf'),auth[_0xf7c4('0x4')](),controller[_0xf7c4('0x10')]);router[_0xf7c4('0x11')]('/:id',auth[_0xf7c4('0x4')](),controller[_0xf7c4('0x12')]);router[_0xf7c4('0x13')](_0xf7c4('0x6'),auth['isAuthenticated'](),controller[_0xf7c4('0x14')]);module[_0xf7c4('0x15')]=router;