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