309e6e48efe8e434e411bcc8a249d571d72a786b
[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 _0x2f99=['post','create','addContacts','put','/:id','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','./cmCompany.controller','get','isAuthenticated','/describe','/:id/contacts'];(function(_0x874cf1,_0x2a4954){var _0x233579=function(_0xa6e939){while(--_0xa6e939){_0x874cf1['push'](_0x874cf1['shift']());}};_0x233579(++_0x2a4954);}(_0x2f99,0x184));var _0x92f9=function(_0x29dedd,_0x3c7419){_0x29dedd=_0x29dedd-0x0;var _0x4e6d4f=_0x2f99[_0x29dedd];return _0x4e6d4f;};'use strict';var multer=require(_0x92f9('0x0'));var util=require(_0x92f9('0x1'));var path=require(_0x92f9('0x2'));var timeout=require(_0x92f9('0x3'));var express=require(_0x92f9('0x4'));var router=express['Router']();var fs_extra=require(_0x92f9('0x5'));var auth=require(_0x92f9('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x92f9('0x7'));router[_0x92f9('0x8')]('/',auth[_0x92f9('0x9')](),controller['index']);router['get'](_0x92f9('0xa'),auth[_0x92f9('0x9')](),controller['describe']);router[_0x92f9('0x8')]('/:id',auth[_0x92f9('0x9')](),controller['show']);router[_0x92f9('0x8')](_0x92f9('0xb'),auth['isAuthenticated'](),controller['getContacts']);router[_0x92f9('0xc')]('/',auth['isAuthenticated'](),controller[_0x92f9('0xd')]);router[_0x92f9('0xc')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x92f9('0xe')]);router[_0x92f9('0xf')](_0x92f9('0x10'),auth[_0x92f9('0x9')](),controller['update']);router[_0x92f9('0x11')](_0x92f9('0x10'),auth[_0x92f9('0x9')](),controller[_0x92f9('0x12')]);module[_0x92f9('0x13')]=router;