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