9eff3f0fa4e45f47b26ace49d733f6ac7497309a
[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 _0xe211=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','post','create','update','delete','exports','multer','util'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xe211,0xfb));var _0x1e21=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe211[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x1e21('0x0'));var util=require(_0x1e21('0x1'));var path=require('path');var timeout=require(_0x1e21('0x2'));var express=require(_0x1e21('0x3'));var router=express[_0x1e21('0x4')]();var fs_extra=require(_0x1e21('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x1e21('0x6'));var config=require(_0x1e21('0x7'));var controller=require(_0x1e21('0x8'));router[_0x1e21('0x9')]('/',auth[_0x1e21('0xa')](),controller[_0x1e21('0xb')]);router[_0x1e21('0x9')](_0x1e21('0xc'),auth[_0x1e21('0xa')](),controller[_0x1e21('0xd')]);router[_0x1e21('0x9')]('/:id/subjects',auth[_0x1e21('0xa')](),controller[_0x1e21('0xe')]);router[_0x1e21('0x9')](_0x1e21('0xf'),auth[_0x1e21('0xa')](),controller[_0x1e21('0x10')]);router[_0x1e21('0x9')](_0x1e21('0x11'),auth[_0x1e21('0xa')](),controller['getFields']);router[_0x1e21('0x12')]('/',auth[_0x1e21('0xa')](),controller[_0x1e21('0x13')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x1e21('0x14')]);router[_0x1e21('0x15')](_0x1e21('0xc'),auth[_0x1e21('0xa')](),controller['destroy']);module[_0x1e21('0x16')]=router;