9f3147e62ece610f42b1c2b008a3355a17584cc3
[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 _0x230f=['post','create','put','update','/:id','destroy','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','index','get','isAuthenticated','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions'];(function(_0x12162e,_0x4ce43d){var _0x313314=function(_0x237b8c){while(--_0x237b8c){_0x12162e['push'](_0x12162e['shift']());}};_0x313314(++_0x4ce43d);}(_0x230f,0x1bb));var _0xf230=function(_0x3496d3,_0x4467a2){_0x3496d3=_0x3496d3-0x0;var _0x509096=_0x230f[_0x3496d3];return _0x509096;};'use strict';var multer=require(_0xf230('0x0'));var util=require(_0xf230('0x1'));var path=require(_0xf230('0x2'));var timeout=require(_0xf230('0x3'));var express=require(_0xf230('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf230('0x5'));var interaction=require(_0xf230('0x6'));var config=require(_0xf230('0x7'));var controller=require(_0xf230('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xf230('0x9')]);router[_0xf230('0xa')]('/:id',auth[_0xf230('0xb')](),controller[_0xf230('0xc')]);router['get'](_0xf230('0xd'),auth[_0xf230('0xb')](),controller[_0xf230('0xe')]);router['get'](_0xf230('0xf'),auth[_0xf230('0xb')](),controller[_0xf230('0x10')]);router[_0xf230('0xa')]('/:id/fields',auth[_0xf230('0xb')](),controller['getFields']);router[_0xf230('0x11')]('/',auth[_0xf230('0xb')](),controller[_0xf230('0x12')]);router[_0xf230('0x13')]('/:id',auth[_0xf230('0xb')](),controller[_0xf230('0x14')]);router['delete'](_0xf230('0x15'),auth['isAuthenticated'](),controller[_0xf230('0x16')]);module['exports']=router;