162092761ab63dd3791a423be653eab8696d3043
[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 _0x9cc8=['/:id/descriptions','getDescriptions','/:id/fields','getFields','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','/:id','show','/:id/subjects'];(function(_0x5edea5,_0x505a4e){var _0x2b6a68=function(_0x12faac){while(--_0x12faac){_0x5edea5['push'](_0x5edea5['shift']());}};_0x2b6a68(++_0x505a4e);}(_0x9cc8,0xe2));var _0x89cc=function(_0x531926,_0x187364){_0x531926=_0x531926-0x0;var _0x4d0620=_0x9cc8[_0x531926];return _0x4d0620;};'use strict';var multer=require(_0x89cc('0x0'));var util=require(_0x89cc('0x1'));var path=require('path');var timeout=require(_0x89cc('0x2'));var express=require(_0x89cc('0x3'));var router=express['Router']();var fs_extra=require(_0x89cc('0x4'));var auth=require(_0x89cc('0x5'));var interaction=require(_0x89cc('0x6'));var config=require(_0x89cc('0x7'));var controller=require(_0x89cc('0x8'));router[_0x89cc('0x9')]('/',auth[_0x89cc('0xa')](),controller['index']);router[_0x89cc('0x9')](_0x89cc('0xb'),auth[_0x89cc('0xa')](),controller[_0x89cc('0xc')]);router[_0x89cc('0x9')](_0x89cc('0xd'),auth[_0x89cc('0xa')](),controller['getSubjects']);router[_0x89cc('0x9')](_0x89cc('0xe'),auth[_0x89cc('0xa')](),controller[_0x89cc('0xf')]);router['get'](_0x89cc('0x10'),auth[_0x89cc('0xa')](),controller[_0x89cc('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0x89cc('0x12')]);router[_0x89cc('0x13')](_0x89cc('0xb'),auth[_0x89cc('0xa')](),controller[_0x89cc('0x14')]);router[_0x89cc('0x15')]('/:id',auth[_0x89cc('0xa')](),controller[_0x89cc('0x16')]);module[_0x89cc('0x17')]=router;