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 _0x2756=['get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','delete','exports','multer','Router','fs-extra','../../config/environment'];(function(_0x9e8449,_0x1aa651){var _0x4399f6=function(_0x25a30f){while(--_0x25a30f){_0x9e8449['push'](_0x9e8449['shift']());}};_0x4399f6(++_0x1aa651);}(_0x2756,0x1ea));var _0x6275=function(_0x1e91eb,_0x5829a3){_0x1e91eb=_0x1e91eb-0x0;var _0x2af75a=_0x2756[_0x1e91eb];return _0x2af75a;};'use strict';var multer=require(_0x6275('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6275('0x1')]();var fs_extra=require(_0x6275('0x2'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x6275('0x3'));var controller=require('./intFreshsalesAccount.controller');router[_0x6275('0x4')]('/',auth[_0x6275('0x5')](),controller[_0x6275('0x6')]);router[_0x6275('0x4')](_0x6275('0x7'),auth[_0x6275('0x5')](),controller[_0x6275('0x8')]);router['get'](_0x6275('0x9'),auth[_0x6275('0x5')](),controller[_0x6275('0xa')]);router[_0x6275('0x4')](_0x6275('0xb'),auth[_0x6275('0x5')](),controller[_0x6275('0xc')]);router[_0x6275('0xd')]('/',auth[_0x6275('0x5')](),controller[_0x6275('0xe')]);router[_0x6275('0xd')]('/:id/configurations',auth[_0x6275('0x5')](),controller[_0x6275('0xf')]);router[_0x6275('0x10')](_0x6275('0x7'),auth['isAuthenticated'](),controller['update']);router[_0x6275('0x11')](_0x6275('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0x6275('0x12')]=router;