Built motion from commit 85328c08.|2.5.50
[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 _0xd2ee=['getContacts','post','addContacts','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','/describe','describe','get','show'];(function(_0x1a4f8d,_0x57ce58){var _0x436671=function(_0x477f72){while(--_0x477f72){_0x1a4f8d['push'](_0x1a4f8d['shift']());}};_0x436671(++_0x57ce58);}(_0xd2ee,0x1a7));var _0xed2e=function(_0x58c701,_0xd216a9){_0x58c701=_0x58c701-0x0;var _0x24a7ce=_0xd2ee[_0x58c701];return _0x24a7ce;};'use strict';var multer=require(_0xed2e('0x0'));var util=require(_0xed2e('0x1'));var path=require('path');var timeout=require(_0xed2e('0x2'));var express=require('express');var router=express[_0xed2e('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xed2e('0x4'));var interaction=require(_0xed2e('0x5'));var config=require(_0xed2e('0x6'));var controller=require(_0xed2e('0x7'));router['get']('/',auth[_0xed2e('0x8')](),controller[_0xed2e('0x9')]);router['get'](_0xed2e('0xa'),auth[_0xed2e('0x8')](),controller[_0xed2e('0xb')]);router[_0xed2e('0xc')]('/:id',auth[_0xed2e('0x8')](),controller[_0xed2e('0xd')]);router[_0xed2e('0xc')]('/:id/contacts',auth[_0xed2e('0x8')](),controller[_0xed2e('0xe')]);router[_0xed2e('0xf')]('/',auth['isAuthenticated'](),controller['create']);router['post']('/:id/contacts',auth[_0xed2e('0x8')](),controller[_0xed2e('0x10')]);router[_0xed2e('0x11')](_0xed2e('0x12'),auth['isAuthenticated'](),controller[_0xed2e('0x13')]);router[_0xed2e('0x14')]('/:id',auth[_0xed2e('0x8')](),controller[_0xed2e('0x15')]);module[_0xed2e('0x16')]=router;