961c44a1efd08143f1a30f0f1054f702f814c8b4
[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 _0xf81b=['Tag','Tags','GetDeskAccount','../../client','Request','name','description','username','remoteUri','authType','serverUrl','DeskConfiguration','DeskField','type','content','Variable','Descriptions','key','keyType','variableName','Fields','idField','nameField','customField'];(function(_0x4b2863,_0x494899){var _0x567d67=function(_0x751f03){while(--_0x751f03){_0x4b2863['push'](_0x4b2863['shift']());}};_0x567d67(++_0x494899);}(_0xf81b,0xab));var _0xbf81=function(_0x5141fa,_0x103192){_0x5141fa=_0x5141fa-0x0;var _0x45be5c=_0xf81b[_0x5141fa];return _0x45be5c;};'use strict';var client=require(_0xbf81('0x0'));exports['getDeskAccounts']=function(){return function(_0x48f301){return client[_0xbf81('0x1')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xbf81('0x2'),_0xbf81('0x3'),_0xbf81('0x4'),'password',_0xbf81('0x5'),_0xbf81('0x6'),'type',_0xbf81('0x7')],'include':[{'model':_0xbf81('0x8'),'as':'Configurations','attributes':['id',_0xbf81('0x2')],'include':[{'model':_0xbf81('0x9'),'as':'Subjects','attributes':['id',_0xbf81('0xa'),_0xbf81('0xb'),'variableName'],'include':[{'model':_0xbf81('0xc'),'as':_0xbf81('0xc'),'attributes':['id',_0xbf81('0x2')]}]},{'model':_0xbf81('0x9'),'as':_0xbf81('0xd'),'attributes':['id','type',_0xbf81('0xb'),_0xbf81('0xe'),_0xbf81('0xf'),'keyContent',_0xbf81('0x10')],'include':[{'model':_0xbf81('0xc'),'as':_0xbf81('0xc'),'attributes':['id',_0xbf81('0x2')]}]},{'model':_0xbf81('0x9'),'as':_0xbf81('0x11'),'attributes':['id',_0xbf81('0xa'),'content',_0xbf81('0x12'),_0xbf81('0x13'),_0xbf81('0x14'),_0xbf81('0x10')],'include':[{'model':_0xbf81('0xc'),'as':'Variable','attributes':['id',_0xbf81('0x2')]}]},{'model':_0xbf81('0x15'),'as':_0xbf81('0x16'),'attributes':['id',_0xbf81('0x2')]}]}]},'log':_0xbf81('0x17')});};};