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 _0x08a5=['/:id/configurations','getConfigurations','/:id/fields','post','create','delete','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x1bce94,_0x156c69){var _0xc432a6=function(_0x598342){while(--_0x598342){_0x1bce94['push'](_0x1bce94['shift']());}};_0xc432a6(++_0x156c69);}(_0x08a5,0x111));var _0x508a=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x08a5[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x508a('0x0'));var util=require(_0x508a('0x1'));var path=require(_0x508a('0x2'));var timeout=require(_0x508a('0x3'));var express=require('express');var router=express[_0x508a('0x4')]();var fs_extra=require(_0x508a('0x5'));var auth=require(_0x508a('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x508a('0x7'));var controller=require('./intSalesforceAccount.controller');router[_0x508a('0x8')]('/',auth[_0x508a('0x9')](),controller[_0x508a('0xa')]);router[_0x508a('0x8')](_0x508a('0xb'),auth[_0x508a('0x9')](),controller['show']);router[_0x508a('0x8')](_0x508a('0xc'),auth['isAuthenticated'](),controller[_0x508a('0xd')]);router[_0x508a('0x8')](_0x508a('0xe'),auth['isAuthenticated'](),controller['getFields']);router[_0x508a('0xf')]('/',auth['isAuthenticated'](),controller[_0x508a('0x10')]);router[_0x508a('0xf')]('/:id/configurations',auth[_0x508a('0x9')](),controller['addConfiguration']);router['put'](_0x508a('0xb'),auth[_0x508a('0x9')](),controller['update']);router[_0x508a('0x11')](_0x508a('0xb'),auth[_0x508a('0x9')](),controller[_0x508a('0x12')]);module['exports']=router;