Built motion from commit (unavailable).|2.4.5
[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 _0x413a=['update','/:id','destroy','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSalesforceField.controller','get','isAuthenticated','index','create','put'];(function(_0x3ac4e7,_0x9f6f40){var _0x2f044c=function(_0x4e6039){while(--_0x4e6039){_0x3ac4e7['push'](_0x3ac4e7['shift']());}};_0x2f044c(++_0x9f6f40);}(_0x413a,0xe3));var _0xa413=function(_0x178d44,_0xcb092b){_0x178d44=_0x178d44-0x0;var _0x2b1ea0=_0x413a[_0x178d44];return _0x2b1ea0;};'use strict';var multer=require('multer');var util=require(_0xa413('0x0'));var path=require(_0xa413('0x1'));var timeout=require(_0xa413('0x2'));var express=require('express');var router=express[_0xa413('0x3')]();var auth=require(_0xa413('0x4'));var interaction=require(_0xa413('0x5'));var config=require(_0xa413('0x6'));var controller=require(_0xa413('0x7'));router[_0xa413('0x8')]('/',auth[_0xa413('0x9')](),controller[_0xa413('0xa')]);router[_0xa413('0x8')]('/:id',auth[_0xa413('0x9')](),controller['show']);router['post']('/',auth[_0xa413('0x9')](),controller[_0xa413('0xb')]);router[_0xa413('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xa413('0xd')]);router['delete'](_0xa413('0xe'),auth[_0xa413('0x9')](),controller[_0xa413('0xf')]);module['exports']=router;