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