Built motion from commit 20b39a97.|2.6.29
[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 _0xde1e=['ZendeskField','Subjects','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','password','token','remoteUri','authType','serverUrl','type','Configurations','name','Tag'];(function(_0x3831be,_0x62691f){var _0x515005=function(_0x58b060){while(--_0x58b060){_0x3831be['push'](_0x3831be['shift']());}};_0x515005(++_0x62691f);}(_0xde1e,0x1d4));var _0xede1=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xde1e[_0x321bb2];return _0x9c12ed;};'use strict';var client=require(_0xede1('0x0'));exports[_0xede1('0x1')]=function(){return function(_0x53eee1){return client[_0xede1('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id','name','username',_0xede1('0x3'),_0xede1('0x4'),_0xede1('0x5'),_0xede1('0x6'),_0xede1('0x7'),_0xede1('0x8')],'include':[{'model':'ZendeskConfiguration','as':_0xede1('0x9'),'attributes':['id',_0xede1('0xa')],'include':[{'model':_0xede1('0xb'),'attributes':['id','name']},{'model':_0xede1('0xc'),'as':_0xede1('0xd'),'attributes':['id','type',_0xede1('0xe'),_0xede1('0xf')],'include':[{'model':'Variable','as':_0xede1('0x10'),'attributes':['id',_0xede1('0xa')]}]},{'model':'ZendeskField','as':_0xede1('0x11'),'attributes':['id',_0xede1('0x8'),'content','key',_0xede1('0x12'),_0xede1('0x13'),_0xede1('0xf')],'include':[{'model':_0xede1('0x10'),'as':_0xede1('0x10'),'attributes':['id','name']}]},{'model':_0xede1('0xc'),'as':_0xede1('0x14'),'attributes':['id',_0xede1('0x8'),'content',_0xede1('0x15'),'nameField',_0xede1('0x16'),_0xede1('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xede1('0xa')]}]}]}]},'log':_0xede1('0x17')});};};