5caf7652ab66ec4ca4410d35dffeb11961a49d6c
[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 _0xcc0d=['/:id/fields','post','addConfiguration','update','delete','destroy','exports','multer','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intSalesforceAccount.controller','index','/:id','isAuthenticated','get','/:id/configurations'];(function(_0x4d82ea,_0x4d459f){var _0x257f4a=function(_0x424c4f){while(--_0x424c4f){_0x4d82ea['push'](_0x4d82ea['shift']());}};_0x257f4a(++_0x4d459f);}(_0xcc0d,0x79));var _0xdcc0=function(_0x1dc6b6,_0x4eaaba){_0x1dc6b6=_0x1dc6b6-0x0;var _0x4765dd=_0xcc0d[_0x1dc6b6];return _0x4765dd;};'use strict';var multer=require(_0xdcc0('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xdcc0('0x1'));var express=require(_0xdcc0('0x2'));var router=express[_0xdcc0('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xdcc0('0x4'));var config=require(_0xdcc0('0x5'));var controller=require(_0xdcc0('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xdcc0('0x7')]);router['get'](_0xdcc0('0x8'),auth[_0xdcc0('0x9')](),controller['show']);router[_0xdcc0('0xa')](_0xdcc0('0xb'),auth[_0xdcc0('0x9')](),controller['getConfigurations']);router[_0xdcc0('0xa')](_0xdcc0('0xc'),auth[_0xdcc0('0x9')](),controller['getFields']);router[_0xdcc0('0xd')]('/',auth[_0xdcc0('0x9')](),controller['create']);router[_0xdcc0('0xd')](_0xdcc0('0xb'),auth[_0xdcc0('0x9')](),controller[_0xdcc0('0xe')]);router['put'](_0xdcc0('0x8'),auth[_0xdcc0('0x9')](),controller[_0xdcc0('0xf')]);router[_0xdcc0('0x10')](_0xdcc0('0x8'),auth[_0xdcc0('0x9')](),controller[_0xdcc0('0x11')]);module[_0xdcc0('0x12')]=router;