Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / intSalesforceField / 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 _0x26a2=['../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','create','put','update','delete','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x27f4ca,_0x163cb1){var _0x6fb4b1=function(_0x51275e){while(--_0x51275e){_0x27f4ca['push'](_0x27f4ca['shift']());}};_0x6fb4b1(++_0x163cb1);}(_0x26a2,0x89));var _0x226a=function(_0x451766,_0x13ff6c){_0x451766=_0x451766-0x0;var _0x53e492=_0x26a2[_0x451766];return _0x53e492;};'use strict';var multer=require(_0x226a('0x0'));var util=require(_0x226a('0x1'));var path=require(_0x226a('0x2'));var timeout=require(_0x226a('0x3'));var express=require(_0x226a('0x4'));var router=express[_0x226a('0x5')]();var fs_extra=require(_0x226a('0x6'));var auth=require(_0x226a('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x226a('0x8'));var controller=require('./intSalesforceField.controller');router[_0x226a('0x9')]('/',auth[_0x226a('0xa')](),controller['index']);router['get'](_0x226a('0xb'),auth['isAuthenticated'](),controller[_0x226a('0xc')]);router[_0x226a('0xd')]('/',auth['isAuthenticated'](),controller[_0x226a('0xe')]);router[_0x226a('0xf')](_0x226a('0xb'),auth[_0x226a('0xa')](),controller[_0x226a('0x10')]);router[_0x226a('0x11')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;