Built motion from commit (unavailable).|2.5.1
[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 _0xdf06=['path','../../config/environment','./intZohoField.attributes','exports','ZohoField','zoho_unique_index','idField','FieldId','lodash','util','api','bluebird'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0xdf06,0xa4));var _0x6df0=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xdf06[_0x17d9e3];return _0x14192d;};'use strict';var _=require(_0x6df0('0x0'));var util=require(_0x6df0('0x1'));var logger=require('../../config/logger')(_0x6df0('0x2'));var moment=require('moment');var BPromise=require(_0x6df0('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6df0('0x4'));var rimraf=require('rimraf');var config=require(_0x6df0('0x5'));var attributes=require(_0x6df0('0x6'));module[_0x6df0('0x7')]=function(_0x277d0a,_0x8353cc){return _0x277d0a['define'](_0x6df0('0x8'),attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':_0x6df0('0x9'),'fields':[_0x6df0('0xa'),_0x6df0('0xb')],'unique':!![]}],'timestamps':!![]});};