34ffce03df264d9903f413cbcf8d1d18b79b7396
[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 _0x1f12=['../../client','getDeskAccounts','GetDeskAccount','name','password','remoteUri','authType','type','serverUrl','DeskField','variableName','Variable','Descriptions','content','key','keyType','keyContent','idField','nameField','customField','Tag','Tags'];(function(_0x346737,_0x3e6081){var _0x1ade2e=function(_0x15e50e){while(--_0x15e50e){_0x346737['push'](_0x346737['shift']());}};_0x1ade2e(++_0x3e6081);}(_0x1f12,0x6e));var _0x21f1=function(_0x54bf6d,_0xe1c97){_0x54bf6d=_0x54bf6d-0x0;var _0x21961a=_0x1f12[_0x54bf6d];return _0x21961a;};'use strict';var client=require(_0x21f1('0x0'));exports[_0x21f1('0x1')]=function(){return function(_0x452c1b){return client['Request'](_0x21f1('0x2'),{'options':{'raw':![],'attributes':['id',_0x21f1('0x3'),'description','username',_0x21f1('0x4'),_0x21f1('0x5'),_0x21f1('0x6'),_0x21f1('0x7'),_0x21f1('0x8')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id',_0x21f1('0x3')],'include':[{'model':_0x21f1('0x9'),'as':'Subjects','attributes':['id',_0x21f1('0x7'),'content',_0x21f1('0xa')],'include':[{'model':_0x21f1('0xb'),'as':_0x21f1('0xb'),'attributes':['id','name']}]},{'model':_0x21f1('0x9'),'as':_0x21f1('0xc'),'attributes':['id',_0x21f1('0x7'),_0x21f1('0xd'),_0x21f1('0xe'),_0x21f1('0xf'),_0x21f1('0x10'),'variableName'],'include':[{'model':_0x21f1('0xb'),'as':_0x21f1('0xb'),'attributes':['id',_0x21f1('0x3')]}]},{'model':_0x21f1('0x9'),'as':'Fields','attributes':['id',_0x21f1('0x7'),'content',_0x21f1('0x11'),_0x21f1('0x12'),_0x21f1('0x13'),_0x21f1('0xa')],'include':[{'model':_0x21f1('0xb'),'as':_0x21f1('0xb'),'attributes':['id',_0x21f1('0x3')]}]},{'model':_0x21f1('0x14'),'as':_0x21f1('0x15'),'attributes':['id',_0x21f1('0x3')]}]}]},'log':_0x21f1('0x2')});};};