e0bd7e2042b29f535b3cfe75662ac80a030a38f1
[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 _0x7ef4=['isAuthenticated','index','get','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','create','put','/:id','update','delete','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./intSalesforceConfiguration.controller'];(function(_0x450689,_0x3b857c){var _0x46ffb0=function(_0x5d3679){while(--_0x5d3679){_0x450689['push'](_0x450689['shift']());}};_0x46ffb0(++_0x3b857c);}(_0x7ef4,0x66));var _0x47ef=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x7ef4[_0x4a9fb1];return _0x348672;};'use strict';var multer=require(_0x47ef('0x0'));var util=require(_0x47ef('0x1'));var path=require('path');var timeout=require(_0x47ef('0x2'));var express=require(_0x47ef('0x3'));var router=express['Router']();var fs_extra=require(_0x47ef('0x4'));var auth=require(_0x47ef('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x47ef('0x6'));var controller=require(_0x47ef('0x7'));router['get']('/',auth[_0x47ef('0x8')](),controller[_0x47ef('0x9')]);router[_0x47ef('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x47ef('0xb')]);router['get'](_0x47ef('0xc'),auth['isAuthenticated'](),controller[_0x47ef('0xd')]);router[_0x47ef('0xa')](_0x47ef('0xe'),auth[_0x47ef('0x8')](),controller['getSubjects']);router['get'](_0x47ef('0xf'),auth[_0x47ef('0x8')](),controller[_0x47ef('0x10')]);router['post']('/',auth[_0x47ef('0x8')](),controller[_0x47ef('0x11')]);router[_0x47ef('0x12')](_0x47ef('0x13'),auth[_0x47ef('0x8')](),controller[_0x47ef('0x14')]);router[_0x47ef('0x15')](_0x47ef('0x13'),auth[_0x47ef('0x8')](),controller['destroy']);module['exports']=router;