Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / intSugarcrmAccount / 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 _0x09ae=['/:id','show','/:id/configurations','getConfigurations','/:id/fields','create','post','addConfiguration','delete','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../config/environment','./intSugarcrmAccount.controller','get','isAuthenticated','index'];(function(_0x34cd54,_0x428351){var _0x1bb079=function(_0x333851){while(--_0x333851){_0x34cd54['push'](_0x34cd54['shift']());}};_0x1bb079(++_0x428351);}(_0x09ae,0x89));var _0xe09a=function(_0x42b848,_0x105663){_0x42b848=_0x42b848-0x0;var _0x39bb89=_0x09ae[_0x42b848];return _0x39bb89;};'use strict';var multer=require(_0xe09a('0x0'));var util=require(_0xe09a('0x1'));var path=require(_0xe09a('0x2'));var timeout=require(_0xe09a('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xe09a('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe09a('0x5'));var controller=require(_0xe09a('0x6'));router[_0xe09a('0x7')]('/',auth[_0xe09a('0x8')](),controller[_0xe09a('0x9')]);router[_0xe09a('0x7')](_0xe09a('0xa'),auth[_0xe09a('0x8')](),controller[_0xe09a('0xb')]);router['get'](_0xe09a('0xc'),auth[_0xe09a('0x8')](),controller[_0xe09a('0xd')]);router[_0xe09a('0x7')](_0xe09a('0xe'),auth[_0xe09a('0x8')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller[_0xe09a('0xf')]);router[_0xe09a('0x10')](_0xe09a('0xc'),auth[_0xe09a('0x8')](),controller[_0xe09a('0x11')]);router['put'](_0xe09a('0xa'),auth[_0xe09a('0x8')](),controller['update']);router[_0xe09a('0x12')](_0xe09a('0xa'),auth[_0xe09a('0x8')](),controller[_0xe09a('0x13')]);module[_0xe09a('0x14')]=router;