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