Built motion from commit bab6f49e.|2.6.17
[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 _0x4a8d=['get','isAuthenticated','index','show','post','create','put','/:id','update','destroy','exports','path','connect-timeout','express','Router','../../components/interaction/service','./intSalesforceField.controller'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x4a8d,0x71));var _0xd4a8=function(_0x148521,_0x5796d5){_0x148521=_0x148521-0x0;var _0x4f38df=_0x4a8d[_0x148521];return _0x4f38df;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xd4a8('0x0'));var timeout=require(_0xd4a8('0x1'));var express=require(_0xd4a8('0x2'));var router=express[_0xd4a8('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xd4a8('0x4'));var config=require('../../config/environment');var controller=require(_0xd4a8('0x5'));router[_0xd4a8('0x6')]('/',auth[_0xd4a8('0x7')](),controller[_0xd4a8('0x8')]);router[_0xd4a8('0x6')]('/:id',auth[_0xd4a8('0x7')](),controller[_0xd4a8('0x9')]);router[_0xd4a8('0xa')]('/',auth[_0xd4a8('0x7')](),controller[_0xd4a8('0xb')]);router[_0xd4a8('0xc')](_0xd4a8('0xd'),auth[_0xd4a8('0x7')](),controller[_0xd4a8('0xe')]);router['delete'](_0xd4a8('0xd'),auth[_0xd4a8('0x7')](),controller[_0xd4a8('0xf')]);module[_0xd4a8('0x10')]=router;