93ab56131cdd96e97a45c092dcb507b87ee81b54
[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 _0xbff5=['../../components/auth/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create','update','delete','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x5de97d,_0x1141ee){var _0x2da950=function(_0xd74837){while(--_0xd74837){_0x5de97d['push'](_0x5de97d['shift']());}};_0x2da950(++_0x1141ee);}(_0xbff5,0x1bc));var _0x5bff=function(_0x3305d5,_0x325e81){_0x3305d5=_0x3305d5-0x0;var _0x3ca46b=_0xbff5[_0x3305d5];return _0x3ca46b;};'use strict';var multer=require(_0x5bff('0x0'));var util=require(_0x5bff('0x1'));var path=require(_0x5bff('0x2'));var timeout=require(_0x5bff('0x3'));var express=require(_0x5bff('0x4'));var router=express[_0x5bff('0x5')]();var auth=require(_0x5bff('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x5bff('0x7'));var controller=require('./intSalesforceField.controller');router['get']('/',auth[_0x5bff('0x8')](),controller[_0x5bff('0x9')]);router[_0x5bff('0xa')](_0x5bff('0xb'),auth[_0x5bff('0x8')](),controller[_0x5bff('0xc')]);router[_0x5bff('0xd')]('/',auth[_0x5bff('0x8')](),controller[_0x5bff('0xe')]);router['put'](_0x5bff('0xb'),auth['isAuthenticated'](),controller[_0x5bff('0xf')]);router[_0x5bff('0x10')]('/:id',auth[_0x5bff('0x8')](),controller['destroy']);module[_0x5bff('0x11')]=router;