Built motion from commit e0fa946e.|2.6.5
[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 _0x15cd=['password','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Tag','Subjects','content','variableName','Variable','ZendeskField','Descriptions','type','key','keyType','Fields','idField','nameField','customField','name','../../client','getZendeskAccounts','GetZendeskAccount','username'];(function(_0x5c046a,_0x51f24f){var _0x3a0fe0=function(_0x203a32){while(--_0x203a32){_0x5c046a['push'](_0x5c046a['shift']());}};_0x3a0fe0(++_0x51f24f);}(_0x15cd,0xc4));var _0xd15c=function(_0x434f2e,_0x68493e){_0x434f2e=_0x434f2e-0x0;var _0x76c0b9=_0x15cd[_0x434f2e];return _0x76c0b9;};'use strict';var client=require(_0xd15c('0x0'));exports[_0xd15c('0x1')]=function(){return function(_0x2691b5){return client['Request'](_0xd15c('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xd15c('0x3'),_0xd15c('0x4'),_0xd15c('0x5'),_0xd15c('0x6'),_0xd15c('0x7'),_0xd15c('0x8'),'type'],'include':[{'model':_0xd15c('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xd15c('0xa'),'attributes':['id','name']},{'model':'ZendeskField','as':_0xd15c('0xb'),'attributes':['id','type',_0xd15c('0xc'),_0xd15c('0xd')],'include':[{'model':_0xd15c('0xe'),'as':_0xd15c('0xe'),'attributes':['id','name']}]},{'model':_0xd15c('0xf'),'as':_0xd15c('0x10'),'attributes':['id',_0xd15c('0x11'),_0xd15c('0xc'),_0xd15c('0x12'),_0xd15c('0x13'),'keyContent',_0xd15c('0xd')],'include':[{'model':_0xd15c('0xe'),'as':_0xd15c('0xe'),'attributes':['id','name']}]},{'model':_0xd15c('0xf'),'as':_0xd15c('0x14'),'attributes':['id',_0xd15c('0x11'),_0xd15c('0xc'),_0xd15c('0x15'),_0xd15c('0x16'),_0xd15c('0x17'),_0xd15c('0xd')],'include':[{'model':_0xd15c('0xe'),'as':_0xd15c('0xe'),'attributes':['id',_0xd15c('0x18')]}]}]}]},'log':_0xd15c('0x2')});};};