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