Built motion from commit (unavailable).|2.5.30
[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 _0x3554=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','isAuthenticated','/describe','show','get','/:id/contacts','post','addContacts','/:id','delete','destroy','exports','util','path','connect-timeout'];(function(_0x4a7e90,_0x5bae83){var _0x32968e=function(_0xf31eb1){while(--_0xf31eb1){_0x4a7e90['push'](_0x4a7e90['shift']());}};_0x32968e(++_0x5bae83);}(_0x3554,0x1b5));var _0x4355=function(_0x41e7fd,_0xae6a67){_0x41e7fd=_0x41e7fd-0x0;var _0x362ecb=_0x3554[_0x41e7fd];return _0x362ecb;};'use strict';var multer=require('multer');var util=require(_0x4355('0x0'));var path=require(_0x4355('0x1'));var timeout=require(_0x4355('0x2'));var express=require(_0x4355('0x3'));var router=express['Router']();var fs_extra=require(_0x4355('0x4'));var auth=require(_0x4355('0x5'));var interaction=require(_0x4355('0x6'));var config=require(_0x4355('0x7'));var controller=require(_0x4355('0x8'));router['get']('/',auth[_0x4355('0x9')](),controller['index']);router['get'](_0x4355('0xa'),auth[_0x4355('0x9')](),controller['describe']);router['get']('/:id',auth[_0x4355('0x9')](),controller[_0x4355('0xb')]);router[_0x4355('0xc')](_0x4355('0xd'),auth[_0x4355('0x9')](),controller['getContacts']);router['post']('/',auth[_0x4355('0x9')](),controller['create']);router[_0x4355('0xe')](_0x4355('0xd'),auth[_0x4355('0x9')](),controller[_0x4355('0xf')]);router['put'](_0x4355('0x10'),auth['isAuthenticated'](),controller['update']);router[_0x4355('0x11')](_0x4355('0x10'),auth[_0x4355('0x9')](),controller[_0x4355('0x12')]);module[_0x4355('0x13')]=router;