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 _0x29be=['addConfiguration','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','getFields'];(function(_0x32f054,_0x254c74){var _0xc4f975=function(_0x1d1b06){while(--_0x1d1b06){_0x32f054['push'](_0x32f054['shift']());}};_0xc4f975(++_0x254c74);}(_0x29be,0x148));var _0xe29b=function(_0x4243a3,_0x447337){_0x4243a3=_0x4243a3-0x0;var _0x1b2a33=_0x29be[_0x4243a3];return _0x1b2a33;};'use strict';var multer=require(_0xe29b('0x0'));var util=require(_0xe29b('0x1'));var path=require('path');var timeout=require(_0xe29b('0x2'));var express=require(_0xe29b('0x3'));var router=express[_0xe29b('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xe29b('0x5'));var config=require('../../config/environment');var controller=require(_0xe29b('0x6'));router[_0xe29b('0x7')]('/',auth[_0xe29b('0x8')](),controller[_0xe29b('0x9')]);router[_0xe29b('0x7')](_0xe29b('0xa'),auth[_0xe29b('0x8')](),controller['show']);router[_0xe29b('0x7')](_0xe29b('0xb'),auth[_0xe29b('0x8')](),controller[_0xe29b('0xc')]);router[_0xe29b('0x7')]('/:id/fields',auth[_0xe29b('0x8')](),controller[_0xe29b('0xd')]);router['post']('/',auth[_0xe29b('0x8')](),controller['create']);router['post'](_0xe29b('0xb'),auth[_0xe29b('0x8')](),controller[_0xe29b('0xe')]);router['put'](_0xe29b('0xa'),auth[_0xe29b('0x8')](),controller[_0xe29b('0xf')]);router[_0xe29b('0x10')](_0xe29b('0xa'),auth[_0xe29b('0x8')](),controller['destroy']);module[_0xe29b('0x11')]=router;