Built motion from commit 3e059bc2.|2.5.32
[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 _0x22a8=['/:id','show','/:id/contacts','getContacts','create','addContacts','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./cmCompany.controller','index','get','/describe','isAuthenticated','describe'];(function(_0x175538,_0x5eefa6){var _0x23dd60=function(_0x322558){while(--_0x322558){_0x175538['push'](_0x175538['shift']());}};_0x23dd60(++_0x5eefa6);}(_0x22a8,0x6e));var _0x822a=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x22a8[_0x40a045];return _0x1a687c;};'use strict';var multer=require(_0x822a('0x0'));var util=require(_0x822a('0x1'));var path=require(_0x822a('0x2'));var timeout=require(_0x822a('0x3'));var express=require(_0x822a('0x4'));var router=express[_0x822a('0x5')]();var fs_extra=require(_0x822a('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x822a('0x7'));var config=require(_0x822a('0x8'));var controller=require(_0x822a('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x822a('0xa')]);router[_0x822a('0xb')](_0x822a('0xc'),auth[_0x822a('0xd')](),controller[_0x822a('0xe')]);router[_0x822a('0xb')](_0x822a('0xf'),auth[_0x822a('0xd')](),controller[_0x822a('0x10')]);router[_0x822a('0xb')](_0x822a('0x11'),auth[_0x822a('0xd')](),controller[_0x822a('0x12')]);router['post']('/',auth['isAuthenticated'](),controller[_0x822a('0x13')]);router['post'](_0x822a('0x11'),auth['isAuthenticated'](),controller[_0x822a('0x14')]);router[_0x822a('0x15')](_0x822a('0xf'),auth[_0x822a('0xd')](),controller[_0x822a('0x16')]);router[_0x822a('0x17')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x822a('0x18')]=router;