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