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 _0xf197=['multer','util','path','Router','../../config/environment','isAuthenticated','index','get','/:id','show','post','create','put','update','delete','exports'];(function(_0x3772cd,_0x1dfb7e){var _0x219af0=function(_0x54f87f){while(--_0x54f87f){_0x3772cd['push'](_0x3772cd['shift']());}};_0x219af0(++_0x1dfb7e);}(_0xf197,0x130));var _0x7f19=function(_0x77abe8,_0x4da1cf){_0x77abe8=_0x77abe8-0x0;var _0x2eb7ee=_0xf197[_0x77abe8];return _0x2eb7ee;};'use strict';var multer=require(_0x7f19('0x0'));var util=require(_0x7f19('0x1'));var path=require(_0x7f19('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7f19('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7f19('0x4'));var controller=require('./intFreshsalesField.controller');router['get']('/',auth[_0x7f19('0x5')](),controller[_0x7f19('0x6')]);router[_0x7f19('0x7')](_0x7f19('0x8'),auth[_0x7f19('0x5')](),controller[_0x7f19('0x9')]);router[_0x7f19('0xa')]('/',auth['isAuthenticated'](),controller[_0x7f19('0xb')]);router[_0x7f19('0xc')](_0x7f19('0x8'),auth['isAuthenticated'](),controller[_0x7f19('0xd')]);router[_0x7f19('0xe')](_0x7f19('0x8'),auth[_0x7f19('0x5')](),controller['destroy']);module[_0x7f19('0xf')]=router;