1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xb254=['get','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','/:id/tags','post','create','put','update','/:id','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./intFreshdeskConfiguration.controller','isAuthenticated','index','show'];(function(_0x4f42ea,_0x383f3d){var _0x59a4c3=function(_0x3303bb){while(--_0x3303bb){_0x4f42ea['push'](_0x4f42ea['shift']());}};_0x59a4c3(++_0x383f3d);}(_0xb254,0x165));var _0x4b25=function(_0x509b26,_0x1bcdff){_0x509b26=_0x509b26-0x0;var _0x2531a6=_0xb254[_0x509b26];return _0x2531a6;};'use strict';var multer=require('multer');var util=require(_0x4b25('0x0'));var path=require(_0x4b25('0x1'));var timeout=require(_0x4b25('0x2'));var express=require(_0x4b25('0x3'));var router=express[_0x4b25('0x4')]();var fs_extra=require(_0x4b25('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4b25('0x6'));var controller=require(_0x4b25('0x7'));router['get']('/',auth[_0x4b25('0x8')](),controller[_0x4b25('0x9')]);router['get']('/:id',auth[_0x4b25('0x8')](),controller[_0x4b25('0xa')]);router[_0x4b25('0xb')](_0x4b25('0xc'),auth[_0x4b25('0x8')](),controller[_0x4b25('0xd')]);router[_0x4b25('0xb')](_0x4b25('0xe'),auth[_0x4b25('0x8')](),controller[_0x4b25('0xf')]);router[_0x4b25('0xb')]('/:id/descriptions',auth[_0x4b25('0x8')](),controller[_0x4b25('0x10')]);router['get'](_0x4b25('0x11'),auth['isAuthenticated'](),controller['getTags']);router[_0x4b25('0x12')]('/',auth[_0x4b25('0x8')](),controller[_0x4b25('0x13')]);router[_0x4b25('0x12')]('/:id/tags',auth[_0x4b25('0x8')](),controller['setTags']);router[_0x4b25('0x14')]('/:id',auth[_0x4b25('0x8')](),controller[_0x4b25('0x15')]);router['delete'](_0x4b25('0x16'),auth[_0x4b25('0x8')](),controller['destroy']);module['exports']=router;