2d821dd1987ec62fa8bf17306055eb3f5d13c120
[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 _0x1e56=['getFields','/:id/descriptions','getDescriptions','create','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','show'];(function(_0x372515,_0xdd11f){var _0xa3bf4e=function(_0x212cc8){while(--_0x212cc8){_0x372515['push'](_0x372515['shift']());}};_0xa3bf4e(++_0xdd11f);}(_0x1e56,0x8e));var _0x61e5=function(_0x542e05,_0x3a808d){_0x542e05=_0x542e05-0x0;var _0x3c6a17=_0x1e56[_0x542e05];return _0x3c6a17;};'use strict';var multer=require('multer');var util=require(_0x61e5('0x0'));var path=require(_0x61e5('0x1'));var timeout=require(_0x61e5('0x2'));var express=require(_0x61e5('0x3'));var router=express[_0x61e5('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x61e5('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x61e5('0x6'));var controller=require('./intSalesforceConfiguration.controller');router[_0x61e5('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x61e5('0x7')]('/:id',auth[_0x61e5('0x8')](),controller[_0x61e5('0x9')]);router[_0x61e5('0x7')]('/:id/fields',auth[_0x61e5('0x8')](),controller[_0x61e5('0xa')]);router['get']('/:id/subjects',auth[_0x61e5('0x8')](),controller['getSubjects']);router[_0x61e5('0x7')](_0x61e5('0xb'),auth[_0x61e5('0x8')](),controller[_0x61e5('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x61e5('0xd')]);router['put'](_0x61e5('0xe'),auth[_0x61e5('0x8')](),controller[_0x61e5('0xf')]);router[_0x61e5('0x10')](_0x61e5('0xe'),auth['isAuthenticated'](),controller[_0x61e5('0x11')]);module[_0x61e5('0x12')]=router;