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