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 _0x3b25=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','get','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put','/:id','delete','destroy','multer','util','path','express'];(function(_0x1af05b,_0x5134b5){var _0x5be7cc=function(_0x2d4ac0){while(--_0x2d4ac0){_0x1af05b['push'](_0x1af05b['shift']());}};_0x5be7cc(++_0x5134b5);}(_0x3b25,0x10d));var _0x53b2=function(_0x514b91,_0x27f153){_0x514b91=_0x514b91-0x0;var _0x38d6bb=_0x3b25[_0x514b91];return _0x38d6bb;};'use strict';var multer=require(_0x53b2('0x0'));var util=require(_0x53b2('0x1'));var path=require(_0x53b2('0x2'));var timeout=require('connect-timeout');var express=require(_0x53b2('0x3'));var router=express[_0x53b2('0x4')]();var fs_extra=require(_0x53b2('0x5'));var auth=require(_0x53b2('0x6'));var interaction=require(_0x53b2('0x7'));var config=require('../../config/environment');var controller=require(_0x53b2('0x8'));router[_0x53b2('0x9')]('/',auth[_0x53b2('0xa')](),controller['index']);router[_0x53b2('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x53b2('0xb')]);router[_0x53b2('0x9')](_0x53b2('0xc'),auth[_0x53b2('0xa')](),controller[_0x53b2('0xd')]);router['get'](_0x53b2('0xe'),auth[_0x53b2('0xa')](),controller['getFields']);router[_0x53b2('0xf')]('/',auth['isAuthenticated'](),controller[_0x53b2('0x10')]);router[_0x53b2('0xf')](_0x53b2('0xc'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x53b2('0x11')](_0x53b2('0x12'),auth[_0x53b2('0xa')](),controller['update']);router[_0x53b2('0x13')](_0x53b2('0x12'),auth['isAuthenticated'](),controller[_0x53b2('0x14')]);module['exports']=router;