Built motion from commit (unavailable).|2.4.18
[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 _0xb590=['./intSalesforceConfiguration.controller','get','/:id','show','/:id/fields','isAuthenticated','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','destroy','multer','path','express','../../components/auth/service','../../config/environment'];(function(_0x685fbc,_0x2185c4){var _0x1b3e67=function(_0x24b801){while(--_0x24b801){_0x685fbc['push'](_0x685fbc['shift']());}};_0x1b3e67(++_0x2185c4);}(_0xb590,0x1b3));var _0x0b59=function(_0x222a7a,_0x15e945){_0x222a7a=_0x222a7a-0x0;var _0x27b78f=_0xb590[_0x222a7a];return _0x27b78f;};'use strict';var multer=require(_0x0b59('0x0'));var util=require('util');var path=require(_0x0b59('0x1'));var timeout=require('connect-timeout');var express=require(_0x0b59('0x2'));var router=express['Router']();var auth=require(_0x0b59('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x0b59('0x4'));var controller=require(_0x0b59('0x5'));router[_0x0b59('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x0b59('0x7'),auth['isAuthenticated'](),controller[_0x0b59('0x8')]);router[_0x0b59('0x6')](_0x0b59('0x9'),auth[_0x0b59('0xa')](),controller['getFields']);router[_0x0b59('0x6')](_0x0b59('0xb'),auth['isAuthenticated'](),controller[_0x0b59('0xc')]);router[_0x0b59('0x6')](_0x0b59('0xd'),auth[_0x0b59('0xa')](),controller[_0x0b59('0xe')]);router[_0x0b59('0xf')]('/',auth[_0x0b59('0xa')](),controller[_0x0b59('0x10')]);router[_0x0b59('0x11')](_0x0b59('0x7'),auth[_0x0b59('0xa')](),controller[_0x0b59('0x12')]);router['delete'](_0x0b59('0x7'),auth['isAuthenticated'](),controller[_0x0b59('0x13')]);module['exports']=router;