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