1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x176a=['define','ZohoField','int_zoho_fields','zoho_unique_index','idField','FieldId','lodash','moment','bluebird','./intZohoField.attributes','exports'];(function(_0x6fda4c,_0x10ab5f){var _0x284923=function(_0x178cdd){while(--_0x178cdd){_0x6fda4c['push'](_0x6fda4c['shift']());}};_0x284923(++_0x10ab5f);}(_0x176a,0x8a));var _0xa176=function(_0x5b864c,_0x14d9b0){_0x5b864c=_0x5b864c-0x0;var _0x4c97c2=_0x176a[_0x5b864c];return _0x4c97c2;};'use strict';var _=require(_0xa176('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xa176('0x1'));var BPromise=require(_0xa176('0x2'));var rp=require('request-promise');var attributes=require(_0xa176('0x3'));module[_0xa176('0x4')]=function(_0x8d094,_0x2654fd){return _0x8d094[_0xa176('0x5')](_0xa176('0x6'),attributes,{'tableName':_0xa176('0x7'),'paranoid':![],'indexes':[{'name':_0xa176('0x8'),'fields':[_0xa176('0x9'),_0xa176('0xa')],'unique':!![]}],'timestamps':!![]});};