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 _0xc577=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','put','update','exports','multer','connect-timeout','express','Router','fs-extra'];(function(_0x2f2cb8,_0x417d38){var _0x5a7add=function(_0xc1da1d){while(--_0xc1da1d){_0x2f2cb8['push'](_0x2f2cb8['shift']());}};_0x5a7add(++_0x417d38);}(_0xc577,0x172));var _0x7c57=function(_0xc812a0,_0x37a9d3){_0xc812a0=_0xc812a0-0x0;var _0x14f339=_0xc577[_0xc812a0];return _0x14f339;};'use strict';var multer=require(_0x7c57('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x7c57('0x1'));var express=require(_0x7c57('0x2'));var router=express[_0x7c57('0x3')]();var fs_extra=require(_0x7c57('0x4'));var auth=require(_0x7c57('0x5'));var interaction=require(_0x7c57('0x6'));var config=require(_0x7c57('0x7'));var controller=require('./intFreshsalesField.controller');router[_0x7c57('0x8')]('/',auth[_0x7c57('0x9')](),controller[_0x7c57('0xa')]);router[_0x7c57('0x8')](_0x7c57('0xb'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x7c57('0x9')](),controller['create']);router[_0x7c57('0xc')](_0x7c57('0xb'),auth[_0x7c57('0x9')](),controller[_0x7c57('0xd')]);router['delete'](_0x7c57('0xb'),auth[_0x7c57('0x9')](),controller['destroy']);module[_0x7c57('0xe')]=router;