f01cb4a69cf6de5121cf840105e573fbcb92e5ed
[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 _0x4335=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getTags','post','/:id/tags','setTags','put','update','destroy','exports','path'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0x4335,0xfc));var _0x5433=function(_0x54d4a8,_0x585a59){_0x54d4a8=_0x54d4a8-0x0;var _0x3b321b=_0x4335[_0x54d4a8];return _0x3b321b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5433('0x0'));var timeout=require(_0x5433('0x1'));var express=require(_0x5433('0x2'));var router=express[_0x5433('0x3')]();var fs_extra=require(_0x5433('0x4'));var auth=require(_0x5433('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x5433('0x6'));var controller=require('./intFreshdeskConfiguration.controller');router[_0x5433('0x7')]('/',auth[_0x5433('0x8')](),controller['index']);router[_0x5433('0x7')](_0x5433('0x9'),auth[_0x5433('0x8')](),controller['show']);router[_0x5433('0x7')](_0x5433('0xa'),auth[_0x5433('0x8')](),controller[_0x5433('0xb')]);router[_0x5433('0x7')](_0x5433('0xc'),auth[_0x5433('0x8')](),controller[_0x5433('0xd')]);router[_0x5433('0x7')](_0x5433('0xe'),auth[_0x5433('0x8')](),controller['getDescriptions']);router[_0x5433('0x7')]('/:id/tags',auth[_0x5433('0x8')](),controller[_0x5433('0xf')]);router[_0x5433('0x10')]('/',auth[_0x5433('0x8')](),controller['create']);router[_0x5433('0x10')](_0x5433('0x11'),auth[_0x5433('0x8')](),controller[_0x5433('0x12')]);router[_0x5433('0x13')](_0x5433('0x9'),auth[_0x5433('0x8')](),controller[_0x5433('0x14')]);router['delete'](_0x5433('0x9'),auth['isAuthenticated'](),controller[_0x5433('0x15')]);module[_0x5433('0x16')]=router;