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