Built motion from commit (unavailable).|2.5.6
[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 _0x6ab9=['/:id/subjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','create','put','delete','destroy','multer','util','path','connect-timeout','express','Router','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show'];(function(_0x26a818,_0x40708a){var _0x5d8ca0=function(_0x3cc7ed){while(--_0x3cc7ed){_0x26a818['push'](_0x26a818['shift']());}};_0x5d8ca0(++_0x40708a);}(_0x6ab9,0x135));var _0x96ab=function(_0x2db12b,_0x30ab1d){_0x2db12b=_0x2db12b-0x0;var _0x20990b=_0x6ab9[_0x2db12b];return _0x20990b;};'use strict';var multer=require(_0x96ab('0x0'));var util=require(_0x96ab('0x1'));var path=require(_0x96ab('0x2'));var timeout=require(_0x96ab('0x3'));var express=require(_0x96ab('0x4'));var router=express[_0x96ab('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x96ab('0x6'));var controller=require(_0x96ab('0x7'));router[_0x96ab('0x8')]('/',auth[_0x96ab('0x9')](),controller[_0x96ab('0xa')]);router['get'](_0x96ab('0xb'),auth[_0x96ab('0x9')](),controller[_0x96ab('0xc')]);router[_0x96ab('0x8')](_0x96ab('0xd'),auth['isAuthenticated'](),controller['getSubjects']);router[_0x96ab('0x8')](_0x96ab('0xe'),auth[_0x96ab('0x9')](),controller[_0x96ab('0xf')]);router[_0x96ab('0x8')](_0x96ab('0x10'),auth[_0x96ab('0x9')](),controller[_0x96ab('0x11')]);router[_0x96ab('0x12')]('/',auth[_0x96ab('0x9')](),controller[_0x96ab('0x13')]);router[_0x96ab('0x14')](_0x96ab('0xb'),auth[_0x96ab('0x9')](),controller['update']);router[_0x96ab('0x15')]('/:id',auth[_0x96ab('0x9')](),controller[_0x96ab('0x16')]);module['exports']=router;