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 _0x7834=['connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','get','index','isAuthenticated','show','post','create','put','update','delete','/:id','destroy','exports','multer'];(function(_0x24259d,_0x64a194){var _0x5a701=function(_0x204516){while(--_0x204516){_0x24259d['push'](_0x24259d['shift']());}};_0x5a701(++_0x64a194);}(_0x7834,0x13f));var _0x4783=function(_0x4b3300,_0x1137f1){_0x4b3300=_0x4b3300-0x0;var _0x2d26d3=_0x7834[_0x4b3300];return _0x2d26d3;};'use strict';var multer=require(_0x4783('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x4783('0x1'));var express=require('express');var router=express[_0x4783('0x2')]();var fs_extra=require(_0x4783('0x3'));var auth=require(_0x4783('0x4'));var interaction=require(_0x4783('0x5'));var config=require(_0x4783('0x6'));var controller=require(_0x4783('0x7'));router[_0x4783('0x8')]('/',auth['isAuthenticated'](),controller[_0x4783('0x9')]);router[_0x4783('0x8')]('/:id',auth[_0x4783('0xa')](),controller[_0x4783('0xb')]);router[_0x4783('0xc')]('/',auth[_0x4783('0xa')](),controller[_0x4783('0xd')]);router[_0x4783('0xe')]('/:id',auth[_0x4783('0xa')](),controller[_0x4783('0xf')]);router[_0x4783('0x10')](_0x4783('0x11'),auth[_0x4783('0xa')](),controller[_0x4783('0x12')]);module[_0x4783('0x13')]=router;