Built motion from commit (unavailable).|2.5.23
[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 _0x3ff7=['get','show','destroy','multer','util','connect-timeout','express','Router','../../components/interaction/service','isAuthenticated','index'];(function(_0x65e4f1,_0x40b8ee){var _0x3e44be=function(_0x341e97){while(--_0x341e97){_0x65e4f1['push'](_0x65e4f1['shift']());}};_0x3e44be(++_0x40b8ee);}(_0x3ff7,0x9d));var _0x73ff=function(_0x1667df,_0x266940){_0x1667df=_0x1667df-0x0;var _0x341abf=_0x3ff7[_0x1667df];return _0x341abf;};'use strict';var multer=require(_0x73ff('0x0'));var util=require(_0x73ff('0x1'));var path=require('path');var timeout=require(_0x73ff('0x2'));var express=require(_0x73ff('0x3'));var router=express[_0x73ff('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x73ff('0x5'));var config=require('../../config/environment');var controller=require('./intSalesforceField.controller');router['get']('/',auth[_0x73ff('0x6')](),controller[_0x73ff('0x7')]);router[_0x73ff('0x8')]('/:id',auth[_0x73ff('0x6')](),controller[_0x73ff('0x9')]);router['post']('/',auth[_0x73ff('0x6')](),controller['create']);router['put']('/:id',auth[_0x73ff('0x6')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x73ff('0xa')]);module['exports']=router;