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