Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0xf4ce=['GetZohoAccount','name','description','host','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','keyType','Fields','idField','nameField','customField','../../client','Request'];(function(_0x35c554,_0x11a7e0){var _0x581e61=function(_0x7f225f){while(--_0x7f225f){_0x35c554['push'](_0x35c554['shift']());}};_0x581e61(++_0x11a7e0);}(_0xf4ce,0x111));var _0xef4c=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0xf4ce[_0x3bf83f];return _0x22c4a9;};'use strict';var client=require(_0xef4c('0x0'));exports['getZohoAccounts']=function(){return function(_0x13e832){return client[_0xef4c('0x1')](_0xef4c('0x2'),{'options':{'raw':![],'attributes':['id',_0xef4c('0x3'),_0xef4c('0x4'),_0xef4c('0x5'),'zone','clientId',_0xef4c('0x6'),_0xef4c('0x7'),_0xef4c('0x8'),_0xef4c('0x9')],'include':[{'model':_0xef4c('0xa'),'as':_0xef4c('0xb'),'attributes':['id',_0xef4c('0x3'),_0xef4c('0xc'),_0xef4c('0xd'),_0xef4c('0x4')],'include':[{'model':_0xef4c('0xe'),'as':_0xef4c('0xf'),'attributes':['id',_0xef4c('0x10'),_0xef4c('0x11'),_0xef4c('0x12')],'include':[{'model':_0xef4c('0x13'),'as':'Variable','attributes':['id',_0xef4c('0x3')]}]},{'model':_0xef4c('0xe'),'as':'Descriptions','attributes':['id',_0xef4c('0x10'),_0xef4c('0x11'),'key',_0xef4c('0x14'),'keyContent',_0xef4c('0x12')],'include':[{'model':_0xef4c('0x13'),'as':'Variable','attributes':['id',_0xef4c('0x3')]}]},{'model':_0xef4c('0xe'),'as':_0xef4c('0x15'),'attributes':['id','type',_0xef4c('0x11'),_0xef4c('0x16'),_0xef4c('0x17'),_0xef4c('0x18'),_0xef4c('0x12')],'include':[{'model':_0xef4c('0x13'),'as':_0xef4c('0x13'),'attributes':['id',_0xef4c('0x3')]}]}]}]},'log':'GetZohoAccount'});};};