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 _0x5e97=['fs-extra','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x36b366,_0x38733a){var _0x1159a6=function(_0x33506b){while(--_0x33506b){_0x36b366['push'](_0x36b366['shift']());}};_0x1159a6(++_0x38733a);}(_0x5e97,0xde));var _0x75e9=function(_0x1035c1,_0x2d8583){_0x1035c1=_0x1035c1-0x0;var _0x308d67=_0x5e97[_0x1035c1];return _0x308d67;};'use strict';var multer=require(_0x75e9('0x0'));var util=require(_0x75e9('0x1'));var path=require(_0x75e9('0x2'));var timeout=require(_0x75e9('0x3'));var express=require(_0x75e9('0x4'));var router=express[_0x75e9('0x5')]();var fs_extra=require(_0x75e9('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x75e9('0x7'));var config=require('../../config/environment');var controller=require('./intSalesforceField.controller');router[_0x75e9('0x8')]('/',auth[_0x75e9('0x9')](),controller[_0x75e9('0xa')]);router[_0x75e9('0x8')](_0x75e9('0xb'),auth[_0x75e9('0x9')](),controller[_0x75e9('0xc')]);router[_0x75e9('0xd')]('/',auth[_0x75e9('0x9')](),controller[_0x75e9('0xe')]);router[_0x75e9('0xf')](_0x75e9('0xb'),auth['isAuthenticated'](),controller[_0x75e9('0x10')]);router[_0x75e9('0x11')](_0x75e9('0xb'),auth[_0x75e9('0x9')](),controller['destroy']);module[_0x75e9('0x12')]=router;