Built motion from commit (unavailable).|2.5.9
[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 _0xd3cc=['getFields','post','put','update','delete','multer','path','connect-timeout','express','../../components/auth/service','../../config/environment','./intFreshsalesConfiguration.controller','get','/:id','isAuthenticated','show','/:id/subjects','/:id/fields'];(function(_0x41f15f,_0x1a39ef){var _0x269a71=function(_0x52c50e){while(--_0x52c50e){_0x41f15f['push'](_0x41f15f['shift']());}};_0x269a71(++_0x1a39ef);}(_0xd3cc,0x16d));var _0xcd3c=function(_0x25b8c3,_0x4fa5fb){_0x25b8c3=_0x25b8c3-0x0;var _0x4d595a=_0xd3cc[_0x25b8c3];return _0x4d595a;};'use strict';var multer=require(_0xcd3c('0x0'));var util=require('util');var path=require(_0xcd3c('0x1'));var timeout=require(_0xcd3c('0x2'));var express=require(_0xcd3c('0x3'));var router=express['Router']();var auth=require(_0xcd3c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xcd3c('0x5'));var controller=require(_0xcd3c('0x6'));router[_0xcd3c('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xcd3c('0x7')](_0xcd3c('0x8'),auth[_0xcd3c('0x9')](),controller[_0xcd3c('0xa')]);router[_0xcd3c('0x7')](_0xcd3c('0xb'),auth['isAuthenticated'](),controller['getSubjects']);router[_0xcd3c('0x7')]('/:id/descriptions',auth[_0xcd3c('0x9')](),controller['getDescriptions']);router[_0xcd3c('0x7')](_0xcd3c('0xc'),auth[_0xcd3c('0x9')](),controller[_0xcd3c('0xd')]);router[_0xcd3c('0xe')]('/',auth[_0xcd3c('0x9')](),controller['create']);router[_0xcd3c('0xf')](_0xcd3c('0x8'),auth[_0xcd3c('0x9')](),controller[_0xcd3c('0x10')]);router[_0xcd3c('0x11')](_0xcd3c('0x8'),auth[_0xcd3c('0x9')](),controller['destroy']);module['exports']=router;