b0bdbcb89d2fc41ad4ab7b9417e4318155e1f198
[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 _0x908f=['key','keyType','keyContent','variableName','nameField','customField','Tag','Tags','GetDeskAccount','../../client','getDeskAccounts','Request','name','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','Variable','Descriptions'];(function(_0x1fa06a,_0x1f601f){var _0x7d1705=function(_0x2646ab){while(--_0x2646ab){_0x1fa06a['push'](_0x1fa06a['shift']());}};_0x7d1705(++_0x1f601f);}(_0x908f,0x1b9));var _0xf908=function(_0x43fdc3,_0x28ae2a){_0x43fdc3=_0x43fdc3-0x0;var _0x3fb2e0=_0x908f[_0x43fdc3];return _0x3fb2e0;};'use strict';var client=require(_0xf908('0x0'));exports[_0xf908('0x1')]=function(){return function(_0x343002){return client[_0xf908('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xf908('0x3'),_0xf908('0x4'),_0xf908('0x5'),_0xf908('0x6'),_0xf908('0x7'),_0xf908('0x8'),_0xf908('0x9'),_0xf908('0xa')],'include':[{'model':_0xf908('0xb'),'as':_0xf908('0xc'),'attributes':['id','name'],'include':[{'model':_0xf908('0xd'),'as':_0xf908('0xe'),'attributes':['id',_0xf908('0x9'),_0xf908('0xf'),'variableName'],'include':[{'model':_0xf908('0x10'),'as':_0xf908('0x10'),'attributes':['id',_0xf908('0x3')]}]},{'model':_0xf908('0xd'),'as':_0xf908('0x11'),'attributes':['id',_0xf908('0x9'),_0xf908('0xf'),_0xf908('0x12'),_0xf908('0x13'),_0xf908('0x14'),_0xf908('0x15')],'include':[{'model':_0xf908('0x10'),'as':'Variable','attributes':['id',_0xf908('0x3')]}]},{'model':_0xf908('0xd'),'as':'Fields','attributes':['id',_0xf908('0x9'),_0xf908('0xf'),'idField',_0xf908('0x16'),_0xf908('0x17'),_0xf908('0x15')],'include':[{'model':_0xf908('0x10'),'as':'Variable','attributes':['id',_0xf908('0x3')]}]},{'model':_0xf908('0x18'),'as':_0xf908('0x19'),'attributes':['id',_0xf908('0x3')]}]}]},'log':_0xf908('0x1a')});};};