Built motion from commit e38a297d.|2.6.18
[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 _0xa991=['path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated','index','post','create','put','/:id','delete','exports','multer'];(function(_0x2a76fa,_0x1cee7d){var _0x2d2442=function(_0x2f5e81){while(--_0x2f5e81){_0x2a76fa['push'](_0x2a76fa['shift']());}};_0x2d2442(++_0x1cee7d);}(_0xa991,0x143));var _0x1a99=function(_0xa148b7,_0x2f3eb2){_0xa148b7=_0xa148b7-0x0;var _0x51efd3=_0xa991[_0xa148b7];return _0x51efd3;};'use strict';var multer=require(_0x1a99('0x0'));var util=require('util');var path=require(_0x1a99('0x1'));var timeout=require(_0x1a99('0x2'));var express=require(_0x1a99('0x3'));var router=express[_0x1a99('0x4')]();var fs_extra=require(_0x1a99('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x1a99('0x6'));var config=require(_0x1a99('0x7'));var controller=require(_0x1a99('0x8'));router[_0x1a99('0x9')]('/',auth[_0x1a99('0xa')](),controller[_0x1a99('0xb')]);router[_0x1a99('0x9')]('/:id',auth[_0x1a99('0xa')](),controller['show']);router[_0x1a99('0xc')]('/',auth[_0x1a99('0xa')](),controller[_0x1a99('0xd')]);router[_0x1a99('0xe')](_0x1a99('0xf'),auth[_0x1a99('0xa')](),controller['update']);router[_0x1a99('0x10')](_0x1a99('0xf'),auth[_0x1a99('0xa')](),controller['destroy']);module[_0x1a99('0x11')]=router;