1601ac41a4b024a4653917b54dfc61bdd0f0db63
[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 _0xb5ea=['lodash','util','../../config/logger','api','moment','path','rimraf','../../config/environment','./intFreshsalesField.attributes','exports','define','int_freshsales_fields','freshsales_unique_index','idField','FieldId'];(function(_0x560924,_0x258a47){var _0x5c694d=function(_0x599a81){while(--_0x599a81){_0x560924['push'](_0x560924['shift']());}};_0x5c694d(++_0x258a47);}(_0xb5ea,0x168));var _0xab5e=function(_0x402e54,_0x54647e){_0x402e54=_0x402e54-0x0;var _0x543a2a=_0xb5ea[_0x402e54];return _0x543a2a;};'use strict';var _=require(_0xab5e('0x0'));var util=require(_0xab5e('0x1'));var logger=require(_0xab5e('0x2'))(_0xab5e('0x3'));var moment=require(_0xab5e('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xab5e('0x5'));var rimraf=require(_0xab5e('0x6'));var config=require(_0xab5e('0x7'));var attributes=require(_0xab5e('0x8'));module[_0xab5e('0x9')]=function(_0x5d53d3,_0xa9fb7f){return _0x5d53d3[_0xab5e('0xa')]('FreshsalesField',attributes,{'tableName':_0xab5e('0xb'),'paranoid':![],'indexes':[{'name':_0xab5e('0xc'),'fields':[_0xab5e('0xd'),_0xab5e('0xe')],'unique':!![]}],'timestamps':!![]});};