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