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 _0x6c4b=['getConfigurations','/:id/fields','post','create','addConfiguration','put','update','delete','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmAccount.controller','index','/:id','isAuthenticated','get','/:id/configurations'];(function(_0x53b6d8,_0x4338ca){var _0x167940=function(_0x45b3ad){while(--_0x45b3ad){_0x53b6d8['push'](_0x53b6d8['shift']());}};_0x167940(++_0x4338ca);}(_0x6c4b,0x93));var _0xb6c4=function(_0x5cbd05,_0xcead5){_0x5cbd05=_0x5cbd05-0x0;var _0x1b961b=_0x6c4b[_0x5cbd05];return _0x1b961b;};'use strict';var multer=require(_0xb6c4('0x0'));var util=require(_0xb6c4('0x1'));var path=require(_0xb6c4('0x2'));var timeout=require('connect-timeout');var express=require(_0xb6c4('0x3'));var router=express[_0xb6c4('0x4')]();var auth=require(_0xb6c4('0x5'));var interaction=require(_0xb6c4('0x6'));var config=require(_0xb6c4('0x7'));var controller=require(_0xb6c4('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xb6c4('0x9')]);router['get'](_0xb6c4('0xa'),auth[_0xb6c4('0xb')](),controller['show']);router[_0xb6c4('0xc')](_0xb6c4('0xd'),auth[_0xb6c4('0xb')](),controller[_0xb6c4('0xe')]);router[_0xb6c4('0xc')](_0xb6c4('0xf'),auth[_0xb6c4('0xb')](),controller['getFields']);router[_0xb6c4('0x10')]('/',auth[_0xb6c4('0xb')](),controller[_0xb6c4('0x11')]);router[_0xb6c4('0x10')]('/:id/configurations',auth[_0xb6c4('0xb')](),controller[_0xb6c4('0x12')]);router[_0xb6c4('0x13')](_0xb6c4('0xa'),auth[_0xb6c4('0xb')](),controller[_0xb6c4('0x14')]);router[_0xb6c4('0x15')](_0xb6c4('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0xb6c4('0x16')]=router;