fe1346da71c25abf61f89a86270ea196557bbd4e
[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 _0xefb7=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','/:id','show','get','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','post','create','put','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x4e881c,_0x4c512e){var _0x372256=function(_0x382fbb){while(--_0x382fbb){_0x4e881c['push'](_0x4e881c['shift']());}};_0x372256(++_0x4c512e);}(_0xefb7,0xa3));var _0x7efb=function(_0x10d34b,_0x4fef76){_0x10d34b=_0x10d34b-0x0;var _0x92b0bf=_0xefb7[_0x10d34b];return _0x92b0bf;};'use strict';var multer=require(_0x7efb('0x0'));var util=require(_0x7efb('0x1'));var path=require(_0x7efb('0x2'));var timeout=require(_0x7efb('0x3'));var express=require(_0x7efb('0x4'));var router=express[_0x7efb('0x5')]();var fs_extra=require(_0x7efb('0x6'));var auth=require(_0x7efb('0x7'));var interaction=require(_0x7efb('0x8'));var config=require(_0x7efb('0x9'));var controller=require('./intFreshsalesConfiguration.controller');router['get']('/',auth[_0x7efb('0xa')](),controller['index']);router['get'](_0x7efb('0xb'),auth['isAuthenticated'](),controller[_0x7efb('0xc')]);router[_0x7efb('0xd')](_0x7efb('0xe'),auth[_0x7efb('0xa')](),controller[_0x7efb('0xf')]);router['get'](_0x7efb('0x10'),auth[_0x7efb('0xa')](),controller[_0x7efb('0x11')]);router[_0x7efb('0xd')](_0x7efb('0x12'),auth[_0x7efb('0xa')](),controller['getFields']);router[_0x7efb('0x13')]('/',auth[_0x7efb('0xa')](),controller[_0x7efb('0x14')]);router[_0x7efb('0x15')](_0x7efb('0xb'),auth[_0x7efb('0xa')](),controller['update']);router[_0x7efb('0x16')]('/:id',auth[_0x7efb('0xa')](),controller['destroy']);module[_0x7efb('0x17')]=router;