Built motion from commit (unavailable).|2.4.10
[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 _0x78b7=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','create','post','/:id/configurations','addConfiguration','put','destroy','multer','util'];(function(_0x38fd21,_0x4b7eca){var _0x327a3a=function(_0x23c274){while(--_0x23c274){_0x38fd21['push'](_0x38fd21['shift']());}};_0x327a3a(++_0x4b7eca);}(_0x78b7,0x1ae));var _0x778b=function(_0x153c6a,_0x2a217a){_0x153c6a=_0x153c6a-0x0;var _0xce898f=_0x78b7[_0x153c6a];return _0xce898f;};'use strict';var multer=require(_0x778b('0x0'));var util=require(_0x778b('0x1'));var path=require(_0x778b('0x2'));var timeout=require(_0x778b('0x3'));var express=require(_0x778b('0x4'));var router=express[_0x778b('0x5')]();var auth=require(_0x778b('0x6'));var interaction=require(_0x778b('0x7'));var config=require(_0x778b('0x8'));var controller=require('./intSalesforceAccount.controller');router['get']('/',auth[_0x778b('0x9')](),controller['index']);router[_0x778b('0xa')](_0x778b('0xb'),auth[_0x778b('0x9')](),controller['show']);router[_0x778b('0xa')]('/:id/configurations',auth[_0x778b('0x9')](),controller['getConfigurations']);router[_0x778b('0xa')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router['post']('/',auth[_0x778b('0x9')](),controller[_0x778b('0xc')]);router[_0x778b('0xd')](_0x778b('0xe'),auth[_0x778b('0x9')](),controller[_0x778b('0xf')]);router[_0x778b('0x10')](_0x778b('0xb'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x778b('0xb'),auth[_0x778b('0x9')](),controller[_0x778b('0x11')]);module['exports']=router;