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