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