4d21a5abca8bb72596b996a7fe31590d05c71bbc
[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 _0x5ab9=['put','isAuthenticated','delete','destroy','multer','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','show','create'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5ab9,0x114));var _0x95ab=function(_0x387b44,_0x3ad1ba){_0x387b44=_0x387b44-0x0;var _0x55ff2d=_0x5ab9[_0x387b44];return _0x55ff2d;};'use strict';var multer=require(_0x95ab('0x0'));var util=require('util');var path=require(_0x95ab('0x1'));var timeout=require('connect-timeout');var express=require(_0x95ab('0x2'));var router=express[_0x95ab('0x3')]();var fs_extra=require(_0x95ab('0x4'));var auth=require(_0x95ab('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x95ab('0x6'));var controller=require('./intSalesforceField.controller');router[_0x95ab('0x7')]('/',auth['isAuthenticated'](),controller[_0x95ab('0x8')]);router[_0x95ab('0x7')](_0x95ab('0x9'),auth['isAuthenticated'](),controller[_0x95ab('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x95ab('0xb')]);router[_0x95ab('0xc')]('/:id',auth[_0x95ab('0xd')](),controller['update']);router[_0x95ab('0xe')](_0x95ab('0x9'),auth['isAuthenticated'](),controller[_0x95ab('0xf')]);module['exports']=router;