Built motion from commit 10af8726.|2.6.34
[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 _0x49e3=['update','delete','destroy','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create'];(function(_0x27926c,_0x37d579){var _0x584578=function(_0x32e167){while(--_0x32e167){_0x27926c['push'](_0x27926c['shift']());}};_0x584578(++_0x37d579);}(_0x49e3,0x135));var _0x349e=function(_0x2e454d,_0x32b87a){_0x2e454d=_0x2e454d-0x0;var _0x684eee=_0x49e3[_0x2e454d];return _0x684eee;};'use strict';var multer=require(_0x349e('0x0'));var util=require(_0x349e('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x349e('0x2'));var router=express[_0x349e('0x3')]();var fs_extra=require(_0x349e('0x4'));var auth=require(_0x349e('0x5'));var interaction=require(_0x349e('0x6'));var config=require(_0x349e('0x7'));var controller=require('./intSalesforceField.controller');router['get']('/',auth[_0x349e('0x8')](),controller[_0x349e('0x9')]);router[_0x349e('0xa')](_0x349e('0xb'),auth[_0x349e('0x8')](),controller[_0x349e('0xc')]);router[_0x349e('0xd')]('/',auth['isAuthenticated'](),controller[_0x349e('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x349e('0xf')]);router[_0x349e('0x10')]('/:id',auth[_0x349e('0x8')](),controller[_0x349e('0x11')]);module['exports']=router;