270b3ebfebe3c24609b4b18a93c1032463a3fc0c
[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 _0xb8c6=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intSalesforceField.controller','get','isAuthenticated','index','/:id','post','create','update','destroy','exports','util','path'];(function(_0x328dcc,_0x3bc466){var _0x4f0c94=function(_0x233e7f){while(--_0x233e7f){_0x328dcc['push'](_0x328dcc['shift']());}};_0x4f0c94(++_0x3bc466);}(_0xb8c6,0xdb));var _0x6b8c=function(_0x84f3d,_0x1cfcc9){_0x84f3d=_0x84f3d-0x0;var _0x3902d4=_0xb8c6[_0x84f3d];return _0x3902d4;};'use strict';var multer=require('multer');var util=require(_0x6b8c('0x0'));var path=require(_0x6b8c('0x1'));var timeout=require(_0x6b8c('0x2'));var express=require(_0x6b8c('0x3'));var router=express[_0x6b8c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x6b8c('0x5'));var interaction=require(_0x6b8c('0x6'));var config=require('../../config/environment');var controller=require(_0x6b8c('0x7'));router[_0x6b8c('0x8')]('/',auth[_0x6b8c('0x9')](),controller[_0x6b8c('0xa')]);router[_0x6b8c('0x8')](_0x6b8c('0xb'),auth[_0x6b8c('0x9')](),controller['show']);router[_0x6b8c('0xc')]('/',auth[_0x6b8c('0x9')](),controller[_0x6b8c('0xd')]);router['put'](_0x6b8c('0xb'),auth['isAuthenticated'](),controller[_0x6b8c('0xe')]);router['delete'](_0x6b8c('0xb'),auth[_0x6b8c('0x9')](),controller[_0x6b8c('0xf')]);module[_0x6b8c('0x10')]=router;