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