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 _0xde84=['./intSalesforceAccount.controller','get','/:id','isAuthenticated','show','/:id/fields','getFields','/:id/configurations','addConfiguration','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4ed520,_0x21be63){var _0x4415a6=function(_0x14b151){while(--_0x14b151){_0x4ed520['push'](_0x4ed520['shift']());}};_0x4415a6(++_0x21be63);}(_0xde84,0x84));var _0x4de8=function(_0x4b67cd,_0x44f906){_0x4b67cd=_0x4b67cd-0x0;var _0x17cffb=_0xde84[_0x4b67cd];return _0x17cffb;};'use strict';var multer=require(_0x4de8('0x0'));var util=require(_0x4de8('0x1'));var path=require(_0x4de8('0x2'));var timeout=require(_0x4de8('0x3'));var express=require('express');var router=express[_0x4de8('0x4')]();var auth=require(_0x4de8('0x5'));var interaction=require(_0x4de8('0x6'));var config=require(_0x4de8('0x7'));var controller=require(_0x4de8('0x8'));router[_0x4de8('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x4de8('0x9')](_0x4de8('0xa'),auth[_0x4de8('0xb')](),controller[_0x4de8('0xc')]);router[_0x4de8('0x9')]('/:id/configurations',auth[_0x4de8('0xb')](),controller['getConfigurations']);router[_0x4de8('0x9')](_0x4de8('0xd'),auth[_0x4de8('0xb')](),controller[_0x4de8('0xe')]);router['post']('/',auth[_0x4de8('0xb')](),controller['create']);router['post'](_0x4de8('0xf'),auth[_0x4de8('0xb')](),controller[_0x4de8('0x10')]);router['put'](_0x4de8('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x4de8('0x11')]('/:id',auth[_0x4de8('0xb')](),controller[_0x4de8('0x12')]);module[_0x4de8('0x13')]=router;