b7051515c6ff8b1d4a2e2a119f04467c3a953fd5
[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 _0x31b7=['get','/:id','show','/:id/configurations','getFields','post','put','delete','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index'];(function(_0x5ea12c,_0x58685d){var _0x4e3711=function(_0x2aeb19){while(--_0x2aeb19){_0x5ea12c['push'](_0x5ea12c['shift']());}};_0x4e3711(++_0x58685d);}(_0x31b7,0x15c));var _0x731b=function(_0x342363,_0x42a40b){_0x342363=_0x342363-0x0;var _0x409bff=_0x31b7[_0x342363];return _0x409bff;};'use strict';var multer=require(_0x731b('0x0'));var util=require('util');var path=require(_0x731b('0x1'));var timeout=require(_0x731b('0x2'));var express=require(_0x731b('0x3'));var router=express[_0x731b('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x731b('0x5'));var config=require(_0x731b('0x6'));var controller=require('./intFreshsalesAccount.controller');router['get']('/',auth[_0x731b('0x7')](),controller[_0x731b('0x8')]);router[_0x731b('0x9')](_0x731b('0xa'),auth[_0x731b('0x7')](),controller[_0x731b('0xb')]);router[_0x731b('0x9')](_0x731b('0xc'),auth[_0x731b('0x7')](),controller['getConfigurations']);router[_0x731b('0x9')]('/:id/fields',auth['isAuthenticated'](),controller[_0x731b('0xd')]);router[_0x731b('0xe')]('/',auth[_0x731b('0x7')](),controller['create']);router[_0x731b('0xe')](_0x731b('0xc'),auth[_0x731b('0x7')](),controller['addConfiguration']);router[_0x731b('0xf')]('/:id',auth[_0x731b('0x7')](),controller['update']);router[_0x731b('0x10')](_0x731b('0xa'),auth[_0x731b('0x7')](),controller['destroy']);module['exports']=router;