Built motion from commit (unavailable).|2.3.9
[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 _0xe0ab=['/:id/contacts','getContacts','post','create','addContacts','put','update','delete','destroy','exports','multer','util','path','express','../../components/auth/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','get','/:id','show'];(function(_0x598604,_0xe7a97f){var _0x38e233=function(_0x3efe68){while(--_0x3efe68){_0x598604['push'](_0x598604['shift']());}};_0x38e233(++_0xe7a97f);}(_0xe0ab,0x1d8));var _0xbe0a=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xe0ab[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xbe0a('0x0'));var util=require(_0xbe0a('0x1'));var path=require(_0xbe0a('0x2'));var timeout=require('connect-timeout');var express=require(_0xbe0a('0x3'));var router=express['Router']();var auth=require(_0xbe0a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xbe0a('0x5'));var controller=require(_0xbe0a('0x6'));router['get']('/',auth[_0xbe0a('0x7')](),controller[_0xbe0a('0x8')]);router[_0xbe0a('0x9')](_0xbe0a('0xa'),auth[_0xbe0a('0x7')](),controller[_0xbe0a('0xb')]);router[_0xbe0a('0x9')](_0xbe0a('0xc'),auth['isAuthenticated'](),controller[_0xbe0a('0xd')]);router[_0xbe0a('0xe')]('/',auth[_0xbe0a('0x7')](),controller[_0xbe0a('0xf')]);router[_0xbe0a('0xe')]('/:id/contacts',auth[_0xbe0a('0x7')](),controller[_0xbe0a('0x10')]);router[_0xbe0a('0x11')](_0xbe0a('0xa'),auth[_0xbe0a('0x7')](),controller[_0xbe0a('0x12')]);router[_0xbe0a('0x13')](_0xbe0a('0xa'),auth['isAuthenticated'](),controller[_0xbe0a('0x14')]);module[_0xbe0a('0x15')]=router;