d14520c0a05200fd21670658e38bed14ebb5bbe0
[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 _0x7a75=['multer','util','connect-timeout','express','fs-extra','../../components/interaction/service','./cmCompany.controller','get','isAuthenticated','index','/describe','describe','/:id','show','getContacts','post','/:id/contacts','addContacts','put','delete','destroy'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x7a75,0x18f));var _0x57a7=function(_0x49608e,_0x4bebb2){_0x49608e=_0x49608e-0x0;var _0x5eca4f=_0x7a75[_0x49608e];return _0x5eca4f;};'use strict';var multer=require(_0x57a7('0x0'));var util=require(_0x57a7('0x1'));var path=require('path');var timeout=require(_0x57a7('0x2'));var express=require(_0x57a7('0x3'));var router=express['Router']();var fs_extra=require(_0x57a7('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x57a7('0x5'));var config=require('../../config/environment');var controller=require(_0x57a7('0x6'));router[_0x57a7('0x7')]('/',auth[_0x57a7('0x8')](),controller[_0x57a7('0x9')]);router[_0x57a7('0x7')](_0x57a7('0xa'),auth[_0x57a7('0x8')](),controller[_0x57a7('0xb')]);router['get'](_0x57a7('0xc'),auth[_0x57a7('0x8')](),controller[_0x57a7('0xd')]);router[_0x57a7('0x7')]('/:id/contacts',auth[_0x57a7('0x8')](),controller[_0x57a7('0xe')]);router[_0x57a7('0xf')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x57a7('0x10'),auth['isAuthenticated'](),controller[_0x57a7('0x11')]);router[_0x57a7('0x12')](_0x57a7('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x57a7('0x13')](_0x57a7('0xc'),auth[_0x57a7('0x8')](),controller[_0x57a7('0x14')]);module['exports']=router;