15380d462480a68089a37004943649a7dbc88aca
[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 _0x8f12=['isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','getDescriptions','/:id/fields','getFields','post','create','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get'];(function(_0x53ab80,_0x38331f){var _0x8355e5=function(_0x4703f5){while(--_0x4703f5){_0x53ab80['push'](_0x53ab80['shift']());}};_0x8355e5(++_0x38331f);}(_0x8f12,0x122));var _0x28f1=function(_0x1d4bdb,_0x58f77b){_0x1d4bdb=_0x1d4bdb-0x0;var _0x288bea=_0x8f12[_0x1d4bdb];return _0x288bea;};'use strict';var multer=require('multer');var util=require(_0x28f1('0x0'));var path=require(_0x28f1('0x1'));var timeout=require(_0x28f1('0x2'));var express=require(_0x28f1('0x3'));var router=express[_0x28f1('0x4')]();var fs_extra=require(_0x28f1('0x5'));var auth=require(_0x28f1('0x6'));var interaction=require(_0x28f1('0x7'));var config=require('../../config/environment');var controller=require(_0x28f1('0x8'));router[_0x28f1('0x9')]('/',auth[_0x28f1('0xa')](),controller[_0x28f1('0xb')]);router[_0x28f1('0x9')](_0x28f1('0xc'),auth[_0x28f1('0xa')](),controller[_0x28f1('0xd')]);router['get'](_0x28f1('0xe'),auth[_0x28f1('0xa')](),controller[_0x28f1('0xf')]);router[_0x28f1('0x9')]('/:id/descriptions',auth[_0x28f1('0xa')](),controller[_0x28f1('0x10')]);router['get'](_0x28f1('0x11'),auth[_0x28f1('0xa')](),controller[_0x28f1('0x12')]);router[_0x28f1('0x13')]('/',auth[_0x28f1('0xa')](),controller[_0x28f1('0x14')]);router['put'](_0x28f1('0xc'),auth['isAuthenticated'](),controller[_0x28f1('0x15')]);router[_0x28f1('0x16')]('/:id',auth[_0x28f1('0xa')](),controller[_0x28f1('0x17')]);module[_0x28f1('0x18')]=router;