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