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