ffe5c97dcf7abcb80d55779266cabb1afbad548e
[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 _0x5bab=['keyType','keyContent','Fields','idField','nameField','customField','Tags','../../client','getDeskAccounts','name','description','remoteUri','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','variableName','Variable','Descriptions','content','key'];(function(_0x4c7145,_0x42f7e2){var _0x17403d=function(_0x117fd8){while(--_0x117fd8){_0x4c7145['push'](_0x4c7145['shift']());}};_0x17403d(++_0x42f7e2);}(_0x5bab,0xd6));var _0xb5ba=function(_0x1b811b,_0x372fa8){_0x1b811b=_0x1b811b-0x0;var _0x27b0af=_0x5bab[_0x1b811b];return _0x27b0af;};'use strict';var client=require(_0xb5ba('0x0'));exports[_0xb5ba('0x1')]=function(){return function(_0x133721){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xb5ba('0x2'),_0xb5ba('0x3'),'username','password',_0xb5ba('0x4'),'authType',_0xb5ba('0x5'),_0xb5ba('0x6')],'include':[{'model':_0xb5ba('0x7'),'as':_0xb5ba('0x8'),'attributes':['id',_0xb5ba('0x2')],'include':[{'model':_0xb5ba('0x9'),'as':_0xb5ba('0xa'),'attributes':['id',_0xb5ba('0x5'),'content',_0xb5ba('0xb')],'include':[{'model':_0xb5ba('0xc'),'as':_0xb5ba('0xc'),'attributes':['id',_0xb5ba('0x2')]}]},{'model':'DeskField','as':_0xb5ba('0xd'),'attributes':['id',_0xb5ba('0x5'),_0xb5ba('0xe'),_0xb5ba('0xf'),_0xb5ba('0x10'),_0xb5ba('0x11'),_0xb5ba('0xb')],'include':[{'model':_0xb5ba('0xc'),'as':_0xb5ba('0xc'),'attributes':['id',_0xb5ba('0x2')]}]},{'model':_0xb5ba('0x9'),'as':_0xb5ba('0x12'),'attributes':['id',_0xb5ba('0x5'),_0xb5ba('0xe'),_0xb5ba('0x13'),_0xb5ba('0x14'),_0xb5ba('0x15'),'variableName'],'include':[{'model':'Variable','as':_0xb5ba('0xc'),'attributes':['id','name']}]},{'model':'Tag','as':_0xb5ba('0x16'),'attributes':['id',_0xb5ba('0x2')]}]}]},'log':'GetDeskAccount'});};};