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 _0xd24f=['show','/:id/configurations','getConfigurations','getFields','create','post','addConfiguration','destroy','exports','multer','util','path','../../components/interaction/service','get','isAuthenticated','index','/:id'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xd24f,0x16e));var _0xfd24=function(_0x4668a6,_0x4e8a1f){_0x4668a6=_0x4668a6-0x0;var _0x23215d=_0xd24f[_0x4668a6];return _0x23215d;};'use strict';var multer=require(_0xfd24('0x0'));var util=require(_0xfd24('0x1'));var path=require(_0xfd24('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xfd24('0x3'));var config=require('../../config/environment');var controller=require('./intSalesforceAccount.controller');router[_0xfd24('0x4')]('/',auth[_0xfd24('0x5')](),controller[_0xfd24('0x6')]);router[_0xfd24('0x4')](_0xfd24('0x7'),auth[_0xfd24('0x5')](),controller[_0xfd24('0x8')]);router['get'](_0xfd24('0x9'),auth[_0xfd24('0x5')](),controller[_0xfd24('0xa')]);router[_0xfd24('0x4')]('/:id/fields',auth['isAuthenticated'](),controller[_0xfd24('0xb')]);router['post']('/',auth[_0xfd24('0x5')](),controller[_0xfd24('0xc')]);router[_0xfd24('0xd')]('/:id/configurations',auth[_0xfd24('0x5')](),controller[_0xfd24('0xe')]);router['put'](_0xfd24('0x7'),auth[_0xfd24('0x5')](),controller['update']);router['delete'](_0xfd24('0x7'),auth[_0xfd24('0x5')](),controller[_0xfd24('0xf')]);module[_0xfd24('0x10')]=router;