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 _0x6a73=['multer','util','path','express','../../components/auth/service','../../config/environment','get','isAuthenticated','index','show','/:id/fields','/:id/subjects','post','create','put','update','delete','/:id','destroy','exports'];(function(_0x921dd7,_0x576d4d){var _0x5c8824=function(_0x333e49){while(--_0x333e49){_0x921dd7['push'](_0x921dd7['shift']());}};_0x5c8824(++_0x576d4d);}(_0x6a73,0xb4));var _0x36a7=function(_0x5cabfd,_0x5dea47){_0x5cabfd=_0x5cabfd-0x0;var _0x4bc06c=_0x6a73[_0x5cabfd];return _0x4bc06c;};'use strict';var multer=require(_0x36a7('0x0'));var util=require(_0x36a7('0x1'));var path=require(_0x36a7('0x2'));var timeout=require('connect-timeout');var express=require(_0x36a7('0x3'));var router=express['Router']();var auth=require(_0x36a7('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x36a7('0x5'));var controller=require('./intSalesforceConfiguration.controller');router[_0x36a7('0x6')]('/',auth[_0x36a7('0x7')](),controller[_0x36a7('0x8')]);router[_0x36a7('0x6')]('/:id',auth[_0x36a7('0x7')](),controller[_0x36a7('0x9')]);router['get'](_0x36a7('0xa'),auth['isAuthenticated'](),controller['getFields']);router[_0x36a7('0x6')](_0x36a7('0xb'),auth[_0x36a7('0x7')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0x36a7('0x7')](),controller['getDescriptions']);router[_0x36a7('0xc')]('/',auth['isAuthenticated'](),controller[_0x36a7('0xd')]);router[_0x36a7('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x36a7('0xf')]);router[_0x36a7('0x10')](_0x36a7('0x11'),auth[_0x36a7('0x7')](),controller[_0x36a7('0x12')]);module[_0x36a7('0x13')]=router;