a1781752167e9826d0ba98dc8227d95d214f7aad
[motion2.git] / server / api / intSalesforceAccount / 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 _0xe206=['/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','put','update','delete','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','show','get','getConfigurations'];(function(_0x6f4339,_0x1466a9){var _0x1e5f9f=function(_0xef8652){while(--_0xef8652){_0x6f4339['push'](_0x6f4339['shift']());}};_0x1e5f9f(++_0x1466a9);}(_0xe206,0x7d));var _0x6e20=function(_0x1fd675,_0x165dfe){_0x1fd675=_0x1fd675-0x0;var _0x16b554=_0xe206[_0x1fd675];return _0x16b554;};'use strict';var multer=require(_0x6e20('0x0'));var util=require('util');var path=require(_0x6e20('0x1'));var timeout=require(_0x6e20('0x2'));var express=require(_0x6e20('0x3'));var router=express['Router']();var auth=require(_0x6e20('0x4'));var interaction=require(_0x6e20('0x5'));var config=require(_0x6e20('0x6'));var controller=require('./intSalesforceAccount.controller');router['get']('/',auth[_0x6e20('0x7')](),controller[_0x6e20('0x8')]);router['get'](_0x6e20('0x9'),auth['isAuthenticated'](),controller[_0x6e20('0xa')]);router[_0x6e20('0xb')]('/:id/configurations',auth[_0x6e20('0x7')](),controller[_0x6e20('0xc')]);router[_0x6e20('0xb')](_0x6e20('0xd'),auth[_0x6e20('0x7')](),controller[_0x6e20('0xe')]);router['post']('/',auth[_0x6e20('0x7')](),controller[_0x6e20('0xf')]);router[_0x6e20('0x10')](_0x6e20('0x11'),auth[_0x6e20('0x7')](),controller[_0x6e20('0x12')]);router[_0x6e20('0x13')](_0x6e20('0x9'),auth[_0x6e20('0x7')](),controller[_0x6e20('0x14')]);router[_0x6e20('0x15')](_0x6e20('0x9'),auth[_0x6e20('0x7')](),controller['destroy']);module[_0x6e20('0x16')]=router;