8ec4adef8fe01c9497942ca777e0ae304d1f5bf8
[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 _0x5fa1=['util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','index','get','/:id','isAuthenticated','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','getFields','post','create','put','update','delete','exports','multer'];(function(_0x1f42bc,_0x208463){var _0x23f159=function(_0x3933bb){while(--_0x3933bb){_0x1f42bc['push'](_0x1f42bc['shift']());}};_0x23f159(++_0x208463);}(_0x5fa1,0x113));var _0x15fa=function(_0x4bb2a9,_0x2cdfd3){_0x4bb2a9=_0x4bb2a9-0x0;var _0x2a4fc0=_0x5fa1[_0x4bb2a9];return _0x2a4fc0;};'use strict';var multer=require(_0x15fa('0x0'));var util=require(_0x15fa('0x1'));var path=require('path');var timeout=require(_0x15fa('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x15fa('0x3'));var auth=require(_0x15fa('0x4'));var interaction=require(_0x15fa('0x5'));var config=require(_0x15fa('0x6'));var controller=require(_0x15fa('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x15fa('0x8')]);router[_0x15fa('0x9')](_0x15fa('0xa'),auth[_0x15fa('0xb')](),controller['show']);router[_0x15fa('0x9')](_0x15fa('0xc'),auth[_0x15fa('0xb')](),controller[_0x15fa('0xd')]);router[_0x15fa('0x9')](_0x15fa('0xe'),auth[_0x15fa('0xb')](),controller[_0x15fa('0xf')]);router['get']('/:id/fields',auth['isAuthenticated'](),controller[_0x15fa('0x10')]);router[_0x15fa('0x11')]('/',auth[_0x15fa('0xb')](),controller[_0x15fa('0x12')]);router[_0x15fa('0x13')](_0x15fa('0xa'),auth[_0x15fa('0xb')](),controller[_0x15fa('0x14')]);router[_0x15fa('0x15')](_0x15fa('0xa'),auth[_0x15fa('0xb')](),controller['destroy']);module[_0x15fa('0x16')]=router;