0940aca8ab0e1cb7ef00d1dc7bca38d7b81adfc8
[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 _0x65e8=['FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./intFreshsalesField.attributes','exports','define','FreshsalesField','freshsales_unique_index','idField'];(function(_0x29addc,_0x51295d){var _0x2a8566=function(_0x5897d9){while(--_0x5897d9){_0x29addc['push'](_0x29addc['shift']());}};_0x2a8566(++_0x51295d);}(_0x65e8,0x1f0));var _0x865e=function(_0xf9e246,_0x35f770){_0xf9e246=_0xf9e246-0x0;var _0x63570b=_0x65e8[_0xf9e246];return _0x63570b;};'use strict';var _=require(_0x865e('0x0'));var util=require(_0x865e('0x1'));var logger=require(_0x865e('0x2'))('api');var moment=require(_0x865e('0x3'));var BPromise=require(_0x865e('0x4'));var rp=require(_0x865e('0x5'));var fs=require('fs');var path=require(_0x865e('0x6'));var rimraf=require('rimraf');var config=require(_0x865e('0x7'));var attributes=require(_0x865e('0x8'));module[_0x865e('0x9')]=function(_0x33c70d,_0x26b665){return _0x33c70d[_0x865e('0xa')](_0x865e('0xb'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x865e('0xc'),'fields':[_0x865e('0xd'),_0x865e('0xe')],'unique':!![]}],'timestamps':!![]});};