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 _0xfb30=['get','isAuthenticated','index','/:id','post','create','put','update','destroy','exports','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller'];(function(_0x3e5569,_0x179a19){var _0x369067=function(_0x40e569){while(--_0x40e569){_0x3e5569['push'](_0x3e5569['shift']());}};_0x369067(++_0x179a19);}(_0xfb30,0x88));var _0x0fb3=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xfb30[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0x0fb3('0x0'));var util=require(_0x0fb3('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x0fb3('0x2'));var router=express['Router']();var fs_extra=require(_0x0fb3('0x3'));var auth=require(_0x0fb3('0x4'));var interaction=require(_0x0fb3('0x5'));var config=require(_0x0fb3('0x6'));var controller=require(_0x0fb3('0x7'));router[_0x0fb3('0x8')]('/',auth[_0x0fb3('0x9')](),controller[_0x0fb3('0xa')]);router[_0x0fb3('0x8')](_0x0fb3('0xb'),auth[_0x0fb3('0x9')](),controller['show']);router[_0x0fb3('0xc')]('/',auth['isAuthenticated'](),controller[_0x0fb3('0xd')]);router[_0x0fb3('0xe')](_0x0fb3('0xb'),auth[_0x0fb3('0x9')](),controller[_0x0fb3('0xf')]);router['delete']('/:id',auth[_0x0fb3('0x9')](),controller[_0x0fb3('0x10')]);module[_0x0fb3('0x11')]=router;