c6e042bb7e3afea58d5fef4ec24e1076f7d72271
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x30c7=['int_freshsales_fields','freshsales_unique_index','FieldId','lodash','../../config/logger','api','moment','request-promise','path','FreshsalesField'];(function(_0x17df1b,_0x4cf1d7){var _0x297263=function(_0x46c3a5){while(--_0x46c3a5){_0x17df1b['push'](_0x17df1b['shift']());}};_0x297263(++_0x4cf1d7);}(_0x30c7,0x111));var _0x730c=function(_0x379985,_0x420d52){_0x379985=_0x379985-0x0;var _0x50b857=_0x30c7[_0x379985];return _0x50b857;};'use strict';var _=require(_0x730c('0x0'));var util=require('util');var logger=require(_0x730c('0x1'))(_0x730c('0x2'));var moment=require(_0x730c('0x3'));var BPromise=require('bluebird');var rp=require(_0x730c('0x4'));var fs=require('fs');var path=require(_0x730c('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intFreshsalesField.attributes');module['exports']=function(_0x3516be,_0x229682){return _0x3516be['define'](_0x730c('0x6'),attributes,{'tableName':_0x730c('0x7'),'paranoid':![],'indexes':[{'name':_0x730c('0x8'),'fields':['idField',_0x730c('0x9')],'unique':!![]}],'timestamps':!![]});};