375a79470d79ef821f7354c6f4cfc3bff54e01aa
[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 _0xf474=['exports','express','Router','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','create','put','update','delete'];(function(_0x40cacb,_0x2d291f){var _0x57491f=function(_0x4b22bb){while(--_0x4b22bb){_0x40cacb['push'](_0x40cacb['shift']());}};_0x57491f(++_0x2d291f);}(_0xf474,0x1ba));var _0x4f47=function(_0x45783c,_0x49c56d){_0x45783c=_0x45783c-0x0;var _0x1161da=_0xf474[_0x45783c];return _0x1161da;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x4f47('0x0'));var router=express[_0x4f47('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0x4f47('0x2'));var config=require(_0x4f47('0x3'));var controller=require(_0x4f47('0x4'));router[_0x4f47('0x5')]('/',auth[_0x4f47('0x6')](),controller[_0x4f47('0x7')]);router[_0x4f47('0x5')](_0x4f47('0x8'),auth[_0x4f47('0x6')](),controller[_0x4f47('0x9')]);router[_0x4f47('0x5')](_0x4f47('0xa'),auth['isAuthenticated'](),controller['getSubjects']);router[_0x4f47('0x5')](_0x4f47('0xb'),auth[_0x4f47('0x6')](),controller[_0x4f47('0xc')]);router[_0x4f47('0x5')](_0x4f47('0xd'),auth[_0x4f47('0x6')](),controller[_0x4f47('0xe')]);router[_0x4f47('0xf')]('/',auth[_0x4f47('0x6')](),controller[_0x4f47('0x10')]);router[_0x4f47('0x11')]('/:id',auth[_0x4f47('0x6')](),controller[_0x4f47('0x12')]);router[_0x4f47('0x13')](_0x4f47('0x8'),auth[_0x4f47('0x6')](),controller['destroy']);module[_0x4f47('0x14')]=router;