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 _0x899e=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intDeskAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','post','put','update','delete','destroy','exports','util','path','express'];(function(_0x4d337e,_0x2f7eed){var _0x247963=function(_0x3d6564){while(--_0x3d6564){_0x4d337e['push'](_0x4d337e['shift']());}};_0x247963(++_0x2f7eed);}(_0x899e,0xe4));var _0xe899=function(_0x582c7,_0x53fcc7){_0x582c7=_0x582c7-0x0;var _0xc22542=_0x899e[_0x582c7];return _0xc22542;};'use strict';var multer=require('multer');var util=require(_0xe899('0x0'));var path=require(_0xe899('0x1'));var timeout=require('connect-timeout');var express=require(_0xe899('0x2'));var router=express[_0xe899('0x3')]();var fs_extra=require(_0xe899('0x4'));var auth=require(_0xe899('0x5'));var interaction=require(_0xe899('0x6'));var config=require('../../config/environment');var controller=require(_0xe899('0x7'));router[_0xe899('0x8')]('/',auth['isAuthenticated'](),controller[_0xe899('0x9')]);router[_0xe899('0x8')](_0xe899('0xa'),auth[_0xe899('0xb')](),controller['show']);router['get'](_0xe899('0xc'),auth['isAuthenticated'](),controller[_0xe899('0xd')]);router['get'](_0xe899('0xe'),auth[_0xe899('0xb')](),controller['getFields']);router[_0xe899('0xf')]('/',auth[_0xe899('0xb')](),controller['create']);router[_0xe899('0xf')](_0xe899('0xc'),auth[_0xe899('0xb')](),controller['addConfiguration']);router[_0xe899('0x10')]('/:id',auth[_0xe899('0xb')](),controller[_0xe899('0x11')]);router[_0xe899('0x12')](_0xe899('0xa'),auth[_0xe899('0xb')](),controller[_0xe899('0x13')]);module[_0xe899('0x14')]=router;