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