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