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