Built motion from commit 3c2ce842.|2.6.31
[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 _0x4eb4=['./intFreshsalesConfiguration.controller','get','isAuthenticated','index','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','put','/:id','update','exports','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x9b9e0a,_0x253d5c){var _0x22432f=function(_0x570bd4){while(--_0x570bd4){_0x9b9e0a['push'](_0x9b9e0a['shift']());}};_0x22432f(++_0x253d5c);}(_0x4eb4,0x1de));var _0x44eb=function(_0x2b45b5,_0x474458){_0x2b45b5=_0x2b45b5-0x0;var _0x1d9c06=_0x4eb4[_0x2b45b5];return _0x1d9c06;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x44eb('0x0'));var timeout=require(_0x44eb('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x44eb('0x2'));var auth=require(_0x44eb('0x3'));var interaction=require(_0x44eb('0x4'));var config=require(_0x44eb('0x5'));var controller=require(_0x44eb('0x6'));router[_0x44eb('0x7')]('/',auth[_0x44eb('0x8')](),controller[_0x44eb('0x9')]);router[_0x44eb('0x7')]('/:id',auth[_0x44eb('0x8')](),controller[_0x44eb('0xa')]);router['get'](_0x44eb('0xb'),auth[_0x44eb('0x8')](),controller[_0x44eb('0xc')]);router[_0x44eb('0x7')](_0x44eb('0xd'),auth[_0x44eb('0x8')](),controller[_0x44eb('0xe')]);router[_0x44eb('0x7')](_0x44eb('0xf'),auth[_0x44eb('0x8')](),controller[_0x44eb('0x10')]);router[_0x44eb('0x11')]('/',auth[_0x44eb('0x8')](),controller['create']);router[_0x44eb('0x12')](_0x44eb('0x13'),auth['isAuthenticated'](),controller[_0x44eb('0x14')]);router['delete'](_0x44eb('0x13'),auth[_0x44eb('0x8')](),controller['destroy']);module[_0x44eb('0x15')]=router;