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