Built motion from commit (unavailable).|2.5.31
[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 _0x1bb2=['create','put','update','exports','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./intFreshsalesConfiguration.controller','get','index','/:id','isAuthenticated','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','post'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x1bb2,0x12f));var _0x21bb=function(_0x67c383,_0x45aa89){_0x67c383=_0x67c383-0x0;var _0x194cfd=_0x1bb2[_0x67c383];return _0x194cfd;};'use strict';var multer=require(_0x21bb('0x0'));var util=require('util');var path=require(_0x21bb('0x1'));var timeout=require(_0x21bb('0x2'));var express=require(_0x21bb('0x3'));var router=express['Router']();var fs_extra=require(_0x21bb('0x4'));var auth=require(_0x21bb('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x21bb('0x6'));var controller=require(_0x21bb('0x7'));router[_0x21bb('0x8')]('/',auth['isAuthenticated'](),controller[_0x21bb('0x9')]);router[_0x21bb('0x8')](_0x21bb('0xa'),auth[_0x21bb('0xb')](),controller[_0x21bb('0xc')]);router['get'](_0x21bb('0xd'),auth[_0x21bb('0xb')](),controller[_0x21bb('0xe')]);router['get'](_0x21bb('0xf'),auth['isAuthenticated'](),controller[_0x21bb('0x10')]);router['get'](_0x21bb('0x11'),auth[_0x21bb('0xb')](),controller['getFields']);router[_0x21bb('0x12')]('/',auth[_0x21bb('0xb')](),controller[_0x21bb('0x13')]);router[_0x21bb('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x21bb('0x15')]);router['delete'](_0x21bb('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x21bb('0x16')]=router;