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