6cb3859665232fb7e5481c28ff2d75f1d0b0ee4e
[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 _0xeb09=['idField','nameField','customField','GetZendeskAccount','getZendeskAccounts','Request','name','username','token','authType','serverUrl','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','type','content','variableName','Variable','key','keyContent','Fields'];(function(_0x549192,_0x119609){var _0x28d367=function(_0x57a787){while(--_0x57a787){_0x549192['push'](_0x549192['shift']());}};_0x28d367(++_0x119609);}(_0xeb09,0x1a2));var _0x9eb0=function(_0x37d1fc,_0x485479){_0x37d1fc=_0x37d1fc-0x0;var _0xe133a9=_0xeb09[_0x37d1fc];return _0xe133a9;};'use strict';var client=require('../../client');exports[_0x9eb0('0x0')]=function(){return function(_0x1b67f9){return client[_0x9eb0('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x9eb0('0x2'),_0x9eb0('0x3'),'password',_0x9eb0('0x4'),'remoteUri',_0x9eb0('0x5'),_0x9eb0('0x6'),'type'],'include':[{'model':_0x9eb0('0x7'),'as':_0x9eb0('0x8'),'attributes':['id','name'],'include':[{'model':_0x9eb0('0x9'),'attributes':['id',_0x9eb0('0x2')]},{'model':_0x9eb0('0xa'),'as':_0x9eb0('0xb'),'attributes':['id',_0x9eb0('0xc'),_0x9eb0('0xd'),_0x9eb0('0xe')],'include':[{'model':_0x9eb0('0xf'),'as':_0x9eb0('0xf'),'attributes':['id',_0x9eb0('0x2')]}]},{'model':_0x9eb0('0xa'),'as':'Descriptions','attributes':['id',_0x9eb0('0xc'),_0x9eb0('0xd'),_0x9eb0('0x10'),'keyType',_0x9eb0('0x11'),_0x9eb0('0xe')],'include':[{'model':_0x9eb0('0xf'),'as':_0x9eb0('0xf'),'attributes':['id',_0x9eb0('0x2')]}]},{'model':_0x9eb0('0xa'),'as':_0x9eb0('0x12'),'attributes':['id',_0x9eb0('0xc'),_0x9eb0('0xd'),_0x9eb0('0x13'),_0x9eb0('0x14'),_0x9eb0('0x15'),'variableName'],'include':[{'model':_0x9eb0('0xf'),'as':_0x9eb0('0xf'),'attributes':['id',_0x9eb0('0x2')]}]}]}]},'log':_0x9eb0('0x16')});};};