acdf54eab4b2b71db1c1001ab3f8891bc39616ae
[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 _0x457b=['path','../../config/environment','./intFreshsalesField.attributes','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','lodash','util','api','moment','bluebird','request-promise'];(function(_0xe64e92,_0x2e83c7){var _0x4f0e95=function(_0x291432){while(--_0x291432){_0xe64e92['push'](_0xe64e92['shift']());}};_0x4f0e95(++_0x2e83c7);}(_0x457b,0xca));var _0xb457=function(_0x36fe2a,_0x40f21a){_0x36fe2a=_0x36fe2a-0x0;var _0x54566f=_0x457b[_0x36fe2a];return _0x54566f;};'use strict';var _=require(_0xb457('0x0'));var util=require(_0xb457('0x1'));var logger=require('../../config/logger')(_0xb457('0x2'));var moment=require(_0xb457('0x3'));var BPromise=require(_0xb457('0x4'));var rp=require(_0xb457('0x5'));var fs=require('fs');var path=require(_0xb457('0x6'));var rimraf=require('rimraf');var config=require(_0xb457('0x7'));var attributes=require(_0xb457('0x8'));module[_0xb457('0x9')]=function(_0x3823c7,_0x3cefc3){return _0x3823c7['define'](_0xb457('0xa'),attributes,{'tableName':_0xb457('0xb'),'paranoid':![],'indexes':[{'name':_0xb457('0xc'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};