9e9fecf39e55a3d7a3a54c28f2481c1f4f5ef991
[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 _0x7793=['serverUrl','type','Configurations','ZendeskField','Subjects','variableName','Variable','content','key','keyType','nameField','customField','getZendeskAccounts','Request','name','username','password','token','remoteUri','authType'];(function(_0x1d7613,_0x2ba19b){var _0x5ec5bf=function(_0x104226){while(--_0x104226){_0x1d7613['push'](_0x1d7613['shift']());}};_0x5ec5bf(++_0x2ba19b);}(_0x7793,0x19c));var _0x3779=function(_0xee1aea,_0x35f0d8){_0xee1aea=_0xee1aea-0x0;var _0x4686de=_0x7793[_0xee1aea];return _0x4686de;};'use strict';var client=require('../../client');exports[_0x3779('0x0')]=function(){return function(_0x419ebf){return client[_0x3779('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x3779('0x2'),_0x3779('0x3'),_0x3779('0x4'),_0x3779('0x5'),_0x3779('0x6'),_0x3779('0x7'),_0x3779('0x8'),_0x3779('0x9')],'include':[{'model':'ZendeskConfiguration','as':_0x3779('0xa'),'attributes':['id',_0x3779('0x2')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x3779('0xb'),'as':_0x3779('0xc'),'attributes':['id',_0x3779('0x9'),'content',_0x3779('0xd')],'include':[{'model':'Variable','as':_0x3779('0xe'),'attributes':['id',_0x3779('0x2')]}]},{'model':_0x3779('0xb'),'as':'Descriptions','attributes':['id',_0x3779('0x9'),_0x3779('0xf'),_0x3779('0x10'),_0x3779('0x11'),'keyContent',_0x3779('0xd')],'include':[{'model':'Variable','as':_0x3779('0xe'),'attributes':['id',_0x3779('0x2')]}]},{'model':_0x3779('0xb'),'as':'Fields','attributes':['id',_0x3779('0x9'),_0x3779('0xf'),'idField',_0x3779('0x12'),_0x3779('0x13'),'variableName'],'include':[{'model':_0x3779('0xe'),'as':'Variable','attributes':['id',_0x3779('0x2')]}]}]}]},'log':'GetZendeskAccount'});};};