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 _0xe149=['isAuthenticated','index','get','/:id','show','post','create','update','destroy','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x1de228,_0x1935c4){var _0x3bd839=function(_0x51c0f3){while(--_0x51c0f3){_0x1de228['push'](_0x1de228['shift']());}};_0x3bd839(++_0x1935c4);}(_0xe149,0x1d9));var _0x9e14=function(_0x29fde4,_0x509383){_0x29fde4=_0x29fde4-0x0;var _0x5bb3c4=_0xe149[_0x29fde4];return _0x5bb3c4;};'use strict';var multer=require(_0x9e14('0x0'));var util=require(_0x9e14('0x1'));var path=require(_0x9e14('0x2'));var timeout=require('connect-timeout');var express=require(_0x9e14('0x3'));var router=express[_0x9e14('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x9e14('0x5'));var interaction=require(_0x9e14('0x6'));var config=require('../../config/environment');var controller=require('./intSugarcrmField.controller');router['get']('/',auth[_0x9e14('0x7')](),controller[_0x9e14('0x8')]);router[_0x9e14('0x9')](_0x9e14('0xa'),auth[_0x9e14('0x7')](),controller[_0x9e14('0xb')]);router[_0x9e14('0xc')]('/',auth['isAuthenticated'](),controller[_0x9e14('0xd')]);router['put']('/:id',auth[_0x9e14('0x7')](),controller[_0x9e14('0xe')]);router['delete']('/:id',auth[_0x9e14('0x7')](),controller[_0x9e14('0xf')]);module['exports']=router;