Built motion from commit (unavailable).|2.5.22
[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 _0xc1a7=['getFields','put','update','/:id','destroy','exports','multer','util','Router','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields'];(function(_0x42a951,_0x4650bf){var _0x3a7f14=function(_0x32f122){while(--_0x32f122){_0x42a951['push'](_0x42a951['shift']());}};_0x3a7f14(++_0x4650bf);}(_0xc1a7,0x146));var _0x7c1a=function(_0xf2267d,_0x10c87c){_0xf2267d=_0xf2267d-0x0;var _0x207e0d=_0xc1a7[_0xf2267d];return _0x207e0d;};'use strict';var multer=require(_0x7c1a('0x0'));var util=require(_0x7c1a('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x7c1a('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7c1a('0x3'));var controller=require(_0x7c1a('0x4'));router[_0x7c1a('0x5')]('/',auth[_0x7c1a('0x6')](),controller[_0x7c1a('0x7')]);router[_0x7c1a('0x5')]('/:id',auth[_0x7c1a('0x6')](),controller[_0x7c1a('0x8')]);router[_0x7c1a('0x5')](_0x7c1a('0x9'),auth[_0x7c1a('0x6')](),controller[_0x7c1a('0xa')]);router[_0x7c1a('0x5')](_0x7c1a('0xb'),auth[_0x7c1a('0x6')](),controller[_0x7c1a('0xc')]);router[_0x7c1a('0x5')](_0x7c1a('0xd'),auth[_0x7c1a('0x6')](),controller[_0x7c1a('0xe')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x7c1a('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x7c1a('0x10')]);router['delete'](_0x7c1a('0x11'),auth[_0x7c1a('0x6')](),controller[_0x7c1a('0x12')]);module[_0x7c1a('0x13')]=router;