Built motion from commit da617fac.|2.6.6
[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 _0xb1ec=['post','create','put','delete','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/:id','show'];(function(_0x2ef8c1,_0x2f72f4){var _0x288305=function(_0x56244b){while(--_0x56244b){_0x2ef8c1['push'](_0x2ef8c1['shift']());}};_0x288305(++_0x2f72f4);}(_0xb1ec,0x148));var _0xcb1e=function(_0x57c78b,_0x66c039){_0x57c78b=_0x57c78b-0x0;var _0x5edb6e=_0xb1ec[_0x57c78b];return _0x5edb6e;};'use strict';var multer=require(_0xcb1e('0x0'));var util=require(_0xcb1e('0x1'));var path=require(_0xcb1e('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xcb1e('0x3')]();var fs_extra=require(_0xcb1e('0x4'));var auth=require(_0xcb1e('0x5'));var interaction=require(_0xcb1e('0x6'));var config=require('../../config/environment');var controller=require('./intSalesforceField.controller');router['get']('/',auth[_0xcb1e('0x7')](),controller[_0xcb1e('0x8')]);router[_0xcb1e('0x9')](_0xcb1e('0xa'),auth[_0xcb1e('0x7')](),controller[_0xcb1e('0xb')]);router[_0xcb1e('0xc')]('/',auth['isAuthenticated'](),controller[_0xcb1e('0xd')]);router[_0xcb1e('0xe')](_0xcb1e('0xa'),auth[_0xcb1e('0x7')](),controller['update']);router[_0xcb1e('0xf')]('/:id',auth[_0xcb1e('0x7')](),controller['destroy']);module[_0xcb1e('0x10')]=router;