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 _0xb841=['path','connect-timeout','Router','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','post','create','put','delete','destroy','exports','util'];(function(_0x57b1f5,_0x1f4a6a){var _0x25d8e3=function(_0x2da17f){while(--_0x2da17f){_0x57b1f5['push'](_0x57b1f5['shift']());}};_0x25d8e3(++_0x1f4a6a);}(_0xb841,0x19f));var _0x1b84=function(_0x5048b7,_0x5eefab){_0x5048b7=_0x5048b7-0x0;var _0x410b5f=_0xb841[_0x5048b7];return _0x410b5f;};'use strict';var multer=require('multer');var util=require(_0x1b84('0x0'));var path=require(_0x1b84('0x1'));var timeout=require(_0x1b84('0x2'));var express=require('express');var router=express[_0x1b84('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x1b84('0x4'));var config=require(_0x1b84('0x5'));var controller=require('./intFreshsalesField.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x1b84('0x6')](_0x1b84('0x7'),auth[_0x1b84('0x8')](),controller[_0x1b84('0x9')]);router[_0x1b84('0xa')]('/',auth[_0x1b84('0x8')](),controller[_0x1b84('0xb')]);router[_0x1b84('0xc')](_0x1b84('0x7'),auth[_0x1b84('0x8')](),controller['update']);router[_0x1b84('0xd')]('/:id',auth[_0x1b84('0x8')](),controller[_0x1b84('0xe')]);module[_0x1b84('0xf')]=router;