dfb2d24c38d0cdfc8550c745c0b8118c7ad4048e
[motion2.git] / server / api / intSalesforceAccount / 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 _0x7b00=['../../config/environment','isAuthenticated','index','get','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra'];(function(_0x3011fc,_0x383c6e){var _0x108bfc=function(_0x25e41c){while(--_0x25e41c){_0x3011fc['push'](_0x3011fc['shift']());}};_0x108bfc(++_0x383c6e);}(_0x7b00,0x1dd));var _0x07b0=function(_0x54252d,_0x31de7b){_0x54252d=_0x54252d-0x0;var _0x515a1e=_0x7b00[_0x54252d];return _0x515a1e;};'use strict';var multer=require(_0x07b0('0x0'));var util=require(_0x07b0('0x1'));var path=require(_0x07b0('0x2'));var timeout=require(_0x07b0('0x3'));var express=require('express');var router=express[_0x07b0('0x4')]();var fs_extra=require(_0x07b0('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x07b0('0x6'));var controller=require('./intSalesforceAccount.controller');router['get']('/',auth[_0x07b0('0x7')](),controller[_0x07b0('0x8')]);router[_0x07b0('0x9')]('/:id',auth[_0x07b0('0x7')](),controller[_0x07b0('0xa')]);router[_0x07b0('0x9')](_0x07b0('0xb'),auth[_0x07b0('0x7')](),controller[_0x07b0('0xc')]);router[_0x07b0('0x9')](_0x07b0('0xd'),auth[_0x07b0('0x7')](),controller[_0x07b0('0xe')]);router[_0x07b0('0xf')]('/',auth[_0x07b0('0x7')](),controller['create']);router['post'](_0x07b0('0xb'),auth[_0x07b0('0x7')](),controller[_0x07b0('0x10')]);router[_0x07b0('0x11')](_0x07b0('0x12'),auth['isAuthenticated'](),controller[_0x07b0('0x13')]);router[_0x07b0('0x14')]('/:id',auth[_0x07b0('0x7')](),controller[_0x07b0('0x15')]);module[_0x07b0('0x16')]=router;