Built motion from commit bab6f49e.|2.6.17
[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 _0x5af3=['getZendeskAccounts','Request','GetZendeskAccount','name','username','password','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','content','Variable','ZendeskField','key','keyType','keyContent','variableName','nameField','customField','../../client'];(function(_0xb21727,_0x471196){var _0x4de2bb=function(_0x7059e1){while(--_0x7059e1){_0xb21727['push'](_0xb21727['shift']());}};_0x4de2bb(++_0x471196);}(_0x5af3,0x158));var _0x35af=function(_0x3b0731,_0xcf9925){_0x3b0731=_0x3b0731-0x0;var _0x4204d7=_0x5af3[_0x3b0731];return _0x4204d7;};'use strict';var client=require(_0x35af('0x0'));exports[_0x35af('0x1')]=function(){return function(_0x83a169){return client[_0x35af('0x2')](_0x35af('0x3'),{'options':{'raw':![],'attributes':['id',_0x35af('0x4'),_0x35af('0x5'),_0x35af('0x6'),'token',_0x35af('0x7'),_0x35af('0x8'),_0x35af('0x9'),_0x35af('0xa')],'include':[{'model':_0x35af('0xb'),'as':_0x35af('0xc'),'attributes':['id',_0x35af('0x4')],'include':[{'model':_0x35af('0xd'),'attributes':['id',_0x35af('0x4')]},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0x35af('0xa'),_0x35af('0xe'),'variableName'],'include':[{'model':_0x35af('0xf'),'as':_0x35af('0xf'),'attributes':['id',_0x35af('0x4')]}]},{'model':_0x35af('0x10'),'as':'Descriptions','attributes':['id',_0x35af('0xa'),_0x35af('0xe'),_0x35af('0x11'),_0x35af('0x12'),_0x35af('0x13'),_0x35af('0x14')],'include':[{'model':_0x35af('0xf'),'as':_0x35af('0xf'),'attributes':['id',_0x35af('0x4')]}]},{'model':_0x35af('0x10'),'as':'Fields','attributes':['id','type','content','idField',_0x35af('0x15'),_0x35af('0x16'),_0x35af('0x14')],'include':[{'model':_0x35af('0xf'),'as':_0x35af('0xf'),'attributes':['id',_0x35af('0x4')]}]}]}]},'log':_0x35af('0x3')});};};