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 _0xf2c3=['create','put','/:id','update','delete','destroy','exports','multer','util','path','Router','../../components/interaction/service','../../config/environment','./intSalesforceConfiguration.controller','get','index','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getDescriptions','post'];(function(_0x587fb5,_0x59cb3b){var _0x551105=function(_0x5bbef4){while(--_0x5bbef4){_0x587fb5['push'](_0x587fb5['shift']());}};_0x551105(++_0x59cb3b);}(_0xf2c3,0x1bc));var _0x3f2c=function(_0x292a5a,_0x533c73){_0x292a5a=_0x292a5a-0x0;var _0x2715c5=_0xf2c3[_0x292a5a];return _0x2715c5;};'use strict';var multer=require(_0x3f2c('0x0'));var util=require(_0x3f2c('0x1'));var path=require(_0x3f2c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3f2c('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x3f2c('0x4'));var config=require(_0x3f2c('0x5'));var controller=require(_0x3f2c('0x6'));router[_0x3f2c('0x7')]('/',auth['isAuthenticated'](),controller[_0x3f2c('0x8')]);router[_0x3f2c('0x7')]('/:id',auth[_0x3f2c('0x9')](),controller[_0x3f2c('0xa')]);router['get'](_0x3f2c('0xb'),auth[_0x3f2c('0x9')](),controller[_0x3f2c('0xc')]);router[_0x3f2c('0x7')](_0x3f2c('0xd'),auth[_0x3f2c('0x9')](),controller['getSubjects']);router['get']('/:id/descriptions',auth['isAuthenticated'](),controller[_0x3f2c('0xe')]);router[_0x3f2c('0xf')]('/',auth['isAuthenticated'](),controller[_0x3f2c('0x10')]);router[_0x3f2c('0x11')](_0x3f2c('0x12'),auth[_0x3f2c('0x9')](),controller[_0x3f2c('0x13')]);router[_0x3f2c('0x14')](_0x3f2c('0x12'),auth['isAuthenticated'](),controller[_0x3f2c('0x15')]);module[_0x3f2c('0x16')]=router;