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 _0xa1b3=['/:id','show','post','update','destroy','exports','multer','util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x48eb4d,_0x1bcc55){var _0x239dbf=function(_0x41f591){while(--_0x41f591){_0x48eb4d['push'](_0x48eb4d['shift']());}};_0x239dbf(++_0x1bcc55);}(_0xa1b3,0x110));var _0x3a1b=function(_0x38b811,_0x28fbd3){_0x38b811=_0x38b811-0x0;var _0xa00bff=_0xa1b3[_0x38b811];return _0xa00bff;};'use strict';var multer=require(_0x3a1b('0x0'));var util=require(_0x3a1b('0x1'));var path=require(_0x3a1b('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x3a1b('0x3'));var interaction=require(_0x3a1b('0x4'));var config=require(_0x3a1b('0x5'));var controller=require('./intSalesforceField.controller');router[_0x3a1b('0x6')]('/',auth[_0x3a1b('0x7')](),controller['index']);router['get'](_0x3a1b('0x8'),auth['isAuthenticated'](),controller[_0x3a1b('0x9')]);router[_0x3a1b('0xa')]('/',auth[_0x3a1b('0x7')](),controller['create']);router['put'](_0x3a1b('0x8'),auth[_0x3a1b('0x7')](),controller[_0x3a1b('0xb')]);router['delete'](_0x3a1b('0x8'),auth[_0x3a1b('0x7')](),controller[_0x3a1b('0xc')]);module[_0x3a1b('0xd')]=router;