Built motion from commit 1cfc41f6.|2.5.41
[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 _0x8ced=['../../config/environment','./intFreshsalesConfiguration.controller','isAuthenticated','/:id','show','get','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','getFields','post','put','update','destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x3fd203,_0x46ed07){var _0x905832=function(_0x4df3a0){while(--_0x4df3a0){_0x3fd203['push'](_0x3fd203['shift']());}};_0x905832(++_0x46ed07);}(_0x8ced,0x118));var _0xd8ce=function(_0x40bffc,_0x3a45d7){_0x40bffc=_0x40bffc-0x0;var _0x3007e9=_0x8ced[_0x40bffc];return _0x3007e9;};'use strict';var multer=require('multer');var util=require(_0xd8ce('0x0'));var path=require(_0xd8ce('0x1'));var timeout=require(_0xd8ce('0x2'));var express=require(_0xd8ce('0x3'));var router=express['Router']();var fs_extra=require(_0xd8ce('0x4'));var auth=require(_0xd8ce('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd8ce('0x6'));var controller=require(_0xd8ce('0x7'));router['get']('/',auth[_0xd8ce('0x8')](),controller['index']);router['get'](_0xd8ce('0x9'),auth[_0xd8ce('0x8')](),controller[_0xd8ce('0xa')]);router[_0xd8ce('0xb')](_0xd8ce('0xc'),auth[_0xd8ce('0x8')](),controller[_0xd8ce('0xd')]);router[_0xd8ce('0xb')](_0xd8ce('0xe'),auth[_0xd8ce('0x8')](),controller[_0xd8ce('0xf')]);router[_0xd8ce('0xb')]('/:id/fields',auth['isAuthenticated'](),controller[_0xd8ce('0x10')]);router[_0xd8ce('0x11')]('/',auth[_0xd8ce('0x8')](),controller['create']);router[_0xd8ce('0x12')](_0xd8ce('0x9'),auth['isAuthenticated'](),controller[_0xd8ce('0x13')]);router['delete'](_0xd8ce('0x9'),auth[_0xd8ce('0x8')](),controller[_0xd8ce('0x14')]);module[_0xd8ce('0x15')]=router;