afa7870f921c85ebcaee8d4806f34f8c4f270cb2
[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 _0x7194=['multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','getTags','post','create','/:id/tags','setTags','put','/:id','update','delete','destroy'];(function(_0x42db09,_0x46daa3){var _0x2bdfd1=function(_0x55363b){while(--_0x55363b){_0x42db09['push'](_0x42db09['shift']());}};_0x2bdfd1(++_0x46daa3);}(_0x7194,0x87));var _0x4719=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x7194[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0x4719('0x0'));var util=require('util');var path=require(_0x4719('0x1'));var timeout=require(_0x4719('0x2'));var express=require('express');var router=express[_0x4719('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x4719('0x4'));var interaction=require(_0x4719('0x5'));var config=require(_0x4719('0x6'));var controller=require('./intFreshdeskConfiguration.controller');router[_0x4719('0x7')]('/',auth[_0x4719('0x8')](),controller[_0x4719('0x9')]);router[_0x4719('0x7')]('/:id',auth[_0x4719('0x8')](),controller[_0x4719('0xa')]);router[_0x4719('0x7')](_0x4719('0xb'),auth[_0x4719('0x8')](),controller[_0x4719('0xc')]);router[_0x4719('0x7')](_0x4719('0xd'),auth[_0x4719('0x8')](),controller[_0x4719('0xe')]);router[_0x4719('0x7')](_0x4719('0xf'),auth[_0x4719('0x8')](),controller[_0x4719('0x10')]);router[_0x4719('0x7')]('/:id/tags',auth[_0x4719('0x8')](),controller[_0x4719('0x11')]);router[_0x4719('0x12')]('/',auth['isAuthenticated'](),controller[_0x4719('0x13')]);router['post'](_0x4719('0x14'),auth[_0x4719('0x8')](),controller[_0x4719('0x15')]);router[_0x4719('0x16')](_0x4719('0x17'),auth['isAuthenticated'](),controller[_0x4719('0x18')]);router[_0x4719('0x19')]('/:id',auth[_0x4719('0x8')](),controller[_0x4719('0x1a')]);module['exports']=router;