432e1274833e03063b2b4c9f58ee4684337b3f74
[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 _0xf5af=['keyContent','Fields','idField','nameField','customField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','remoteUri','authType','type','serverUrl','DeskConfiguration','content','variableName','Variable','DeskField','Descriptions','keyType'];(function(_0x1d5f40,_0x57cd09){var _0x1dbe4a=function(_0xc62958){while(--_0xc62958){_0x1d5f40['push'](_0x1d5f40['shift']());}};_0x1dbe4a(++_0x57cd09);}(_0xf5af,0x13e));var _0xff5a=function(_0x1916e3,_0x3d8c77){_0x1916e3=_0x1916e3-0x0;var _0x164211=_0xf5af[_0x1916e3];return _0x164211;};'use strict';var client=require(_0xff5a('0x0'));exports[_0xff5a('0x1')]=function(){return function(_0x348367){return client[_0xff5a('0x2')](_0xff5a('0x3'),{'options':{'raw':![],'attributes':['id',_0xff5a('0x4'),_0xff5a('0x5'),_0xff5a('0x6'),'password',_0xff5a('0x7'),_0xff5a('0x8'),_0xff5a('0x9'),_0xff5a('0xa')],'include':[{'model':_0xff5a('0xb'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'DeskField','as':'Subjects','attributes':['id',_0xff5a('0x9'),_0xff5a('0xc'),_0xff5a('0xd')],'include':[{'model':_0xff5a('0xe'),'as':'Variable','attributes':['id',_0xff5a('0x4')]}]},{'model':_0xff5a('0xf'),'as':_0xff5a('0x10'),'attributes':['id',_0xff5a('0x9'),_0xff5a('0xc'),'key',_0xff5a('0x11'),_0xff5a('0x12'),_0xff5a('0xd')],'include':[{'model':_0xff5a('0xe'),'as':_0xff5a('0xe'),'attributes':['id',_0xff5a('0x4')]}]},{'model':_0xff5a('0xf'),'as':_0xff5a('0x13'),'attributes':['id',_0xff5a('0x9'),'content',_0xff5a('0x14'),_0xff5a('0x15'),_0xff5a('0x16'),'variableName'],'include':[{'model':_0xff5a('0xe'),'as':'Variable','attributes':['id','name']}]},{'model':_0xff5a('0x17'),'as':'Tags','attributes':['id',_0xff5a('0x4')]}]}]},'log':_0xff5a('0x3')});};};