9fda6877ded134031d01f967729d3e7f9faa97b7
[motion2.git] / server / api / intFreshsalesConfiguration / 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 _0xcac4=['multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','getSubjects','/:id/descriptions','/:id/fields','create','put','update','delete','destroy'];(function(_0x14eca8,_0x117cc2){var _0x5ae073=function(_0x5f5ad5){while(--_0x5f5ad5){_0x14eca8['push'](_0x14eca8['shift']());}};_0x5ae073(++_0x117cc2);}(_0xcac4,0x1e0));var _0x4cac=function(_0x92c450,_0x41f1e3){_0x92c450=_0x92c450-0x0;var _0x2a9599=_0xcac4[_0x92c450];return _0x2a9599;};'use strict';var multer=require(_0x4cac('0x0'));var util=require(_0x4cac('0x1'));var path=require('path');var timeout=require(_0x4cac('0x2'));var express=require(_0x4cac('0x3'));var router=express['Router']();var fs_extra=require(_0x4cac('0x4'));var auth=require(_0x4cac('0x5'));var interaction=require(_0x4cac('0x6'));var config=require('../../config/environment');var controller=require(_0x4cac('0x7'));router[_0x4cac('0x8')]('/',auth[_0x4cac('0x9')](),controller[_0x4cac('0xa')]);router[_0x4cac('0x8')](_0x4cac('0xb'),auth[_0x4cac('0x9')](),controller['show']);router['get']('/:id/subjects',auth[_0x4cac('0x9')](),controller[_0x4cac('0xc')]);router[_0x4cac('0x8')](_0x4cac('0xd'),auth[_0x4cac('0x9')](),controller['getDescriptions']);router['get'](_0x4cac('0xe'),auth[_0x4cac('0x9')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller[_0x4cac('0xf')]);router[_0x4cac('0x10')](_0x4cac('0xb'),auth[_0x4cac('0x9')](),controller[_0x4cac('0x11')]);router[_0x4cac('0x12')](_0x4cac('0xb'),auth[_0x4cac('0x9')](),controller[_0x4cac('0x13')]);module['exports']=router;