e820fb3d141060bdb0cbd2ed3b81ed939c58fe4a
[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 _0xf34e=['multer','util','path','express','fs-extra','../../components/auth/service','../../config/environment','./cmCompany.controller','get','index','/describe','isAuthenticated','/:id','/:id/contacts','getContacts','addContacts','put','delete','destroy','exports'];(function(_0x4a7631,_0x2c85b9){var _0x1a5a6f=function(_0x1ee3fd){while(--_0x1ee3fd){_0x4a7631['push'](_0x4a7631['shift']());}};_0x1a5a6f(++_0x2c85b9);}(_0xf34e,0x12c));var _0xef34=function(_0xdbf138,_0x41c5b1){_0xdbf138=_0xdbf138-0x0;var _0x2e3fb1=_0xf34e[_0xdbf138];return _0x2e3fb1;};'use strict';var multer=require(_0xef34('0x0'));var util=require(_0xef34('0x1'));var path=require(_0xef34('0x2'));var timeout=require('connect-timeout');var express=require(_0xef34('0x3'));var router=express['Router']();var fs_extra=require(_0xef34('0x4'));var auth=require(_0xef34('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xef34('0x6'));var controller=require(_0xef34('0x7'));router[_0xef34('0x8')]('/',auth['isAuthenticated'](),controller[_0xef34('0x9')]);router[_0xef34('0x8')](_0xef34('0xa'),auth[_0xef34('0xb')](),controller['describe']);router[_0xef34('0x8')](_0xef34('0xc'),auth[_0xef34('0xb')](),controller['show']);router[_0xef34('0x8')](_0xef34('0xd'),auth['isAuthenticated'](),controller[_0xef34('0xe')]);router['post']('/',auth[_0xef34('0xb')](),controller['create']);router['post']('/:id/contacts',auth['isAuthenticated'](),controller[_0xef34('0xf')]);router[_0xef34('0x10')](_0xef34('0xc'),auth[_0xef34('0xb')](),controller['update']);router[_0xef34('0x11')](_0xef34('0xc'),auth[_0xef34('0xb')](),controller[_0xef34('0x12')]);module[_0xef34('0x13')]=router;