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 _0x37b2=['./intFreshsalesField.controller','get','index','/:id','isAuthenticated','show','post','create','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x4bc4f3,_0x5704d9){var _0xcdd806=function(_0x1ab7f5){while(--_0x1ab7f5){_0x4bc4f3['push'](_0x4bc4f3['shift']());}};_0xcdd806(++_0x5704d9);}(_0x37b2,0x106));var _0x237b=function(_0x5afbb8,_0x2246e2){_0x5afbb8=_0x5afbb8-0x0;var _0x2c53cf=_0x37b2[_0x5afbb8];return _0x2c53cf;};'use strict';var multer=require(_0x237b('0x0'));var util=require(_0x237b('0x1'));var path=require(_0x237b('0x2'));var timeout=require(_0x237b('0x3'));var express=require(_0x237b('0x4'));var router=express[_0x237b('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x237b('0x6'));var config=require(_0x237b('0x7'));var controller=require(_0x237b('0x8'));router[_0x237b('0x9')]('/',auth['isAuthenticated'](),controller[_0x237b('0xa')]);router['get'](_0x237b('0xb'),auth[_0x237b('0xc')](),controller[_0x237b('0xd')]);router[_0x237b('0xe')]('/',auth[_0x237b('0xc')](),controller[_0x237b('0xf')]);router['put'](_0x237b('0xb'),auth[_0x237b('0xc')](),controller['update']);router[_0x237b('0x10')](_0x237b('0xb'),auth[_0x237b('0xc')](),controller[_0x237b('0x11')]);module['exports']=router;