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 _0x17da=['create','put','delete','destroy','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./intSalesforceField.controller','get','index','isAuthenticated'];(function(_0x4408a7,_0x27a8b5){var _0x32237f=function(_0x5a1675){while(--_0x5a1675){_0x4408a7['push'](_0x4408a7['shift']());}};_0x32237f(++_0x27a8b5);}(_0x17da,0x18a));var _0xa17d=function(_0x4393fc,_0x20e885){_0x4393fc=_0x4393fc-0x0;var _0x3ea3ba=_0x17da[_0x4393fc];return _0x3ea3ba;};'use strict';var multer=require(_0xa17d('0x0'));var util=require(_0xa17d('0x1'));var path=require(_0xa17d('0x2'));var express=require(_0xa17d('0x3'));var router=express[_0xa17d('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xa17d('0x5'));var config=require(_0xa17d('0x6'));var controller=require(_0xa17d('0x7'));router[_0xa17d('0x8')]('/',auth['isAuthenticated'](),controller[_0xa17d('0x9')]);router[_0xa17d('0x8')]('/:id',auth[_0xa17d('0xa')](),controller['show']);router['post']('/',auth[_0xa17d('0xa')](),controller[_0xa17d('0xb')]);router[_0xa17d('0xc')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xa17d('0xd')]('/:id',auth[_0xa17d('0xa')](),controller[_0xa17d('0xe')]);module['exports']=router;