Built motion from commit (unavailable).|2.0.77
[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 _0xb5c1=['../../components/auth/service','../../components/interaction/service','./intSalesforceAccount.controller','get','isAuthenticated','index','show','getConfigurations','getFields','post','/:id/configurations','addConfiguration','/:id','delete','exports','multer','util','express','Router'];(function(_0x57c6b8,_0x21eae3){var _0x19ede3=function(_0x3d833f){while(--_0x3d833f){_0x57c6b8['push'](_0x57c6b8['shift']());}};_0x19ede3(++_0x21eae3);}(_0xb5c1,0x152));var _0x1b5c=function(_0x23dffe,_0x14d759){_0x23dffe=_0x23dffe-0x0;var _0x17c183=_0xb5c1[_0x23dffe];return _0x17c183;};'use strict';var multer=require(_0x1b5c('0x0'));var util=require(_0x1b5c('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x1b5c('0x2'));var router=express[_0x1b5c('0x3')]();var auth=require(_0x1b5c('0x4'));var interaction=require(_0x1b5c('0x5'));var config=require('../../config/environment');var controller=require(_0x1b5c('0x6'));router[_0x1b5c('0x7')]('/',auth[_0x1b5c('0x8')](),controller[_0x1b5c('0x9')]);router[_0x1b5c('0x7')]('/:id',auth[_0x1b5c('0x8')](),controller[_0x1b5c('0xa')]);router[_0x1b5c('0x7')]('/:id/configurations',auth[_0x1b5c('0x8')](),controller[_0x1b5c('0xb')]);router[_0x1b5c('0x7')]('/:id/fields',auth[_0x1b5c('0x8')](),controller[_0x1b5c('0xc')]);router['post']('/',auth[_0x1b5c('0x8')](),controller['create']);router[_0x1b5c('0xd')](_0x1b5c('0xe'),auth[_0x1b5c('0x8')](),controller[_0x1b5c('0xf')]);router['put'](_0x1b5c('0x10'),auth[_0x1b5c('0x8')](),controller['update']);router[_0x1b5c('0x11')]('/:id',auth[_0x1b5c('0x8')](),controller['destroy']);module[_0x1b5c('0x12')]=router;