31363bd0ea464ebdba82b98b037eebc1958e8bee
[motion2.git] / server / api / openchannelAccount / 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 _0x1182=['getApplications','/:id/interactions','getInteractions','getAgents','post','create','addAnswer','/:id/notify','notify','/:id/users','addAgents','/:id/send','send','update','delete','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./openchannelAccount.controller','get','isAuthenticated','index','/describe','/:id','/:id/dispositions','getDispositions','/:id/canned_answers','/:id/applications'];(function(_0x22ffbf,_0x16f31e){var _0x360c17=function(_0x40807f){while(--_0x40807f){_0x22ffbf['push'](_0x22ffbf['shift']());}};_0x360c17(++_0x16f31e);}(_0x1182,0xc7));var _0x2118=function(_0x3eae7f,_0x33064f){_0x3eae7f=_0x3eae7f-0x0;var _0x353603=_0x1182[_0x3eae7f];return _0x353603;};'use strict';var multer=require(_0x2118('0x0'));var util=require(_0x2118('0x1'));var path=require(_0x2118('0x2'));var timeout=require(_0x2118('0x3'));var express=require('express');var router=express[_0x2118('0x4')]();var auth=require(_0x2118('0x5'));var interaction=require(_0x2118('0x6'));var config=require('../../config/environment');var controller=require(_0x2118('0x7'));router[_0x2118('0x8')]('/',auth[_0x2118('0x9')](),controller[_0x2118('0xa')]);router[_0x2118('0x8')](_0x2118('0xb'),auth[_0x2118('0x9')](),controller['describe']);router[_0x2118('0x8')](_0x2118('0xc'),auth[_0x2118('0x9')](),controller['show']);router[_0x2118('0x8')](_0x2118('0xd'),auth[_0x2118('0x9')](),controller[_0x2118('0xe')]);router['get'](_0x2118('0xf'),auth[_0x2118('0x9')](),controller['getAnswers']);router[_0x2118('0x8')](_0x2118('0x10'),auth[_0x2118('0x9')](),controller[_0x2118('0x11')]);router[_0x2118('0x8')](_0x2118('0x12'),auth[_0x2118('0x9')](),controller[_0x2118('0x13')]);router[_0x2118('0x8')]('/:id/users',auth['isAuthenticated'](),controller[_0x2118('0x14')]);router[_0x2118('0x15')]('/',auth[_0x2118('0x9')](),controller[_0x2118('0x16')]);router[_0x2118('0x15')]('/:id/dispositions',auth[_0x2118('0x9')](),controller['addDisposition']);router[_0x2118('0x15')](_0x2118('0xf'),auth[_0x2118('0x9')](),controller[_0x2118('0x17')]);router[_0x2118('0x15')](_0x2118('0x18'),controller[_0x2118('0x19')]);router[_0x2118('0x15')]('/:id/applications',auth[_0x2118('0x9')](),controller['addApplications']);router['post'](_0x2118('0x1a'),auth[_0x2118('0x9')](),controller[_0x2118('0x1b')]);router[_0x2118('0x15')](_0x2118('0x1c'),auth[_0x2118('0x9')](),controller[_0x2118('0x1d')]);router['put'](_0x2118('0xc'),auth[_0x2118('0x9')](),controller[_0x2118('0x1e')]);router[_0x2118('0x1f')](_0x2118('0xc'),auth['isAuthenticated'](),controller['destroy']);router['delete']('/:id/dispositions',auth[_0x2118('0x9')](),controller[_0x2118('0x20')]);router[_0x2118('0x1f')](_0x2118('0xf'),auth['isAuthenticated'](),controller[_0x2118('0x21')]);router['delete']('/:id/users',auth[_0x2118('0x9')](),controller[_0x2118('0x22')]);module[_0x2118('0x23')]=router;