a51f143fdc0366b52d0539e0f63daefb09479593
[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 _0xcf0a=['Configurations','Tag','ZendeskField','Subjects','Variable','content','key','keyType','keyContent','variableName','Fields','nameField','../../client','Request','GetZendeskAccount','name','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration'];(function(_0x413065,_0x40c46c){var _0x2cab7a=function(_0x40b632){while(--_0x40b632){_0x413065['push'](_0x413065['shift']());}};_0x2cab7a(++_0x40c46c);}(_0xcf0a,0x193));var _0xacf0=function(_0x4e9e5a,_0x2584cd){_0x4e9e5a=_0x4e9e5a-0x0;var _0xe37d8d=_0xcf0a[_0x4e9e5a];return _0xe37d8d;};'use strict';var client=require(_0xacf0('0x0'));exports['getZendeskAccounts']=function(){return function(_0xc9061f){return client[_0xacf0('0x1')](_0xacf0('0x2'),{'options':{'raw':![],'attributes':['id',_0xacf0('0x3'),'username',_0xacf0('0x4'),_0xacf0('0x5'),_0xacf0('0x6'),_0xacf0('0x7'),_0xacf0('0x8'),_0xacf0('0x9')],'include':[{'model':_0xacf0('0xa'),'as':_0xacf0('0xb'),'attributes':['id','name'],'include':[{'model':_0xacf0('0xc'),'attributes':['id',_0xacf0('0x3')]},{'model':_0xacf0('0xd'),'as':_0xacf0('0xe'),'attributes':['id','type','content','variableName'],'include':[{'model':_0xacf0('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0xacf0('0xd'),'as':'Descriptions','attributes':['id',_0xacf0('0x9'),_0xacf0('0x10'),_0xacf0('0x11'),_0xacf0('0x12'),_0xacf0('0x13'),_0xacf0('0x14')],'include':[{'model':_0xacf0('0xf'),'as':_0xacf0('0xf'),'attributes':['id',_0xacf0('0x3')]}]},{'model':_0xacf0('0xd'),'as':_0xacf0('0x15'),'attributes':['id',_0xacf0('0x9'),_0xacf0('0x10'),'idField',_0xacf0('0x16'),'customField',_0xacf0('0x14')],'include':[{'model':_0xacf0('0xf'),'as':'Variable','attributes':['id',_0xacf0('0x3')]}]}]}]},'log':_0xacf0('0x2')});};};