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 _0x44b1=['addConfiguration','put','update','delete','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intSugarcrmAccount.controller','index','get','/:id','isAuthenticated','show','getConfigurations','/:id/fields','getFields','post'];(function(_0xb8cfbe,_0x2e81b6){var _0x227d51=function(_0x5cb1ff){while(--_0x5cb1ff){_0xb8cfbe['push'](_0xb8cfbe['shift']());}};_0x227d51(++_0x2e81b6);}(_0x44b1,0x1a8));var _0x144b=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x44b1[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0x144b('0x0'));var path=require(_0x144b('0x1'));var timeout=require(_0x144b('0x2'));var express=require(_0x144b('0x3'));var router=express[_0x144b('0x4')]();var auth=require(_0x144b('0x5'));var interaction=require(_0x144b('0x6'));var config=require('../../config/environment');var controller=require(_0x144b('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x144b('0x8')]);router[_0x144b('0x9')](_0x144b('0xa'),auth[_0x144b('0xb')](),controller[_0x144b('0xc')]);router[_0x144b('0x9')]('/:id/configurations',auth[_0x144b('0xb')](),controller[_0x144b('0xd')]);router[_0x144b('0x9')](_0x144b('0xe'),auth[_0x144b('0xb')](),controller[_0x144b('0xf')]);router[_0x144b('0x10')]('/',auth[_0x144b('0xb')](),controller['create']);router[_0x144b('0x10')]('/:id/configurations',auth[_0x144b('0xb')](),controller[_0x144b('0x11')]);router[_0x144b('0x12')](_0x144b('0xa'),auth[_0x144b('0xb')](),controller[_0x144b('0x13')]);router[_0x144b('0x14')](_0x144b('0xa'),auth[_0x144b('0xb')](),controller['destroy']);module['exports']=router;