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