66e57d8683f44f151d85b187b77584476a1515d9
[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 _0x60ee=['remoteUri','authType','serverUrl','Configurations','Tag','ZendeskField','Subjects','type','content','Variable','Descriptions','keyContent','variableName','idField','nameField','getZendeskAccounts','Request','name','username','password'];(function(_0x166cbc,_0x1554f7){var _0x16ee4a=function(_0x5e3511){while(--_0x5e3511){_0x166cbc['push'](_0x166cbc['shift']());}};_0x16ee4a(++_0x1554f7);}(_0x60ee,0x1b3));var _0xe60e=function(_0x528575,_0x2e067d){_0x528575=_0x528575-0x0;var _0x3063b7=_0x60ee[_0x528575];return _0x3063b7;};'use strict';var client=require('../../client');exports[_0xe60e('0x0')]=function(){return function(_0x2e4905){return client[_0xe60e('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0xe60e('0x2'),_0xe60e('0x3'),_0xe60e('0x4'),'token',_0xe60e('0x5'),_0xe60e('0x6'),_0xe60e('0x7'),'type'],'include':[{'model':'ZendeskConfiguration','as':_0xe60e('0x8'),'attributes':['id','name'],'include':[{'model':_0xe60e('0x9'),'attributes':['id',_0xe60e('0x2')]},{'model':_0xe60e('0xa'),'as':_0xe60e('0xb'),'attributes':['id',_0xe60e('0xc'),_0xe60e('0xd'),'variableName'],'include':[{'model':'Variable','as':_0xe60e('0xe'),'attributes':['id',_0xe60e('0x2')]}]},{'model':'ZendeskField','as':_0xe60e('0xf'),'attributes':['id',_0xe60e('0xc'),_0xe60e('0xd'),'key','keyType',_0xe60e('0x10'),_0xe60e('0x11')],'include':[{'model':_0xe60e('0xe'),'as':_0xe60e('0xe'),'attributes':['id',_0xe60e('0x2')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0xe60e('0xc'),_0xe60e('0xd'),_0xe60e('0x12'),_0xe60e('0x13'),'customField','variableName'],'include':[{'model':_0xe60e('0xe'),'as':'Variable','attributes':['id',_0xe60e('0x2')]}]}]}]},'log':'GetZendeskAccount'});};};