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