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 _0xaf08=['/:id','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','index','get'];(function(_0x5bf18d,_0x264c55){var _0x1d6cc0=function(_0x2d69d9){while(--_0x2d69d9){_0x5bf18d['push'](_0x5bf18d['shift']());}};_0x1d6cc0(++_0x264c55);}(_0xaf08,0xc7));var _0x8af0=function(_0x72895a,_0x433607){_0x72895a=_0x72895a-0x0;var _0x5226d5=_0xaf08[_0x72895a];return _0x5226d5;};'use strict';var multer=require(_0x8af0('0x0'));var util=require(_0x8af0('0x1'));var path=require('path');var timeout=require(_0x8af0('0x2'));var express=require(_0x8af0('0x3'));var router=express[_0x8af0('0x4')]();var fs_extra=require(_0x8af0('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x8af0('0x6'));var config=require(_0x8af0('0x7'));var controller=require('./intSalesforceField.controller');router['get']('/',auth[_0x8af0('0x8')](),controller[_0x8af0('0x9')]);router[_0x8af0('0xa')](_0x8af0('0xb'),auth[_0x8af0('0x8')](),controller['show']);router['post']('/',auth[_0x8af0('0x8')](),controller['create']);router['put'](_0x8af0('0xb'),auth[_0x8af0('0x8')](),controller['update']);router['delete'](_0x8af0('0xb'),auth['isAuthenticated'](),controller[_0x8af0('0xc')]);module[_0x8af0('0xd')]=router;