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 _0x13be=['get','isAuthenticated','show','/:id/fields','getFields','post','create','/:id/configurations','put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller'];(function(_0x40fed5,_0x40e7d4){var _0xda9864=function(_0xadf496){while(--_0xadf496){_0x40fed5['push'](_0x40fed5['shift']());}};_0xda9864(++_0x40e7d4);}(_0x13be,0x141));var _0xe13b=function(_0x1deb27,_0x3cccc4){_0x1deb27=_0x1deb27-0x0;var _0x4f2cbd=_0x13be[_0x1deb27];return _0x4f2cbd;};'use strict';var multer=require(_0xe13b('0x0'));var util=require(_0xe13b('0x1'));var path=require(_0xe13b('0x2'));var timeout=require('connect-timeout');var express=require(_0xe13b('0x3'));var router=express[_0xe13b('0x4')]();var auth=require(_0xe13b('0x5'));var interaction=require(_0xe13b('0x6'));var config=require(_0xe13b('0x7'));var controller=require(_0xe13b('0x8'));router[_0xe13b('0x9')]('/',auth[_0xe13b('0xa')](),controller['index']);router['get']('/:id',auth[_0xe13b('0xa')](),controller[_0xe13b('0xb')]);router[_0xe13b('0x9')]('/:id/configurations',auth[_0xe13b('0xa')](),controller['getConfigurations']);router[_0xe13b('0x9')](_0xe13b('0xc'),auth[_0xe13b('0xa')](),controller[_0xe13b('0xd')]);router[_0xe13b('0xe')]('/',auth[_0xe13b('0xa')](),controller[_0xe13b('0xf')]);router[_0xe13b('0xe')](_0xe13b('0x10'),auth[_0xe13b('0xa')](),controller['addConfiguration']);router[_0xe13b('0x11')]('/:id',auth[_0xe13b('0xa')](),controller[_0xe13b('0x12')]);router[_0xe13b('0x13')]('/:id',auth[_0xe13b('0xa')](),controller[_0xe13b('0x14')]);module[_0xe13b('0x15')]=router;