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 _0x4134=['multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','get','index','isAuthenticated','show','getConfigurations','/:id/fields','post','create','addConfiguration','put','/:id','update','delete','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4134,0x6e));var _0x4413=function(_0x556b43,_0x33f59c){_0x556b43=_0x556b43-0x0;var _0x32c8d4=_0x4134[_0x556b43];return _0x32c8d4;};'use strict';var multer=require(_0x4413('0x0'));var util=require(_0x4413('0x1'));var path=require(_0x4413('0x2'));var timeout=require(_0x4413('0x3'));var express=require('express');var router=express[_0x4413('0x4')]();var auth=require(_0x4413('0x5'));var interaction=require(_0x4413('0x6'));var config=require('../../config/environment');var controller=require(_0x4413('0x7'));router[_0x4413('0x8')]('/',auth['isAuthenticated'](),controller[_0x4413('0x9')]);router[_0x4413('0x8')]('/:id',auth[_0x4413('0xa')](),controller[_0x4413('0xb')]);router[_0x4413('0x8')]('/:id/configurations',auth[_0x4413('0xa')](),controller[_0x4413('0xc')]);router[_0x4413('0x8')](_0x4413('0xd'),auth[_0x4413('0xa')](),controller['getFields']);router[_0x4413('0xe')]('/',auth[_0x4413('0xa')](),controller[_0x4413('0xf')]);router['post']('/:id/configurations',auth[_0x4413('0xa')](),controller[_0x4413('0x10')]);router[_0x4413('0x11')](_0x4413('0x12'),auth['isAuthenticated'](),controller[_0x4413('0x13')]);router[_0x4413('0x14')](_0x4413('0x12'),auth[_0x4413('0xa')](),controller['destroy']);module[_0x4413('0x15')]=router;