496316ed66f54aa0dac91fc90fe5b16f313b21ee
[motion2.git] / server / api / intFreshsalesAccount / 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 _0xd7b2=['post','addConfiguration','put','update','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intFreshsalesAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','/:id/fields','create'];(function(_0x212a0c,_0x503d94){var _0x24241f=function(_0x555ffd){while(--_0x555ffd){_0x212a0c['push'](_0x212a0c['shift']());}};_0x24241f(++_0x503d94);}(_0xd7b2,0x1a9));var _0x2d7b=function(_0x2e452f,_0x26ae54){_0x2e452f=_0x2e452f-0x0;var _0x48b144=_0xd7b2[_0x2e452f];return _0x48b144;};'use strict';var multer=require(_0x2d7b('0x0'));var util=require('util');var path=require(_0x2d7b('0x1'));var timeout=require(_0x2d7b('0x2'));var express=require(_0x2d7b('0x3'));var router=express[_0x2d7b('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x2d7b('0x5'));var config=require(_0x2d7b('0x6'));var controller=require(_0x2d7b('0x7'));router[_0x2d7b('0x8')]('/',auth[_0x2d7b('0x9')](),controller[_0x2d7b('0xa')]);router[_0x2d7b('0x8')](_0x2d7b('0xb'),auth['isAuthenticated'](),controller['show']);router[_0x2d7b('0x8')](_0x2d7b('0xc'),auth[_0x2d7b('0x9')](),controller['getConfigurations']);router['get'](_0x2d7b('0xd'),auth[_0x2d7b('0x9')](),controller['getFields']);router['post']('/',auth[_0x2d7b('0x9')](),controller[_0x2d7b('0xe')]);router[_0x2d7b('0xf')](_0x2d7b('0xc'),auth[_0x2d7b('0x9')](),controller[_0x2d7b('0x10')]);router[_0x2d7b('0x11')](_0x2d7b('0xb'),auth[_0x2d7b('0x9')](),controller[_0x2d7b('0x12')]);router['delete']('/:id',auth[_0x2d7b('0x9')](),controller['destroy']);module[_0x2d7b('0x13')]=router;