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