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