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 _0xf101=['exports','util','path','express','Router','../../components/auth/service','./intSalesforceField.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0xf101,0x141));var _0x1f10=function(_0x250f95,_0x5a5728){_0x250f95=_0x250f95-0x0;var _0x4ada97=_0xf101[_0x250f95];return _0x4ada97;};'use strict';var multer=require('multer');var util=require(_0x1f10('0x0'));var path=require(_0x1f10('0x1'));var express=require(_0x1f10('0x2'));var router=express[_0x1f10('0x3')]();var auth=require(_0x1f10('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1f10('0x5'));router[_0x1f10('0x6')]('/',auth[_0x1f10('0x7')](),controller[_0x1f10('0x8')]);router[_0x1f10('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x1f10('0x9')]);router[_0x1f10('0xa')]('/',auth['isAuthenticated'](),controller[_0x1f10('0xb')]);router[_0x1f10('0xc')](_0x1f10('0xd'),auth[_0x1f10('0x7')](),controller['update']);router[_0x1f10('0xe')](_0x1f10('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x1f10('0xf')]=router;