a38fdf1efef893ffedcc456467d366bacbcd56a2
[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 _0xdfe9=['get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','getFields','create','addConfiguration','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intSalesforceAccount.controller'];(function(_0x533a92,_0x5563df){var _0x21b11a=function(_0x42e6e7){while(--_0x42e6e7){_0x533a92['push'](_0x533a92['shift']());}};_0x21b11a(++_0x5563df);}(_0xdfe9,0x199));var _0x9dfe=function(_0x2e1246,_0x2729a2){_0x2e1246=_0x2e1246-0x0;var _0x513a76=_0xdfe9[_0x2e1246];return _0x513a76;};'use strict';var multer=require(_0x9dfe('0x0'));var util=require(_0x9dfe('0x1'));var path=require(_0x9dfe('0x2'));var timeout=require(_0x9dfe('0x3'));var express=require(_0x9dfe('0x4'));var router=express[_0x9dfe('0x5')]();var auth=require(_0x9dfe('0x6'));var interaction=require(_0x9dfe('0x7'));var config=require('../../config/environment');var controller=require(_0x9dfe('0x8'));router[_0x9dfe('0x9')]('/',auth[_0x9dfe('0xa')](),controller['index']);router[_0x9dfe('0x9')](_0x9dfe('0xb'),auth['isAuthenticated'](),controller[_0x9dfe('0xc')]);router[_0x9dfe('0x9')](_0x9dfe('0xd'),auth[_0x9dfe('0xa')](),controller[_0x9dfe('0xe')]);router[_0x9dfe('0x9')]('/:id/fields',auth[_0x9dfe('0xa')](),controller[_0x9dfe('0xf')]);router['post']('/',auth[_0x9dfe('0xa')](),controller[_0x9dfe('0x10')]);router['post']('/:id/configurations',auth[_0x9dfe('0xa')](),controller[_0x9dfe('0x11')]);router['put'](_0x9dfe('0xb'),auth[_0x9dfe('0xa')](),controller[_0x9dfe('0x12')]);router[_0x9dfe('0x13')](_0x9dfe('0xb'),auth[_0x9dfe('0xa')](),controller[_0x9dfe('0x14')]);module[_0x9dfe('0x15')]=router;