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