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 _0xe073=['../../config/environment','./intSugarcrmAccount.controller','isAuthenticated','get','show','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','put','/:id','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x8de54f,_0x271987){var _0x14cba4=function(_0x58ed41){while(--_0x58ed41){_0x8de54f['push'](_0x8de54f['shift']());}};_0x14cba4(++_0x271987);}(_0xe073,0x134));var _0x3e07=function(_0xb5646e,_0x327fd7){_0xb5646e=_0xb5646e-0x0;var _0x55fe64=_0xe073[_0xb5646e];return _0x55fe64;};'use strict';var multer=require(_0x3e07('0x0'));var util=require(_0x3e07('0x1'));var path=require(_0x3e07('0x2'));var timeout=require(_0x3e07('0x3'));var express=require('express');var router=express[_0x3e07('0x4')]();var auth=require(_0x3e07('0x5'));var interaction=require(_0x3e07('0x6'));var config=require(_0x3e07('0x7'));var controller=require(_0x3e07('0x8'));router['get']('/',auth[_0x3e07('0x9')](),controller['index']);router[_0x3e07('0xa')]('/:id',auth[_0x3e07('0x9')](),controller[_0x3e07('0xb')]);router[_0x3e07('0xa')]('/:id/configurations',auth[_0x3e07('0x9')](),controller[_0x3e07('0xc')]);router['get'](_0x3e07('0xd'),auth[_0x3e07('0x9')](),controller[_0x3e07('0xe')]);router[_0x3e07('0xf')]('/',auth[_0x3e07('0x9')](),controller[_0x3e07('0x10')]);router['post'](_0x3e07('0x11'),auth[_0x3e07('0x9')](),controller['addConfiguration']);router[_0x3e07('0x12')](_0x3e07('0x13'),auth[_0x3e07('0x9')](),controller['update']);router['delete'](_0x3e07('0x13'),auth[_0x3e07('0x9')](),controller['destroy']);module[_0x3e07('0x14')]=router;