Built motion from commit 994c64e1.|2.6.1
[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 _0x5f7e=['index','get','/describe','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getInteractions','post','create','addDisposition','addAnswer','/:id/notify','notify','addAgents','/:id/send','send','put','update','delete','removeDispositions','removeAnswers','/:id/users','removeAgents','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated'];(function(_0x3580f0,_0xbdc375){var _0x468a20=function(_0x44829d){while(--_0x44829d){_0x3580f0['push'](_0x3580f0['shift']());}};_0x468a20(++_0xbdc375);}(_0x5f7e,0x69));var _0xe5f7=function(_0x3da832,_0x2133f1){_0x3da832=_0x3da832-0x0;var _0xe602f2=_0x5f7e[_0x3da832];return _0xe602f2;};'use strict';var multer=require('multer');var util=require(_0xe5f7('0x0'));var path=require(_0xe5f7('0x1'));var timeout=require('connect-timeout');var express=require(_0xe5f7('0x2'));var router=express[_0xe5f7('0x3')]();var fs_extra=require(_0xe5f7('0x4'));var auth=require(_0xe5f7('0x5'));var interaction=require(_0xe5f7('0x6'));var config=require(_0xe5f7('0x7'));var controller=require('./openchannelAccount.controller');router['get']('/',auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x9')]);router[_0xe5f7('0xa')](_0xe5f7('0xb'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0xc')]);router[_0xe5f7('0xa')](_0xe5f7('0xd'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0xe')]);router[_0xe5f7('0xa')](_0xe5f7('0xf'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x10')]);router[_0xe5f7('0xa')](_0xe5f7('0x11'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x12')]);router['get'](_0xe5f7('0x13'),auth[_0xe5f7('0x8')](),controller['getApplications']);router['get']('/:id/interactions',auth['isAuthenticated'](),controller[_0xe5f7('0x14')]);router[_0xe5f7('0xa')]('/:id/users',auth[_0xe5f7('0x8')](),controller['getAgents']);router[_0xe5f7('0x15')]('/',auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x16')]);router['post'](_0xe5f7('0xf'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x17')]);router[_0xe5f7('0x15')](_0xe5f7('0x11'),auth['isAuthenticated'](),controller[_0xe5f7('0x18')]);router[_0xe5f7('0x15')](_0xe5f7('0x19'),controller[_0xe5f7('0x1a')]);router['post']('/:id/applications',auth[_0xe5f7('0x8')](),controller['addApplications']);router['post']('/:id/users',auth['isAuthenticated'](),controller[_0xe5f7('0x1b')]);router[_0xe5f7('0x15')](_0xe5f7('0x1c'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x1d')]);router[_0xe5f7('0x1e')](_0xe5f7('0xd'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x1f')]);router[_0xe5f7('0x20')](_0xe5f7('0xd'),auth[_0xe5f7('0x8')](),controller['destroy']);router['delete'](_0xe5f7('0xf'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x21')]);router[_0xe5f7('0x20')](_0xe5f7('0x11'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x22')]);router[_0xe5f7('0x20')](_0xe5f7('0x23'),auth[_0xe5f7('0x8')](),controller[_0xe5f7('0x24')]);module[_0xe5f7('0x25')]=router;