91fc2c670e609ba5d506a6ae2c60aca4270c814f
[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 _0xfc04=['show','/:id/subjects','getDescriptions','/:id/fields','post','create','put','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','/:id','isAuthenticated'];(function(_0x6c73b4,_0x5a54f8){var _0x5a3f02=function(_0x3d48f8){while(--_0x3d48f8){_0x6c73b4['push'](_0x6c73b4['shift']());}};_0x5a3f02(++_0x5a54f8);}(_0xfc04,0x95));var _0x4fc0=function(_0x7ac30e,_0x1a3402){_0x7ac30e=_0x7ac30e-0x0;var _0x2c41cd=_0xfc04[_0x7ac30e];return _0x2c41cd;};'use strict';var multer=require(_0x4fc0('0x0'));var util=require('util');var path=require(_0x4fc0('0x1'));var timeout=require(_0x4fc0('0x2'));var express=require('express');var router=express[_0x4fc0('0x3')]();var fs_extra=require(_0x4fc0('0x4'));var auth=require(_0x4fc0('0x5'));var interaction=require(_0x4fc0('0x6'));var config=require(_0x4fc0('0x7'));var controller=require(_0x4fc0('0x8'));router[_0x4fc0('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x4fc0('0xa'),auth[_0x4fc0('0xb')](),controller[_0x4fc0('0xc')]);router[_0x4fc0('0x9')](_0x4fc0('0xd'),auth[_0x4fc0('0xb')](),controller['getSubjects']);router[_0x4fc0('0x9')]('/:id/descriptions',auth[_0x4fc0('0xb')](),controller[_0x4fc0('0xe')]);router[_0x4fc0('0x9')](_0x4fc0('0xf'),auth[_0x4fc0('0xb')](),controller['getFields']);router[_0x4fc0('0x10')]('/',auth[_0x4fc0('0xb')](),controller[_0x4fc0('0x11')]);router[_0x4fc0('0x12')](_0x4fc0('0xa'),auth[_0x4fc0('0xb')](),controller[_0x4fc0('0x13')]);router[_0x4fc0('0x14')]('/:id',auth[_0x4fc0('0xb')](),controller[_0x4fc0('0x15')]);module[_0x4fc0('0x16')]=router;