e6e6801f354d91f1dbc3a4a86e160d8f14c7c6f7
[motion2.git] / server / api / cmCompany / 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 _0x8e24=['show','getContacts','post','create','/:id/contacts','addContacts','put','update','delete','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','get','/describe','/:id'];(function(_0x2bf5df,_0x47b31a){var _0x285a4d=function(_0x5f6daf){while(--_0x5f6daf){_0x2bf5df['push'](_0x2bf5df['shift']());}};_0x285a4d(++_0x47b31a);}(_0x8e24,0x179));var _0x48e2=function(_0x1b6311,_0x42ec20){_0x1b6311=_0x1b6311-0x0;var _0x25aab6=_0x8e24[_0x1b6311];return _0x25aab6;};'use strict';var multer=require(_0x48e2('0x0'));var util=require(_0x48e2('0x1'));var path=require('path');var timeout=require(_0x48e2('0x2'));var express=require(_0x48e2('0x3'));var router=express['Router']();var fs_extra=require(_0x48e2('0x4'));var auth=require(_0x48e2('0x5'));var interaction=require(_0x48e2('0x6'));var config=require(_0x48e2('0x7'));var controller=require(_0x48e2('0x8'));router['get']('/',auth[_0x48e2('0x9')](),controller[_0x48e2('0xa')]);router[_0x48e2('0xb')](_0x48e2('0xc'),auth[_0x48e2('0x9')](),controller['describe']);router[_0x48e2('0xb')](_0x48e2('0xd'),auth[_0x48e2('0x9')](),controller[_0x48e2('0xe')]);router[_0x48e2('0xb')]('/:id/contacts',auth[_0x48e2('0x9')](),controller[_0x48e2('0xf')]);router[_0x48e2('0x10')]('/',auth[_0x48e2('0x9')](),controller[_0x48e2('0x11')]);router[_0x48e2('0x10')](_0x48e2('0x12'),auth[_0x48e2('0x9')](),controller[_0x48e2('0x13')]);router[_0x48e2('0x14')]('/:id',auth[_0x48e2('0x9')](),controller[_0x48e2('0x15')]);router[_0x48e2('0x16')](_0x48e2('0xd'),auth[_0x48e2('0x9')](),controller['destroy']);module['exports']=router;