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