Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x83b1=['Configurations','VtigerField','Subjects','type','variableName','Variable','Descriptions','content','key','keyContent','nameField','customField','../../client','Request','GetVtigerAccount','name','description','username','remoteUri','serverUrl'];(function(_0x3cdfa2,_0x599624){var _0x1f727e=function(_0x85b363){while(--_0x85b363){_0x3cdfa2['push'](_0x3cdfa2['shift']());}};_0x1f727e(++_0x599624);}(_0x83b1,0x98));var _0x183b=function(_0x21aec3,_0x5c97e9){_0x21aec3=_0x21aec3-0x0;var _0x288bbc=_0x83b1[_0x21aec3];return _0x288bbc;};'use strict';var client=require(_0x183b('0x0'));exports['getVtigerAccounts']=function(){return function(_0x40b17a){return client[_0x183b('0x1')](_0x183b('0x2'),{'options':{'raw':![],'attributes':['id',_0x183b('0x3'),_0x183b('0x4'),_0x183b('0x5'),'accessKey',_0x183b('0x6'),_0x183b('0x7')],'include':[{'model':'VtigerConfiguration','as':_0x183b('0x8'),'attributes':['id',_0x183b('0x3')],'include':[{'model':_0x183b('0x9'),'as':_0x183b('0xa'),'attributes':['id',_0x183b('0xb'),'content',_0x183b('0xc')],'include':[{'model':_0x183b('0xd'),'as':_0x183b('0xd'),'attributes':['id',_0x183b('0x3')]}]},{'model':'VtigerField','as':_0x183b('0xe'),'attributes':['id',_0x183b('0xb'),_0x183b('0xf'),_0x183b('0x10'),'keyType',_0x183b('0x11'),_0x183b('0xc')],'include':[{'model':_0x183b('0xd'),'as':'Variable','attributes':['id',_0x183b('0x3')]}]},{'model':_0x183b('0x9'),'as':'Fields','attributes':['id',_0x183b('0xb'),'content','idField',_0x183b('0x12'),_0x183b('0x13'),'variableName'],'include':[{'model':_0x183b('0xd'),'as':_0x183b('0xd'),'attributes':['id','name']}]}]}]},'log':'GetVtigerAccount'});};};