6f4bb02a7a95c130dee3070fb3c0661b27636776
[motion2.git] / server / api / intSalesforceField / 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 _0x908a=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSalesforceField.controller','get','isAuthenticated','index','show','post','create','/:id','delete','util','Router'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x908a,0x1a2));var _0xa908=function(_0x5e185b,_0x61be62){_0x5e185b=_0x5e185b-0x0;var _0x3c5df8=_0x908a[_0x5e185b];return _0x3c5df8;};'use strict';var multer=require('multer');var util=require(_0xa908('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa908('0x1')]();var fs_extra=require(_0xa908('0x2'));var auth=require(_0xa908('0x3'));var interaction=require(_0xa908('0x4'));var config=require(_0xa908('0x5'));var controller=require(_0xa908('0x6'));router[_0xa908('0x7')]('/',auth[_0xa908('0x8')](),controller[_0xa908('0x9')]);router['get']('/:id',auth[_0xa908('0x8')](),controller[_0xa908('0xa')]);router[_0xa908('0xb')]('/',auth['isAuthenticated'](),controller[_0xa908('0xc')]);router['put'](_0xa908('0xd'),auth[_0xa908('0x8')](),controller['update']);router[_0xa908('0xe')](_0xa908('0xd'),auth[_0xa908('0x8')](),controller['destroy']);module['exports']=router;