e2a6b80cb580c3069d5cf39a3c4e2bbfc186b5af
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0x7fb4=['DeskField','Subjects','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','nameField','customField','Tag','../../client','getDeskAccounts','Request','name','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations'];(function(_0x51bd42,_0x2f0ef8){var _0x61f526=function(_0x26825f){while(--_0x26825f){_0x51bd42['push'](_0x51bd42['shift']());}};_0x61f526(++_0x2f0ef8);}(_0x7fb4,0x1e1));var _0x47fb=function(_0x413c0d,_0xe511f4){_0x413c0d=_0x413c0d-0x0;var _0xb8f3c1=_0x7fb4[_0x413c0d];return _0xb8f3c1;};'use strict';var client=require(_0x47fb('0x0'));exports[_0x47fb('0x1')]=function(){return function(_0x801abf){return client[_0x47fb('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x47fb('0x3'),_0x47fb('0x4'),_0x47fb('0x5'),_0x47fb('0x6'),_0x47fb('0x7'),_0x47fb('0x8'),_0x47fb('0x9'),_0x47fb('0xa')],'include':[{'model':_0x47fb('0xb'),'as':_0x47fb('0xc'),'attributes':['id',_0x47fb('0x3')],'include':[{'model':_0x47fb('0xd'),'as':_0x47fb('0xe'),'attributes':['id',_0x47fb('0x9'),_0x47fb('0xf'),'variableName'],'include':[{'model':_0x47fb('0x10'),'as':_0x47fb('0x10'),'attributes':['id',_0x47fb('0x3')]}]},{'model':_0x47fb('0xd'),'as':_0x47fb('0x11'),'attributes':['id',_0x47fb('0x9'),_0x47fb('0xf'),_0x47fb('0x12'),_0x47fb('0x13'),_0x47fb('0x14'),_0x47fb('0x15')],'include':[{'model':_0x47fb('0x10'),'as':_0x47fb('0x10'),'attributes':['id',_0x47fb('0x3')]}]},{'model':_0x47fb('0xd'),'as':_0x47fb('0x16'),'attributes':['id',_0x47fb('0x9'),_0x47fb('0xf'),'idField',_0x47fb('0x17'),_0x47fb('0x18'),_0x47fb('0x15')],'include':[{'model':'Variable','as':_0x47fb('0x10'),'attributes':['id',_0x47fb('0x3')]}]},{'model':_0x47fb('0x19'),'as':'Tags','attributes':['id',_0x47fb('0x3')]}]}]},'log':'GetDeskAccount'});};};