Built motion from commit 0900f080.|2.5.45
[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 _0x2ceb=['./intFreshsalesField.controller','get','index','isAuthenticated','show','post','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x588371,_0x2ea6e6){var _0x233b57=function(_0x241b1a){while(--_0x241b1a){_0x588371['push'](_0x588371['shift']());}};_0x233b57(++_0x2ea6e6);}(_0x2ceb,0x110));var _0xb2ce=function(_0x1b3ade,_0x5768a3){_0x1b3ade=_0x1b3ade-0x0;var _0x1e74ff=_0x2ceb[_0x1b3ade];return _0x1e74ff;};'use strict';var multer=require(_0xb2ce('0x0'));var util=require(_0xb2ce('0x1'));var path=require('path');var timeout=require(_0xb2ce('0x2'));var express=require(_0xb2ce('0x3'));var router=express[_0xb2ce('0x4')]();var fs_extra=require(_0xb2ce('0x5'));var auth=require(_0xb2ce('0x6'));var interaction=require(_0xb2ce('0x7'));var config=require('../../config/environment');var controller=require(_0xb2ce('0x8'));router[_0xb2ce('0x9')]('/',auth['isAuthenticated'](),controller[_0xb2ce('0xa')]);router[_0xb2ce('0x9')]('/:id',auth[_0xb2ce('0xb')](),controller[_0xb2ce('0xc')]);router[_0xb2ce('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xb2ce('0xe')](_0xb2ce('0xf'),auth['isAuthenticated'](),controller[_0xb2ce('0x10')]);router[_0xb2ce('0x11')](_0xb2ce('0xf'),auth[_0xb2ce('0xb')](),controller[_0xb2ce('0x12')]);module[_0xb2ce('0x13')]=router;