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 _0x956f=['put','/:id','update','delete','destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','getConfigurations','post','create','/:id/configurations','addConfiguration'];(function(_0xccf869,_0x2556a5){var _0x21a9db=function(_0xcc4835){while(--_0xcc4835){_0xccf869['push'](_0xccf869['shift']());}};_0x21a9db(++_0x2556a5);}(_0x956f,0x1bd));var _0xf956=function(_0x5e745e,_0xde2931){_0x5e745e=_0x5e745e-0x0;var _0x122dab=_0x956f[_0x5e745e];return _0x122dab;};'use strict';var multer=require(_0xf956('0x0'));var util=require(_0xf956('0x1'));var path=require(_0xf956('0x2'));var timeout=require(_0xf956('0x3'));var express=require('express');var router=express[_0xf956('0x4')]();var auth=require(_0xf956('0x5'));var interaction=require(_0xf956('0x6'));var config=require(_0xf956('0x7'));var controller=require('./intDeskAccount.controller');router[_0xf956('0x8')]('/',auth['isAuthenticated'](),controller[_0xf956('0x9')]);router[_0xf956('0x8')]('/:id',auth[_0xf956('0xa')](),controller[_0xf956('0xb')]);router[_0xf956('0x8')]('/:id/configurations',auth[_0xf956('0xa')](),controller[_0xf956('0xc')]);router[_0xf956('0x8')]('/:id/fields',auth[_0xf956('0xa')](),controller['getFields']);router[_0xf956('0xd')]('/',auth[_0xf956('0xa')](),controller[_0xf956('0xe')]);router[_0xf956('0xd')](_0xf956('0xf'),auth[_0xf956('0xa')](),controller[_0xf956('0x10')]);router[_0xf956('0x11')](_0xf956('0x12'),auth['isAuthenticated'](),controller[_0xf956('0x13')]);router[_0xf956('0x14')](_0xf956('0x12'),auth[_0xf956('0xa')](),controller[_0xf956('0x15')]);module['exports']=router;