Built motion from commit (unavailable).|2.5.4
[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 _0xf806=['/:id/descriptions','/:id/fields','getFields','post','put','update','exports','multer','path','express','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','index','/:id','isAuthenticated','show','/:id/subjects','getSubjects'];(function(_0x56b138,_0x2396d6){var _0x3df878=function(_0x4b3ccc){while(--_0x4b3ccc){_0x56b138['push'](_0x56b138['shift']());}};_0x3df878(++_0x2396d6);}(_0xf806,0x6b));var _0x6f80=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf806[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x6f80('0x0'));var util=require('util');var path=require(_0x6f80('0x1'));var timeout=require('connect-timeout');var express=require(_0x6f80('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x6f80('0x3'));var config=require(_0x6f80('0x4'));var controller=require(_0x6f80('0x5'));router[_0x6f80('0x6')]('/',auth['isAuthenticated'](),controller[_0x6f80('0x7')]);router['get'](_0x6f80('0x8'),auth[_0x6f80('0x9')](),controller[_0x6f80('0xa')]);router[_0x6f80('0x6')](_0x6f80('0xb'),auth['isAuthenticated'](),controller[_0x6f80('0xc')]);router[_0x6f80('0x6')](_0x6f80('0xd'),auth[_0x6f80('0x9')](),controller['getDescriptions']);router[_0x6f80('0x6')](_0x6f80('0xe'),auth['isAuthenticated'](),controller[_0x6f80('0xf')]);router[_0x6f80('0x10')]('/',auth[_0x6f80('0x9')](),controller['create']);router[_0x6f80('0x11')]('/:id',auth[_0x6f80('0x9')](),controller[_0x6f80('0x12')]);router['delete'](_0x6f80('0x8'),auth[_0x6f80('0x9')](),controller['destroy']);module[_0x6f80('0x13')]=router;