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 _0x207c=['create','addConfiguration','delete','destroy','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post'];(function(_0x5c71d2,_0x3f5557){var _0x34d47e=function(_0xc9087d){while(--_0xc9087d){_0x5c71d2['push'](_0x5c71d2['shift']());}};_0x34d47e(++_0x3f5557);}(_0x207c,0x1e8));var _0xc207=function(_0x282f68,_0x239640){_0x282f68=_0x282f68-0x0;var _0x1aba38=_0x207c[_0x282f68];return _0x1aba38;};'use strict';var multer=require('multer');var util=require(_0xc207('0x0'));var path=require(_0xc207('0x1'));var express=require(_0xc207('0x2'));var router=express[_0xc207('0x3')]();var auth=require(_0xc207('0x4'));var interaction=require(_0xc207('0x5'));var config=require(_0xc207('0x6'));var controller=require('./intDeskAccount.controller');router[_0xc207('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xc207('0x8'),auth[_0xc207('0x9')](),controller[_0xc207('0xa')]);router['get'](_0xc207('0xb'),auth[_0xc207('0x9')](),controller[_0xc207('0xc')]);router['get'](_0xc207('0xd'),auth[_0xc207('0x9')](),controller[_0xc207('0xe')]);router[_0xc207('0xf')]('/',auth[_0xc207('0x9')](),controller[_0xc207('0x10')]);router['post']('/:id/configurations',auth['isAuthenticated'](),controller[_0xc207('0x11')]);router['put'](_0xc207('0x8'),auth[_0xc207('0x9')](),controller['update']);router[_0xc207('0x12')](_0xc207('0x8'),auth[_0xc207('0x9')](),controller[_0xc207('0x13')]);module[_0xc207('0x14')]=router;