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 _0xd60d=['destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSalesforceAccount.controller','isAuthenticated','index','get','/:id','show','getConfigurations','/:id/fields','post','create','/:id/configurations','put','update','delete'];(function(_0x19441b,_0x5a239b){var _0x16bbd7=function(_0x4f8ecb){while(--_0x4f8ecb){_0x19441b['push'](_0x19441b['shift']());}};_0x16bbd7(++_0x5a239b);}(_0xd60d,0xff));var _0xdd60=function(_0x58f5d0,_0x4d32e9){_0x58f5d0=_0x58f5d0-0x0;var _0x58810b=_0xd60d[_0x58f5d0];return _0x58810b;};'use strict';var multer=require(_0xdd60('0x0'));var util=require(_0xdd60('0x1'));var path=require('path');var timeout=require(_0xdd60('0x2'));var express=require('express');var router=express[_0xdd60('0x3')]();var auth=require(_0xdd60('0x4'));var interaction=require(_0xdd60('0x5'));var config=require(_0xdd60('0x6'));var controller=require(_0xdd60('0x7'));router['get']('/',auth[_0xdd60('0x8')](),controller[_0xdd60('0x9')]);router[_0xdd60('0xa')](_0xdd60('0xb'),auth[_0xdd60('0x8')](),controller[_0xdd60('0xc')]);router[_0xdd60('0xa')]('/:id/configurations',auth[_0xdd60('0x8')](),controller[_0xdd60('0xd')]);router[_0xdd60('0xa')](_0xdd60('0xe'),auth[_0xdd60('0x8')](),controller['getFields']);router[_0xdd60('0xf')]('/',auth[_0xdd60('0x8')](),controller[_0xdd60('0x10')]);router[_0xdd60('0xf')](_0xdd60('0x11'),auth[_0xdd60('0x8')](),controller['addConfiguration']);router[_0xdd60('0x12')]('/:id',auth[_0xdd60('0x8')](),controller[_0xdd60('0x13')]);router[_0xdd60('0x14')](_0xdd60('0xb'),auth[_0xdd60('0x8')](),controller[_0xdd60('0x15')]);module[_0xdd60('0x16')]=router;