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