0d4bbf72365201f688b3efc63a1e627665d759e4
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x8f2b=['key','keyType','keyContent','Fields','idField','nameField','customField','../../client','Request','name','token','remoteUri','authType','ZendeskConfiguration','Tag','ZendeskField','Subjects','type','content','variableName','Variable','Descriptions'];(function(_0x4bfcbe,_0x4630f5){var _0x5b65e6=function(_0x5dcfc8){while(--_0x5dcfc8){_0x4bfcbe['push'](_0x4bfcbe['shift']());}};_0x5b65e6(++_0x4630f5);}(_0x8f2b,0xcd));var _0xb8f2=function(_0x33f318,_0x15c85e){_0x33f318=_0x33f318-0x0;var _0x27d6a2=_0x8f2b[_0x33f318];return _0x27d6a2;};'use strict';var client=require(_0xb8f2('0x0'));exports['getZendeskAccounts']=function(){return function(_0x34c12a){return client[_0xb8f2('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0xb8f2('0x2'),'username','password',_0xb8f2('0x3'),_0xb8f2('0x4'),_0xb8f2('0x5'),'serverUrl','type'],'include':[{'model':_0xb8f2('0x6'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xb8f2('0x7'),'attributes':['id',_0xb8f2('0x2')]},{'model':_0xb8f2('0x8'),'as':_0xb8f2('0x9'),'attributes':['id',_0xb8f2('0xa'),_0xb8f2('0xb'),_0xb8f2('0xc')],'include':[{'model':_0xb8f2('0xd'),'as':_0xb8f2('0xd'),'attributes':['id',_0xb8f2('0x2')]}]},{'model':_0xb8f2('0x8'),'as':_0xb8f2('0xe'),'attributes':['id',_0xb8f2('0xa'),'content',_0xb8f2('0xf'),_0xb8f2('0x10'),_0xb8f2('0x11'),_0xb8f2('0xc')],'include':[{'model':_0xb8f2('0xd'),'as':_0xb8f2('0xd'),'attributes':['id',_0xb8f2('0x2')]}]},{'model':_0xb8f2('0x8'),'as':_0xb8f2('0x12'),'attributes':['id',_0xb8f2('0xa'),_0xb8f2('0xb'),_0xb8f2('0x13'),_0xb8f2('0x14'),_0xb8f2('0x15'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xb8f2('0x2')]}]}]}]},'log':'GetZendeskAccount'});};};