Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / intFreshsalesAccount / 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 _0x58bd=['getFields','addConfiguration','put','update','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations'];(function(_0x33350b,_0x3ae04e){var _0x547688=function(_0x1ee3f3){while(--_0x1ee3f3){_0x33350b['push'](_0x33350b['shift']());}};_0x547688(++_0x3ae04e);}(_0x58bd,0x18b));var _0xd58b=function(_0xdb7d96,_0x507658){_0xdb7d96=_0xdb7d96-0x0;var _0x169d91=_0x58bd[_0xdb7d96];return _0x169d91;};'use strict';var multer=require(_0xd58b('0x0'));var util=require(_0xd58b('0x1'));var path=require(_0xd58b('0x2'));var timeout=require('connect-timeout');var express=require(_0xd58b('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xd58b('0x4'));var interaction=require(_0xd58b('0x5'));var config=require(_0xd58b('0x6'));var controller=require(_0xd58b('0x7'));router[_0xd58b('0x8')]('/',auth['isAuthenticated'](),controller[_0xd58b('0x9')]);router[_0xd58b('0x8')](_0xd58b('0xa'),auth[_0xd58b('0xb')](),controller['show']);router[_0xd58b('0x8')](_0xd58b('0xc'),auth['isAuthenticated'](),controller['getConfigurations']);router['get']('/:id/fields',auth[_0xd58b('0xb')](),controller[_0xd58b('0xd')]);router['post']('/',auth[_0xd58b('0xb')](),controller['create']);router['post'](_0xd58b('0xc'),auth[_0xd58b('0xb')](),controller[_0xd58b('0xe')]);router[_0xd58b('0xf')](_0xd58b('0xa'),auth['isAuthenticated'](),controller[_0xd58b('0x10')]);router['delete'](_0xd58b('0xa'),auth[_0xd58b('0xb')](),controller['destroy']);module['exports']=router;