abc2c409d61fe08d40002881477a6c634b376cf0
[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 _0x9de6=['variableName','keyType','keyContent','Variable','Fields','idField','nameField','customField','Tag','Tags','../../client','GetDeskAccount','name','description','username','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content'];(function(_0x1d1114,_0x2c8549){var _0x5f06f1=function(_0x34b1f7){while(--_0x34b1f7){_0x1d1114['push'](_0x1d1114['shift']());}};_0x5f06f1(++_0x2c8549);}(_0x9de6,0x1a8));var _0x69de=function(_0x31a40c,_0x2322f9){_0x31a40c=_0x31a40c-0x0;var _0xae8f94=_0x9de6[_0x31a40c];return _0xae8f94;};'use strict';var client=require(_0x69de('0x0'));exports['getDeskAccounts']=function(){return function(_0x4ef9be){return client['Request'](_0x69de('0x1'),{'options':{'raw':![],'attributes':['id',_0x69de('0x2'),_0x69de('0x3'),_0x69de('0x4'),'password','remoteUri',_0x69de('0x5'),_0x69de('0x6'),_0x69de('0x7')],'include':[{'model':_0x69de('0x8'),'as':_0x69de('0x9'),'attributes':['id',_0x69de('0x2')],'include':[{'model':_0x69de('0xa'),'as':_0x69de('0xb'),'attributes':['id',_0x69de('0x6'),_0x69de('0xc'),_0x69de('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x69de('0x2')]}]},{'model':'DeskField','as':'Descriptions','attributes':['id',_0x69de('0x6'),_0x69de('0xc'),'key',_0x69de('0xe'),_0x69de('0xf'),_0x69de('0xd')],'include':[{'model':_0x69de('0x10'),'as':'Variable','attributes':['id',_0x69de('0x2')]}]},{'model':_0x69de('0xa'),'as':_0x69de('0x11'),'attributes':['id',_0x69de('0x6'),_0x69de('0xc'),_0x69de('0x12'),_0x69de('0x13'),_0x69de('0x14'),_0x69de('0xd')],'include':[{'model':'Variable','as':_0x69de('0x10'),'attributes':['id',_0x69de('0x2')]}]},{'model':_0x69de('0x15'),'as':_0x69de('0x16'),'attributes':['id',_0x69de('0x2')]}]}]},'log':_0x69de('0x1')});};};