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