Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / intFreshsalesField / 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 _0x5ff3=['fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesField.controller','get','isAuthenticated','index','post','create','/:id','update','delete','destroy','util','connect-timeout','Router'];(function(_0x3c3eb7,_0x55343d){var _0x108733=function(_0x5bd6f6){while(--_0x5bd6f6){_0x3c3eb7['push'](_0x3c3eb7['shift']());}};_0x108733(++_0x55343d);}(_0x5ff3,0x17d));var _0x35ff=function(_0x37c21a,_0xbfeeb7){_0x37c21a=_0x37c21a-0x0;var _0x4869ee=_0x5ff3[_0x37c21a];return _0x4869ee;};'use strict';var multer=require('multer');var util=require(_0x35ff('0x0'));var path=require('path');var timeout=require(_0x35ff('0x1'));var express=require('express');var router=express[_0x35ff('0x2')]();var fs_extra=require(_0x35ff('0x3'));var auth=require(_0x35ff('0x4'));var interaction=require(_0x35ff('0x5'));var config=require('../../config/environment');var controller=require(_0x35ff('0x6'));router[_0x35ff('0x7')]('/',auth[_0x35ff('0x8')](),controller[_0x35ff('0x9')]);router[_0x35ff('0x7')]('/:id',auth[_0x35ff('0x8')](),controller['show']);router[_0x35ff('0xa')]('/',auth[_0x35ff('0x8')](),controller[_0x35ff('0xb')]);router['put'](_0x35ff('0xc'),auth['isAuthenticated'](),controller[_0x35ff('0xd')]);router[_0x35ff('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x35ff('0xf')]);module['exports']=router;