17d86f0bca67aec2dc7274f1a585ad4fe0fb5465
[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 _0x509b=['customField','Tag','getDeskAccounts','Request','GetDeskAccount','description','username','remoteUri','authType','serverUrl','DeskConfiguration','Subjects','type','content','variableName','Variable','name','DeskField','Descriptions','key','keyType','keyContent','Fields','idField'];(function(_0x2242a1,_0x38f44d){var _0x2c298b=function(_0x4f4246){while(--_0x4f4246){_0x2242a1['push'](_0x2242a1['shift']());}};_0x2c298b(++_0x38f44d);}(_0x509b,0xda));var _0xb509=function(_0x44d05b,_0x12be0d){_0x44d05b=_0x44d05b-0x0;var _0x220e2b=_0x509b[_0x44d05b];return _0x220e2b;};'use strict';var client=require('../../client');exports[_0xb509('0x0')]=function(){return function(_0x2bb704){return client[_0xb509('0x1')](_0xb509('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xb509('0x3'),_0xb509('0x4'),'password',_0xb509('0x5'),_0xb509('0x6'),'type',_0xb509('0x7')],'include':[{'model':_0xb509('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'DeskField','as':_0xb509('0x9'),'attributes':['id',_0xb509('0xa'),_0xb509('0xb'),_0xb509('0xc')],'include':[{'model':_0xb509('0xd'),'as':'Variable','attributes':['id',_0xb509('0xe')]}]},{'model':_0xb509('0xf'),'as':_0xb509('0x10'),'attributes':['id',_0xb509('0xa'),_0xb509('0xb'),_0xb509('0x11'),_0xb509('0x12'),_0xb509('0x13'),_0xb509('0xc')],'include':[{'model':_0xb509('0xd'),'as':_0xb509('0xd'),'attributes':['id',_0xb509('0xe')]}]},{'model':'DeskField','as':_0xb509('0x14'),'attributes':['id',_0xb509('0xa'),_0xb509('0xb'),_0xb509('0x15'),'nameField',_0xb509('0x16'),'variableName'],'include':[{'model':'Variable','as':_0xb509('0xd'),'attributes':['id',_0xb509('0xe')]}]},{'model':_0xb509('0x17'),'as':'Tags','attributes':['id',_0xb509('0xe')]}]}]},'log':_0xb509('0x2')});};};