Built motion from commit 5b761a7b.|2.5.36
[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 _0x0cfa=['post','create','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated'];(function(_0x122b1f,_0x1d0387){var _0x4be6d4=function(_0x258a41){while(--_0x258a41){_0x122b1f['push'](_0x122b1f['shift']());}};_0x4be6d4(++_0x1d0387);}(_0x0cfa,0x18f));var _0xa0cf=function(_0x2ec26e,_0x3c6d9f){_0x2ec26e=_0x2ec26e-0x0;var _0x2b41f7=_0x0cfa[_0x2ec26e];return _0x2b41f7;};'use strict';var multer=require(_0xa0cf('0x0'));var util=require(_0xa0cf('0x1'));var path=require(_0xa0cf('0x2'));var timeout=require(_0xa0cf('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa0cf('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xa0cf('0x5'));var controller=require(_0xa0cf('0x6'));router[_0xa0cf('0x7')]('/',auth[_0xa0cf('0x8')](),controller['index']);router[_0xa0cf('0x7')]('/:id',auth[_0xa0cf('0x8')](),controller['show']);router[_0xa0cf('0x9')]('/',auth['isAuthenticated'](),controller[_0xa0cf('0xa')]);router[_0xa0cf('0xb')](_0xa0cf('0xc'),auth['isAuthenticated'](),controller[_0xa0cf('0xd')]);router[_0xa0cf('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xa0cf('0xf')]);module[_0xa0cf('0x10')]=router;