63a217a42dd5ee9b954b78767d0a5b5a73758304
[motion2.git] / server / api / intSalesforceConfiguration / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x43eb=['get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','update','delete','exports','multer','connect-timeout','Router','../../components/auth/service','../../config/environment'];(function(_0x3e5629,_0x49af53){var _0x3bca00=function(_0x19b922){while(--_0x19b922){_0x3e5629['push'](_0x3e5629['shift']());}};_0x3bca00(++_0x49af53);}(_0x43eb,0x10c));var _0xb43e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x43eb[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xb43e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb43e('0x1'));var express=require('express');var router=express[_0xb43e('0x2')]();var auth=require(_0xb43e('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xb43e('0x4'));var controller=require('./intSalesforceConfiguration.controller');router[_0xb43e('0x5')]('/',auth[_0xb43e('0x6')](),controller[_0xb43e('0x7')]);router[_0xb43e('0x5')](_0xb43e('0x8'),auth['isAuthenticated'](),controller[_0xb43e('0x9')]);router[_0xb43e('0x5')](_0xb43e('0xa'),auth['isAuthenticated'](),controller[_0xb43e('0xb')]);router[_0xb43e('0x5')](_0xb43e('0xc'),auth[_0xb43e('0x6')](),controller['getSubjects']);router[_0xb43e('0x5')](_0xb43e('0xd'),auth['isAuthenticated'](),controller[_0xb43e('0xe')]);router[_0xb43e('0xf')]('/',auth[_0xb43e('0x6')](),controller[_0xb43e('0x10')]);router[_0xb43e('0x11')](_0xb43e('0x8'),auth[_0xb43e('0x6')](),controller[_0xb43e('0x12')]);router[_0xb43e('0x13')](_0xb43e('0x8'),auth[_0xb43e('0x6')](),controller['destroy']);module[_0xb43e('0x14')]=router;