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 _0x70a5=['../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','index','/:id','isAuthenticated','show','post','put','update','delete','destroy','exports','util','path','express','Router'];(function(_0x161ac3,_0x142e49){var _0x3bb837=function(_0x269c7c){while(--_0x269c7c){_0x161ac3['push'](_0x161ac3['shift']());}};_0x3bb837(++_0x142e49);}(_0x70a5,0x1ea));var _0x570a=function(_0x2d4193,_0x409c52){_0x2d4193=_0x2d4193-0x0;var _0x2754f5=_0x70a5[_0x2d4193];return _0x2754f5;};'use strict';var multer=require('multer');var util=require(_0x570a('0x0'));var path=require(_0x570a('0x1'));var timeout=require('connect-timeout');var express=require(_0x570a('0x2'));var router=express[_0x570a('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x570a('0x4'));var interaction=require(_0x570a('0x5'));var config=require(_0x570a('0x6'));var controller=require(_0x570a('0x7'));router[_0x570a('0x8')]('/',auth['isAuthenticated'](),controller[_0x570a('0x9')]);router[_0x570a('0x8')](_0x570a('0xa'),auth[_0x570a('0xb')](),controller[_0x570a('0xc')]);router[_0x570a('0xd')]('/',auth[_0x570a('0xb')](),controller['create']);router[_0x570a('0xe')]('/:id',auth[_0x570a('0xb')](),controller[_0x570a('0xf')]);router[_0x570a('0x10')]('/:id',auth[_0x570a('0xb')](),controller[_0x570a('0x11')]);module[_0x570a('0x12')]=router;