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