Built motion from commit e02f907f.|2.6.14
[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 _0x6a3f=['destroy','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','put','update'];(function(_0x133277,_0xb1d6b2){var _0x5b4a22=function(_0x484c26){while(--_0x484c26){_0x133277['push'](_0x133277['shift']());}};_0x5b4a22(++_0xb1d6b2);}(_0x6a3f,0x11f));var _0xf6a3=function(_0x617eb,_0x2f2f57){_0x617eb=_0x617eb-0x0;var _0x3e5dbf=_0x6a3f[_0x617eb];return _0x3e5dbf;};'use strict';var multer=require(_0xf6a3('0x0'));var util=require(_0xf6a3('0x1'));var path=require('path');var timeout=require(_0xf6a3('0x2'));var express=require('express');var router=express[_0xf6a3('0x3')]();var fs_extra=require(_0xf6a3('0x4'));var auth=require(_0xf6a3('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf6a3('0x6'));router[_0xf6a3('0x7')]('/',auth[_0xf6a3('0x8')](),controller[_0xf6a3('0x9')]);router[_0xf6a3('0x7')](_0xf6a3('0xa'),auth['isAuthenticated'](),controller[_0xf6a3('0xb')]);router[_0xf6a3('0x7')](_0xf6a3('0xc'),auth[_0xf6a3('0x8')](),controller[_0xf6a3('0xd')]);router['get'](_0xf6a3('0xe'),auth[_0xf6a3('0x8')](),controller[_0xf6a3('0xf')]);router[_0xf6a3('0x7')](_0xf6a3('0x10'),auth[_0xf6a3('0x8')](),controller[_0xf6a3('0x11')]);router[_0xf6a3('0x12')]('/',auth[_0xf6a3('0x8')](),controller['create']);router[_0xf6a3('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xf6a3('0x14')]);router['delete'](_0xf6a3('0xa'),auth[_0xf6a3('0x8')](),controller[_0xf6a3('0x15')]);module['exports']=router;