287f8c9c2a7a22c977796ce743bd24f690d2a502
[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 _0x92de=['Router','fs-extra','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','show','getSubjects','/:id/descriptions','/:id/fields','getFields','post','create','/:id','update','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x52493c,_0x2d03a0){var _0x1b4213=function(_0xf679b8){while(--_0xf679b8){_0x52493c['push'](_0x52493c['shift']());}};_0x1b4213(++_0x2d03a0);}(_0x92de,0x10f));var _0xe92d=function(_0xae6db5,_0x5b81e9){_0xae6db5=_0xae6db5-0x0;var _0x526e3c=_0x92de[_0xae6db5];return _0x526e3c;};'use strict';var multer=require(_0xe92d('0x0'));var util=require(_0xe92d('0x1'));var path=require(_0xe92d('0x2'));var timeout=require(_0xe92d('0x3'));var express=require(_0xe92d('0x4'));var router=express[_0xe92d('0x5')]();var fs_extra=require(_0xe92d('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xe92d('0x7'));var config=require('../../config/environment');var controller=require(_0xe92d('0x8'));router[_0xe92d('0x9')]('/',auth[_0xe92d('0xa')](),controller[_0xe92d('0xb')]);router[_0xe92d('0x9')]('/:id',auth[_0xe92d('0xa')](),controller[_0xe92d('0xc')]);router['get']('/:id/subjects',auth[_0xe92d('0xa')](),controller[_0xe92d('0xd')]);router['get'](_0xe92d('0xe'),auth[_0xe92d('0xa')](),controller['getDescriptions']);router[_0xe92d('0x9')](_0xe92d('0xf'),auth[_0xe92d('0xa')](),controller[_0xe92d('0x10')]);router[_0xe92d('0x11')]('/',auth[_0xe92d('0xa')](),controller[_0xe92d('0x12')]);router['put'](_0xe92d('0x13'),auth[_0xe92d('0xa')](),controller[_0xe92d('0x14')]);router['delete'](_0xe92d('0x13'),auth[_0xe92d('0xa')](),controller[_0xe92d('0x15')]);module[_0xe92d('0x16')]=router;