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