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 _0x58cc=['update','delete','exports','multer','connect-timeout','express','fs-extra','../../components/auth/service','./intSugarcrmAccount.controller','isAuthenticated','index','get','/:id','show','/:id/configurations','getConfigurations','/:id/fields','addConfiguration'];(function(_0x5b9512,_0x5bec1a){var _0x37802f=function(_0x3bb677){while(--_0x3bb677){_0x5b9512['push'](_0x5b9512['shift']());}};_0x37802f(++_0x5bec1a);}(_0x58cc,0xed));var _0xc58c=function(_0x3da832,_0x2133f1){_0x3da832=_0x3da832-0x0;var _0xe602f2=_0x58cc[_0x3da832];return _0xe602f2;};'use strict';var multer=require(_0xc58c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xc58c('0x1'));var express=require(_0xc58c('0x2'));var router=express['Router']();var fs_extra=require(_0xc58c('0x3'));var auth=require(_0xc58c('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xc58c('0x5'));router['get']('/',auth[_0xc58c('0x6')](),controller[_0xc58c('0x7')]);router[_0xc58c('0x8')](_0xc58c('0x9'),auth[_0xc58c('0x6')](),controller[_0xc58c('0xa')]);router[_0xc58c('0x8')](_0xc58c('0xb'),auth[_0xc58c('0x6')](),controller[_0xc58c('0xc')]);router[_0xc58c('0x8')](_0xc58c('0xd'),auth[_0xc58c('0x6')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xc58c('0xb'),auth['isAuthenticated'](),controller[_0xc58c('0xe')]);router['put'](_0xc58c('0x9'),auth[_0xc58c('0x6')](),controller[_0xc58c('0xf')]);router[_0xc58c('0x10')](_0xc58c('0x9'),auth[_0xc58c('0x6')](),controller['destroy']);module[_0xc58c('0x11')]=router;