1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x648e=['../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','/:id/contacts','addContacts','put','update','destroy','exports','multer','util','connect-timeout','Router','fs-extra'];(function(_0x18ff14,_0x14a584){var _0xbeceae=function(_0x2dd29e){while(--_0x2dd29e){_0x18ff14['push'](_0x18ff14['shift']());}};_0xbeceae(++_0x14a584);}(_0x648e,0xa3));var _0xe648=function(_0x5f2f98,_0x3d62ab){_0x5f2f98=_0x5f2f98-0x0;var _0x22c558=_0x648e[_0x5f2f98];return _0x22c558;};'use strict';var multer=require(_0xe648('0x0'));var util=require(_0xe648('0x1'));var path=require('path');var timeout=require(_0xe648('0x2'));var express=require('express');var router=express[_0xe648('0x3')]();var fs_extra=require(_0xe648('0x4'));var auth=require(_0xe648('0x5'));var interaction=require(_0xe648('0x6'));var config=require(_0xe648('0x7'));var controller=require(_0xe648('0x8'));router[_0xe648('0x9')]('/',auth[_0xe648('0xa')](),controller[_0xe648('0xb')]);router[_0xe648('0x9')](_0xe648('0xc'),auth[_0xe648('0xa')](),controller[_0xe648('0xd')]);router[_0xe648('0x9')](_0xe648('0xe'),auth['isAuthenticated'](),controller[_0xe648('0xf')]);router[_0xe648('0x9')]('/:id/contacts',auth[_0xe648('0xa')](),controller['getContacts']);router[_0xe648('0x10')]('/',auth[_0xe648('0xa')](),controller[_0xe648('0x11')]);router[_0xe648('0x10')](_0xe648('0x12'),auth[_0xe648('0xa')](),controller[_0xe648('0x13')]);router[_0xe648('0x14')](_0xe648('0xe'),auth[_0xe648('0xa')](),controller[_0xe648('0x15')]);router['delete'](_0xe648('0xe'),auth[_0xe648('0xa')](),controller[_0xe648('0x16')]);module[_0xe648('0x17')]=router;