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