Built motion from commit (unavailable).|2.5.4
[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 _0x111b=['getFields','create','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','getDescriptions'];(function(_0x294b6,_0x2907ae){var _0x38bb97=function(_0x5aaa76){while(--_0x5aaa76){_0x294b6['push'](_0x294b6['shift']());}};_0x38bb97(++_0x2907ae);}(_0x111b,0x15f));var _0xb111=function(_0x4e6ba8,_0x4ca053){_0x4e6ba8=_0x4e6ba8-0x0;var _0x2d7f19=_0x111b[_0x4e6ba8];return _0x2d7f19;};'use strict';var multer=require('multer');var util=require(_0xb111('0x0'));var path=require(_0xb111('0x1'));var timeout=require(_0xb111('0x2'));var express=require(_0xb111('0x3'));var router=express[_0xb111('0x4')]();var auth=require(_0xb111('0x5'));var interaction=require(_0xb111('0x6'));var config=require(_0xb111('0x7'));var controller=require(_0xb111('0x8'));router[_0xb111('0x9')]('/',auth[_0xb111('0xa')](),controller[_0xb111('0xb')]);router[_0xb111('0x9')](_0xb111('0xc'),auth[_0xb111('0xa')](),controller[_0xb111('0xd')]);router[_0xb111('0x9')](_0xb111('0xe'),auth['isAuthenticated'](),controller[_0xb111('0xf')]);router[_0xb111('0x9')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0xb111('0x10')]);router[_0xb111('0x9')]('/:id/fields',auth[_0xb111('0xa')](),controller[_0xb111('0x11')]);router['post']('/',auth[_0xb111('0xa')](),controller[_0xb111('0x12')]);router['put'](_0xb111('0xc'),auth['isAuthenticated'](),controller[_0xb111('0x13')]);router[_0xb111('0x14')]('/:id',auth[_0xb111('0xa')](),controller[_0xb111('0x15')]);module[_0xb111('0x16')]=router;