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 _0xd94b=['update','multer','util','path','express','Router','../../components/auth/service','./intFreshsalesField.controller','get','isAuthenticated','index','/:id','post','create','put'];(function(_0x469726,_0x400cd5){var _0x25f55e=function(_0xc8d95){while(--_0xc8d95){_0x469726['push'](_0x469726['shift']());}};_0x25f55e(++_0x400cd5);}(_0xd94b,0x100));var _0xbd94=function(_0x44fd6b,_0x338098){_0x44fd6b=_0x44fd6b-0x0;var _0x7cba12=_0xd94b[_0x44fd6b];return _0x7cba12;};'use strict';var multer=require(_0xbd94('0x0'));var util=require(_0xbd94('0x1'));var path=require(_0xbd94('0x2'));var timeout=require('connect-timeout');var express=require(_0xbd94('0x3'));var router=express[_0xbd94('0x4')]();var auth=require(_0xbd94('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xbd94('0x6'));router[_0xbd94('0x7')]('/',auth[_0xbd94('0x8')](),controller[_0xbd94('0x9')]);router[_0xbd94('0x7')](_0xbd94('0xa'),auth[_0xbd94('0x8')](),controller['show']);router[_0xbd94('0xb')]('/',auth['isAuthenticated'](),controller[_0xbd94('0xc')]);router[_0xbd94('0xd')]('/:id',auth[_0xbd94('0x8')](),controller[_0xbd94('0xe')]);router['delete'](_0xbd94('0xa'),auth[_0xbd94('0x8')](),controller['destroy']);module['exports']=router;