Built motion from commit (unavailable).|2.5.1
[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 _0x8a66=['delete','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSalesforceAccount.controller','get','isAuthenticated','/:id','/:id/fields','post','create','addConfiguration','put'];(function(_0x1564f6,_0x284cb9){var _0x4cf39e=function(_0x2805b0){while(--_0x2805b0){_0x1564f6['push'](_0x1564f6['shift']());}};_0x4cf39e(++_0x284cb9);}(_0x8a66,0x1dd));var _0x68a6=function(_0x130209,_0x2cc129){_0x130209=_0x130209-0x0;var _0x155fb7=_0x8a66[_0x130209];return _0x155fb7;};'use strict';var multer=require('multer');var util=require(_0x68a6('0x0'));var path=require(_0x68a6('0x1'));var timeout=require('connect-timeout');var express=require(_0x68a6('0x2'));var router=express[_0x68a6('0x3')]();var auth=require(_0x68a6('0x4'));var interaction=require(_0x68a6('0x5'));var config=require(_0x68a6('0x6'));var controller=require(_0x68a6('0x7'));router[_0x68a6('0x8')]('/',auth[_0x68a6('0x9')](),controller['index']);router[_0x68a6('0x8')](_0x68a6('0xa'),auth[_0x68a6('0x9')](),controller['show']);router['get']('/:id/configurations',auth[_0x68a6('0x9')](),controller['getConfigurations']);router[_0x68a6('0x8')](_0x68a6('0xb'),auth[_0x68a6('0x9')](),controller['getFields']);router[_0x68a6('0xc')]('/',auth[_0x68a6('0x9')](),controller[_0x68a6('0xd')]);router['post']('/:id/configurations',auth[_0x68a6('0x9')](),controller[_0x68a6('0xe')]);router[_0x68a6('0xf')](_0x68a6('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x68a6('0x10')](_0x68a6('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;