Built motion from commit 9d1906d1.|2.5.40
[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 _0x82c5=['../../config/environment','./intSalesforceField.controller','isAuthenticated','index','get','/:id','show','create','put','update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x138757,_0x3fe5c1){var _0x29e114=function(_0x52cb78){while(--_0x52cb78){_0x138757['push'](_0x138757['shift']());}};_0x29e114(++_0x3fe5c1);}(_0x82c5,0x1c1));var _0x582c=function(_0x33bba9,_0x372645){_0x33bba9=_0x33bba9-0x0;var _0x35608c=_0x82c5[_0x33bba9];return _0x35608c;};'use strict';var multer=require(_0x582c('0x0'));var util=require('util');var path=require(_0x582c('0x1'));var timeout=require(_0x582c('0x2'));var express=require(_0x582c('0x3'));var router=express[_0x582c('0x4')]();var fs_extra=require(_0x582c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x582c('0x6'));var config=require(_0x582c('0x7'));var controller=require(_0x582c('0x8'));router['get']('/',auth[_0x582c('0x9')](),controller[_0x582c('0xa')]);router[_0x582c('0xb')](_0x582c('0xc'),auth[_0x582c('0x9')](),controller[_0x582c('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x582c('0xe')]);router[_0x582c('0xf')](_0x582c('0xc'),auth[_0x582c('0x9')](),controller[_0x582c('0x10')]);router[_0x582c('0x11')](_0x582c('0xc'),auth[_0x582c('0x9')](),controller['destroy']);module[_0x582c('0x12')]=router;