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 _0xc006=['show','post','create','put','update','delete','destroy','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id'];(function(_0x344a3f,_0x579a22){var _0x264712=function(_0x34c9f0){while(--_0x34c9f0){_0x344a3f['push'](_0x344a3f['shift']());}};_0x264712(++_0x579a22);}(_0xc006,0x14b));var _0x6c00=function(_0x171bef,_0x4cba08){_0x171bef=_0x171bef-0x0;var _0x28828a=_0xc006[_0x171bef];return _0x28828a;};'use strict';var multer=require(_0x6c00('0x0'));var util=require(_0x6c00('0x1'));var path=require(_0x6c00('0x2'));var timeout=require('connect-timeout');var express=require(_0x6c00('0x3'));var router=express[_0x6c00('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x6c00('0x5'));var config=require(_0x6c00('0x6'));var controller=require('./intSugarcrmField.controller');router['get']('/',auth[_0x6c00('0x7')](),controller[_0x6c00('0x8')]);router[_0x6c00('0x9')](_0x6c00('0xa'),auth[_0x6c00('0x7')](),controller[_0x6c00('0xb')]);router[_0x6c00('0xc')]('/',auth['isAuthenticated'](),controller[_0x6c00('0xd')]);router[_0x6c00('0xe')](_0x6c00('0xa'),auth['isAuthenticated'](),controller[_0x6c00('0xf')]);router[_0x6c00('0x10')](_0x6c00('0xa'),auth['isAuthenticated'](),controller[_0x6c00('0x11')]);module['exports']=router;