8c53a2943d91dce4ef0e99981d20a16a046fcc5f
[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 _0x4f5f=['../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','show','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','create','put','/:id','destroy','exports','util','path','express','../../components/auth/service'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x4f5f,0xec));var _0xf4f5=function(_0xdea41a,_0x552987){_0xdea41a=_0xdea41a-0x0;var _0x15d0d8=_0x4f5f[_0xdea41a];return _0x15d0d8;};'use strict';var multer=require('multer');var util=require(_0xf4f5('0x0'));var path=require(_0xf4f5('0x1'));var timeout=require('connect-timeout');var express=require(_0xf4f5('0x2'));var router=express['Router']();var auth=require(_0xf4f5('0x3'));var interaction=require(_0xf4f5('0x4'));var config=require(_0xf4f5('0x5'));var controller=require(_0xf4f5('0x6'));router[_0xf4f5('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf4f5('0x7')]('/:id',auth[_0xf4f5('0x8')](),controller[_0xf4f5('0x9')]);router[_0xf4f5('0x7')]('/:id/subjects',auth['isAuthenticated'](),controller[_0xf4f5('0xa')]);router[_0xf4f5('0x7')](_0xf4f5('0xb'),auth['isAuthenticated'](),controller[_0xf4f5('0xc')]);router[_0xf4f5('0x7')](_0xf4f5('0xd'),auth[_0xf4f5('0x8')](),controller[_0xf4f5('0xe')]);router['post']('/',auth[_0xf4f5('0x8')](),controller[_0xf4f5('0xf')]);router[_0xf4f5('0x10')](_0xf4f5('0x11'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xf4f5('0x11'),auth[_0xf4f5('0x8')](),controller[_0xf4f5('0x12')]);module[_0xf4f5('0x13')]=router;