Built motion from commit a61a4a20.|2.5.46
[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 _0xabf4=['fs-extra','../../components/interaction/service','./intSalesforceField.controller','get','index','isAuthenticated','show','post','create','put','update','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x3c9a51,_0x5607bf){var _0x307014=function(_0x1bb2a2){while(--_0x1bb2a2){_0x3c9a51['push'](_0x3c9a51['shift']());}};_0x307014(++_0x5607bf);}(_0xabf4,0x9c));var _0x4abf=function(_0x38a0ee,_0x1572f8){_0x38a0ee=_0x38a0ee-0x0;var _0x627558=_0xabf4[_0x38a0ee];return _0x627558;};'use strict';var multer=require(_0x4abf('0x0'));var util=require(_0x4abf('0x1'));var path=require(_0x4abf('0x2'));var timeout=require(_0x4abf('0x3'));var express=require(_0x4abf('0x4'));var router=express[_0x4abf('0x5')]();var fs_extra=require(_0x4abf('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x4abf('0x7'));var config=require('../../config/environment');var controller=require(_0x4abf('0x8'));router[_0x4abf('0x9')]('/',auth['isAuthenticated'](),controller[_0x4abf('0xa')]);router['get']('/:id',auth[_0x4abf('0xb')](),controller[_0x4abf('0xc')]);router[_0x4abf('0xd')]('/',auth[_0x4abf('0xb')](),controller[_0x4abf('0xe')]);router[_0x4abf('0xf')]('/:id',auth[_0x4abf('0xb')](),controller[_0x4abf('0x10')]);router['delete']('/:id',auth[_0x4abf('0xb')](),controller['destroy']);module[_0x4abf('0x11')]=router;