7abd0c7c36daa379ce7037e413d0588b8b89d5b5
[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 _0x8645=['create','put','update','delete','destroy','multer','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSalesforceAccount.controller','isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations','/:id/fields','post'];(function(_0x13d07a,_0x41efc3){var _0x5ee0ee=function(_0x4ca94a){while(--_0x4ca94a){_0x13d07a['push'](_0x13d07a['shift']());}};_0x5ee0ee(++_0x41efc3);}(_0x8645,0x145));var _0x5864=function(_0x5a424a,_0x51ddf7){_0x5a424a=_0x5a424a-0x0;var _0x37ed1f=_0x8645[_0x5a424a];return _0x37ed1f;};'use strict';var multer=require(_0x5864('0x0'));var util=require('util');var path=require(_0x5864('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x5864('0x2')]();var auth=require(_0x5864('0x3'));var interaction=require(_0x5864('0x4'));var config=require(_0x5864('0x5'));var controller=require(_0x5864('0x6'));router['get']('/',auth[_0x5864('0x7')](),controller[_0x5864('0x8')]);router[_0x5864('0x9')](_0x5864('0xa'),auth[_0x5864('0x7')](),controller['show']);router['get'](_0x5864('0xb'),auth[_0x5864('0x7')](),controller[_0x5864('0xc')]);router['get'](_0x5864('0xd'),auth[_0x5864('0x7')](),controller['getFields']);router[_0x5864('0xe')]('/',auth['isAuthenticated'](),controller[_0x5864('0xf')]);router['post'](_0x5864('0xb'),auth[_0x5864('0x7')](),controller['addConfiguration']);router[_0x5864('0x10')](_0x5864('0xa'),auth[_0x5864('0x7')](),controller[_0x5864('0x11')]);router[_0x5864('0x12')]('/:id',auth[_0x5864('0x7')](),controller[_0x5864('0x13')]);module['exports']=router;