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