Built motion from commit 00bf23f6.|2.6.16
[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 _0x1e42=['show','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','index','/:id','isAuthenticated'];(function(_0x456fb1,_0x859a1d){var _0x4083d6=function(_0xe1d0f2){while(--_0xe1d0f2){_0x456fb1['push'](_0x456fb1['shift']());}};_0x4083d6(++_0x859a1d);}(_0x1e42,0x193));var _0x21e4=function(_0xb5bd7f,_0x5e50b0){_0xb5bd7f=_0xb5bd7f-0x0;var _0x13cd94=_0x1e42[_0xb5bd7f];return _0x13cd94;};'use strict';var multer=require(_0x21e4('0x0'));var util=require(_0x21e4('0x1'));var path=require(_0x21e4('0x2'));var timeout=require(_0x21e4('0x3'));var express=require('express');var router=express[_0x21e4('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x21e4('0x5'));var interaction=require(_0x21e4('0x6'));var config=require(_0x21e4('0x7'));var controller=require(_0x21e4('0x8'));router[_0x21e4('0x9')]('/',auth['isAuthenticated'](),controller[_0x21e4('0xa')]);router['get'](_0x21e4('0xb'),auth[_0x21e4('0xc')](),controller[_0x21e4('0xd')]);router[_0x21e4('0x9')]('/:id/subjects',auth[_0x21e4('0xc')](),controller[_0x21e4('0xe')]);router[_0x21e4('0x9')](_0x21e4('0xf'),auth[_0x21e4('0xc')](),controller[_0x21e4('0x10')]);router[_0x21e4('0x9')](_0x21e4('0x11'),auth[_0x21e4('0xc')](),controller[_0x21e4('0x12')]);router[_0x21e4('0x13')]('/',auth[_0x21e4('0xc')](),controller[_0x21e4('0x14')]);router[_0x21e4('0x15')](_0x21e4('0xb'),auth[_0x21e4('0xc')](),controller[_0x21e4('0x16')]);router[_0x21e4('0x17')]('/:id',auth['isAuthenticated'](),controller[_0x21e4('0x18')]);module[_0x21e4('0x19')]=router;