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