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