Built motion from commit da24aabd.|2.6.20
[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 _0x7b5e=['Variable','key','keyType','keyContent','Fields','idField','nameField','Tag','GetDeskAccount','../../client','getDeskAccounts','Request','name','username','password','remoteUri','authType','serverUrl','DeskConfiguration','DeskField','Subjects','type','content','variableName'];(function(_0x2aec52,_0x59d962){var _0x3b8835=function(_0x3e2604){while(--_0x3e2604){_0x2aec52['push'](_0x2aec52['shift']());}};_0x3b8835(++_0x59d962);}(_0x7b5e,0x171));var _0xe7b5=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0x7b5e[_0x3d42d8];return _0x27fc41;};'use strict';var client=require(_0xe7b5('0x0'));exports[_0xe7b5('0x1')]=function(){return function(_0x437223){return client[_0xe7b5('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xe7b5('0x3'),'description',_0xe7b5('0x4'),_0xe7b5('0x5'),_0xe7b5('0x6'),_0xe7b5('0x7'),'type',_0xe7b5('0x8')],'include':[{'model':_0xe7b5('0x9'),'as':'Configurations','attributes':['id',_0xe7b5('0x3')],'include':[{'model':_0xe7b5('0xa'),'as':_0xe7b5('0xb'),'attributes':['id',_0xe7b5('0xc'),_0xe7b5('0xd'),_0xe7b5('0xe')],'include':[{'model':_0xe7b5('0xf'),'as':'Variable','attributes':['id',_0xe7b5('0x3')]}]},{'model':_0xe7b5('0xa'),'as':'Descriptions','attributes':['id',_0xe7b5('0xc'),'content',_0xe7b5('0x10'),_0xe7b5('0x11'),_0xe7b5('0x12'),_0xe7b5('0xe')],'include':[{'model':_0xe7b5('0xf'),'as':_0xe7b5('0xf'),'attributes':['id','name']}]},{'model':_0xe7b5('0xa'),'as':_0xe7b5('0x13'),'attributes':['id','type',_0xe7b5('0xd'),_0xe7b5('0x14'),_0xe7b5('0x15'),'customField',_0xe7b5('0xe')],'include':[{'model':_0xe7b5('0xf'),'as':'Variable','attributes':['id',_0xe7b5('0x3')]}]},{'model':_0xe7b5('0x16'),'as':'Tags','attributes':['id',_0xe7b5('0x3')]}]}]},'log':_0xe7b5('0x17')});};};