7f2515570f4a51443ecb29cea550b1fc3029c4ee
[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 _0x633c=['moment','request-promise','rimraf','../../config/environment','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','lodash','api'];(function(_0x3e10d1,_0x186a52){var _0x5e3b74=function(_0x93e919){while(--_0x93e919){_0x3e10d1['push'](_0x3e10d1['shift']());}};_0x5e3b74(++_0x186a52);}(_0x633c,0x1c5));var _0xc633=function(_0x2eeb90,_0xd84a19){_0x2eeb90=_0x2eeb90-0x0;var _0x274e4f=_0x633c[_0x2eeb90];return _0x274e4f;};'use strict';var _=require(_0xc633('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xc633('0x1'));var moment=require(_0xc633('0x2'));var BPromise=require('bluebird');var rp=require(_0xc633('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc633('0x4'));var config=require(_0xc633('0x5'));var attributes=require(_0xc633('0x6'));module[_0xc633('0x7')]=function(_0x22fc71,_0x230aea){return _0x22fc71[_0xc633('0x8')](_0xc633('0x9'),attributes,{'tableName':_0xc633('0xa'),'paranoid':![],'indexes':[{'name':_0xc633('0xb'),'fields':[_0xc633('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};