5290f5359ae3c53d514b19a5365352ebd67c16d3
[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 _0x236c=['notify','addAgents','/:id/send','send','put','/:id','delete','destroy','removeDispositions','/:id/canned_answers','removeAgents','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelAccount.controller','get','isAuthenticated','index','/describe','/:id/dispositions','getDispositions','getAnswers','/:id/applications','getInteractions','/:id/users','post','addDisposition','/:id/notify'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x236c,0x155));var _0xc236=function(_0x1b6e0f,_0x11fd9a){_0x1b6e0f=_0x1b6e0f-0x0;var _0x1d9fac=_0x236c[_0x1b6e0f];return _0x1d9fac;};'use strict';var multer=require(_0xc236('0x0'));var util=require('util');var path=require(_0xc236('0x1'));var timeout=require(_0xc236('0x2'));var express=require(_0xc236('0x3'));var router=express[_0xc236('0x4')]();var fs_extra=require(_0xc236('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xc236('0x6'));var config=require(_0xc236('0x7'));var controller=require(_0xc236('0x8'));router[_0xc236('0x9')]('/',auth[_0xc236('0xa')](),controller[_0xc236('0xb')]);router['get'](_0xc236('0xc'),auth[_0xc236('0xa')](),controller['describe']);router['get']('/:id',auth[_0xc236('0xa')](),controller['show']);router[_0xc236('0x9')](_0xc236('0xd'),auth[_0xc236('0xa')](),controller[_0xc236('0xe')]);router[_0xc236('0x9')]('/:id/canned_answers',auth[_0xc236('0xa')](),controller[_0xc236('0xf')]);router['get'](_0xc236('0x10'),auth[_0xc236('0xa')](),controller['getApplications']);router[_0xc236('0x9')]('/:id/interactions',auth['isAuthenticated'](),controller[_0xc236('0x11')]);router[_0xc236('0x9')](_0xc236('0x12'),auth[_0xc236('0xa')](),controller['getAgents']);router[_0xc236('0x13')]('/',auth['isAuthenticated'](),controller['create']);router[_0xc236('0x13')](_0xc236('0xd'),auth[_0xc236('0xa')](),controller[_0xc236('0x14')]);router[_0xc236('0x13')]('/:id/canned_answers',auth['isAuthenticated'](),controller['addAnswer']);router[_0xc236('0x13')](_0xc236('0x15'),controller[_0xc236('0x16')]);router['post'](_0xc236('0x10'),auth['isAuthenticated'](),controller['addApplications']);router[_0xc236('0x13')](_0xc236('0x12'),auth[_0xc236('0xa')](),controller[_0xc236('0x17')]);router[_0xc236('0x13')](_0xc236('0x18'),auth[_0xc236('0xa')](),controller[_0xc236('0x19')]);router[_0xc236('0x1a')](_0xc236('0x1b'),auth[_0xc236('0xa')](),controller['update']);router[_0xc236('0x1c')](_0xc236('0x1b'),auth[_0xc236('0xa')](),controller[_0xc236('0x1d')]);router[_0xc236('0x1c')](_0xc236('0xd'),auth[_0xc236('0xa')](),controller[_0xc236('0x1e')]);router[_0xc236('0x1c')](_0xc236('0x1f'),auth[_0xc236('0xa')](),controller['removeAnswers']);router[_0xc236('0x1c')](_0xc236('0x12'),auth[_0xc236('0xa')](),controller[_0xc236('0x20')]);module['exports']=router;