Built motion from commit f57cc866.|2.6.31
[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 _0x5fe0=['../../components/interaction/service','./intSalesforceField.controller','isAuthenticated','get','show','post','create','put','/:id','update','delete','destroy','util','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x5fe0,0x94));var _0x05fe=function(_0x4c01da,_0x1a1585){_0x4c01da=_0x4c01da-0x0;var _0x3c7586=_0x5fe0[_0x4c01da];return _0x3c7586;};'use strict';var multer=require('multer');var util=require(_0x05fe('0x0'));var path=require('path');var timeout=require(_0x05fe('0x1'));var express=require('express');var router=express[_0x05fe('0x2')]();var fs_extra=require(_0x05fe('0x3'));var auth=require(_0x05fe('0x4'));var interaction=require(_0x05fe('0x5'));var config=require('../../config/environment');var controller=require(_0x05fe('0x6'));router['get']('/',auth[_0x05fe('0x7')](),controller['index']);router[_0x05fe('0x8')]('/:id',auth[_0x05fe('0x7')](),controller[_0x05fe('0x9')]);router[_0x05fe('0xa')]('/',auth[_0x05fe('0x7')](),controller[_0x05fe('0xb')]);router[_0x05fe('0xc')](_0x05fe('0xd'),auth['isAuthenticated'](),controller[_0x05fe('0xe')]);router[_0x05fe('0xf')]('/:id',auth[_0x05fe('0x7')](),controller[_0x05fe('0x10')]);module['exports']=router;