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 _0x4c13=['connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','destroy','exports','multer','path'];(function(_0x26462c,_0xd20a35){var _0x509a42=function(_0x1b22c9){while(--_0x1b22c9){_0x26462c['push'](_0x26462c['shift']());}};_0x509a42(++_0xd20a35);}(_0x4c13,0x1c6));var _0x34c1=function(_0x1c3286,_0x404ee9){_0x1c3286=_0x1c3286-0x0;var _0x40a371=_0x4c13[_0x1c3286];return _0x40a371;};'use strict';var multer=require(_0x34c1('0x0'));var util=require('util');var path=require(_0x34c1('0x1'));var timeout=require(_0x34c1('0x2'));var express=require(_0x34c1('0x3'));var router=express['Router']();var fs_extra=require(_0x34c1('0x4'));var auth=require(_0x34c1('0x5'));var interaction=require(_0x34c1('0x6'));var config=require('../../config/environment');var controller=require('./intSugarcrmField.controller');router[_0x34c1('0x7')]('/',auth[_0x34c1('0x8')](),controller[_0x34c1('0x9')]);router[_0x34c1('0x7')]('/:id',auth[_0x34c1('0x8')](),controller[_0x34c1('0xa')]);router[_0x34c1('0xb')]('/',auth[_0x34c1('0x8')](),controller[_0x34c1('0xc')]);router[_0x34c1('0xd')](_0x34c1('0xe'),auth[_0x34c1('0x8')](),controller[_0x34c1('0xf')]);router[_0x34c1('0x10')]('/:id',auth[_0x34c1('0x8')](),controller[_0x34c1('0x11')]);module[_0x34c1('0x12')]=router;