39209951af8b431bda22d7e1ef070b8f501ce470
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0xc1c6=['path','rimraf','exports','ZohoField','int_zoho_fields','zoho_unique_index','idField','lodash','util','../../config/logger','moment','request-promise'];(function(_0x123278,_0x3c4305){var _0x586de2=function(_0xf51db2){while(--_0xf51db2){_0x123278['push'](_0x123278['shift']());}};_0x586de2(++_0x3c4305);}(_0xc1c6,0xf7));var _0x6c1c=function(_0x27d9df,_0x4ce45c){_0x27d9df=_0x27d9df-0x0;var _0x1edb1a=_0xc1c6[_0x27d9df];return _0x1edb1a;};'use strict';var _=require(_0x6c1c('0x0'));var util=require(_0x6c1c('0x1'));var logger=require(_0x6c1c('0x2'))('api');var moment=require(_0x6c1c('0x3'));var BPromise=require('bluebird');var rp=require(_0x6c1c('0x4'));var fs=require('fs');var path=require(_0x6c1c('0x5'));var rimraf=require(_0x6c1c('0x6'));var config=require('../../config/environment');var attributes=require('./intZohoField.attributes');module[_0x6c1c('0x7')]=function(_0x524a6b,_0x50c1bb){return _0x524a6b['define'](_0x6c1c('0x8'),attributes,{'tableName':_0x6c1c('0x9'),'paranoid':![],'indexes':[{'name':_0x6c1c('0xa'),'fields':[_0x6c1c('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};