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