Built motion from commit 43538d75.|2.5.35
[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 _0x0816=['getSubjects','/:id/descriptions','/:id/fields','getFields','post','create','put','update','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','/:id','show','/:id/subjects'];(function(_0x27de04,_0x588294){var _0x43cd57=function(_0x19db48){while(--_0x19db48){_0x27de04['push'](_0x27de04['shift']());}};_0x43cd57(++_0x588294);}(_0x0816,0x65));var _0x6081=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x0816[_0x40a045];return _0x1a687c;};'use strict';var multer=require(_0x6081('0x0'));var util=require(_0x6081('0x1'));var path=require(_0x6081('0x2'));var timeout=require(_0x6081('0x3'));var express=require(_0x6081('0x4'));var router=express['Router']();var fs_extra=require(_0x6081('0x5'));var auth=require(_0x6081('0x6'));var interaction=require(_0x6081('0x7'));var config=require('../../config/environment');var controller=require(_0x6081('0x8'));router[_0x6081('0x9')]('/',auth[_0x6081('0xa')](),controller['index']);router[_0x6081('0x9')](_0x6081('0xb'),auth[_0x6081('0xa')](),controller[_0x6081('0xc')]);router[_0x6081('0x9')](_0x6081('0xd'),auth['isAuthenticated'](),controller[_0x6081('0xe')]);router['get'](_0x6081('0xf'),auth[_0x6081('0xa')](),controller['getDescriptions']);router[_0x6081('0x9')](_0x6081('0x10'),auth[_0x6081('0xa')](),controller[_0x6081('0x11')]);router[_0x6081('0x12')]('/',auth[_0x6081('0xa')](),controller[_0x6081('0x13')]);router[_0x6081('0x14')](_0x6081('0xb'),auth[_0x6081('0xa')](),controller[_0x6081('0x15')]);router['delete'](_0x6081('0xb'),auth[_0x6081('0xa')](),controller[_0x6081('0x16')]);module['exports']=router;