Built motion from commit 3e059bc2.|2.5.32
[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 _0x935b=['../../components/interaction/service','../../config/environment','./intSalesforceField.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','destroy','path','connect-timeout','fs-extra'];(function(_0x15fd49,_0x4e6aef){var _0x2f03ee=function(_0x45acc9){while(--_0x45acc9){_0x15fd49['push'](_0x15fd49['shift']());}};_0x2f03ee(++_0x4e6aef);}(_0x935b,0x15d));var _0xb935=function(_0x32f894,_0x52186b){_0x32f894=_0x32f894-0x0;var _0x51096d=_0x935b[_0x32f894];return _0x51096d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb935('0x0'));var timeout=require(_0xb935('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xb935('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xb935('0x3'));var config=require(_0xb935('0x4'));var controller=require(_0xb935('0x5'));router[_0xb935('0x6')]('/',auth['isAuthenticated'](),controller[_0xb935('0x7')]);router['get'](_0xb935('0x8'),auth[_0xb935('0x9')](),controller[_0xb935('0xa')]);router[_0xb935('0xb')]('/',auth[_0xb935('0x9')](),controller[_0xb935('0xc')]);router[_0xb935('0xd')](_0xb935('0x8'),auth[_0xb935('0x9')](),controller[_0xb935('0xe')]);router['delete'](_0xb935('0x8'),auth[_0xb935('0x9')](),controller[_0xb935('0xf')]);module['exports']=router;