Built motion from commit 43538d75.|2.5.35
[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 _0xfc03=['post','create','put','update','delete','/:id','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated','index'];(function(_0x4abbd3,_0x198039){var _0x1d0eee=function(_0x40d6e5){while(--_0x40d6e5){_0x4abbd3['push'](_0x4abbd3['shift']());}};_0x1d0eee(++_0x198039);}(_0xfc03,0x16f));var _0x3fc0=function(_0x22b68a,_0x2bffc3){_0x22b68a=_0x22b68a-0x0;var _0x1ac67a=_0xfc03[_0x22b68a];return _0x1ac67a;};'use strict';var multer=require(_0x3fc0('0x0'));var util=require('util');var path=require(_0x3fc0('0x1'));var timeout=require(_0x3fc0('0x2'));var express=require('express');var router=express[_0x3fc0('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3fc0('0x4'));var interaction=require(_0x3fc0('0x5'));var config=require(_0x3fc0('0x6'));var controller=require(_0x3fc0('0x7'));router[_0x3fc0('0x8')]('/',auth[_0x3fc0('0x9')](),controller[_0x3fc0('0xa')]);router[_0x3fc0('0x8')]('/:id',auth[_0x3fc0('0x9')](),controller['show']);router[_0x3fc0('0xb')]('/',auth[_0x3fc0('0x9')](),controller[_0x3fc0('0xc')]);router[_0x3fc0('0xd')]('/:id',auth[_0x3fc0('0x9')](),controller[_0x3fc0('0xe')]);router[_0x3fc0('0xf')](_0x3fc0('0x10'),auth[_0x3fc0('0x9')](),controller['destroy']);module[_0x3fc0('0x11')]=router;