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 _0xa97e=['exports','multer','util','express','Router','../../components/auth/service','../../config/environment','./intSugarcrmAccount.controller','index','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','delete','destroy'];(function(_0x166742,_0x55520c){var _0xb7814a=function(_0x18feaf){while(--_0x18feaf){_0x166742['push'](_0x166742['shift']());}};_0xb7814a(++_0x55520c);}(_0xa97e,0x9b));var _0xea97=function(_0x29206f,_0x1fa1f1){_0x29206f=_0x29206f-0x0;var _0xa3cf1a=_0xa97e[_0x29206f];return _0xa3cf1a;};'use strict';var multer=require(_0xea97('0x0'));var util=require(_0xea97('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xea97('0x2'));var router=express[_0xea97('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xea97('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xea97('0x5'));var controller=require(_0xea97('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xea97('0x7')]);router[_0xea97('0x8')](_0xea97('0x9'),auth[_0xea97('0xa')](),controller[_0xea97('0xb')]);router[_0xea97('0x8')](_0xea97('0xc'),auth[_0xea97('0xa')](),controller[_0xea97('0xd')]);router[_0xea97('0x8')](_0xea97('0xe'),auth[_0xea97('0xa')](),controller[_0xea97('0xf')]);router[_0xea97('0x10')]('/',auth[_0xea97('0xa')](),controller[_0xea97('0x11')]);router[_0xea97('0x10')]('/:id/configurations',auth[_0xea97('0xa')](),controller[_0xea97('0x12')]);router['put']('/:id',auth[_0xea97('0xa')](),controller['update']);router[_0xea97('0x13')](_0xea97('0x9'),auth['isAuthenticated'](),controller[_0xea97('0x14')]);module[_0xea97('0x15')]=router;