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 _0x6ce9=['update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','isAuthenticated','index','get','show','post','put','/:id'];(function(_0x21d85a,_0x31d0a0){var _0x2dbcb0=function(_0x3218e9){while(--_0x3218e9){_0x21d85a['push'](_0x21d85a['shift']());}};_0x2dbcb0(++_0x31d0a0);}(_0x6ce9,0x76));var _0x96ce=function(_0x7d9d59,_0x4e0496){_0x7d9d59=_0x7d9d59-0x0;var _0x2c54c7=_0x6ce9[_0x7d9d59];return _0x2c54c7;};'use strict';var multer=require(_0x96ce('0x0'));var util=require(_0x96ce('0x1'));var path=require(_0x96ce('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x96ce('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x96ce('0x4'));var interaction=require(_0x96ce('0x5'));var config=require(_0x96ce('0x6'));var controller=require(_0x96ce('0x7'));router['get']('/',auth[_0x96ce('0x8')](),controller[_0x96ce('0x9')]);router[_0x96ce('0xa')]('/:id',auth[_0x96ce('0x8')](),controller[_0x96ce('0xb')]);router[_0x96ce('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x96ce('0xd')](_0x96ce('0xe'),auth[_0x96ce('0x8')](),controller[_0x96ce('0xf')]);router[_0x96ce('0x10')](_0x96ce('0xe'),auth[_0x96ce('0x8')](),controller[_0x96ce('0x11')]);module[_0x96ce('0x12')]=router;