8c52c90407c66c8b9a3d07a16301effbfa3ab811
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0xe42c=['define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./intFreshdeskField.attributes','exports'];(function(_0x5636b4,_0x5caf31){var _0x3170c1=function(_0x5f323e){while(--_0x5f323e){_0x5636b4['push'](_0x5636b4['shift']());}};_0x3170c1(++_0x5caf31);}(_0xe42c,0x149));var _0xce42=function(_0x3f196c,_0x1361a1){_0x3f196c=_0x3f196c-0x0;var _0x2fd114=_0xe42c[_0x3f196c];return _0x2fd114;};'use strict';var _=require(_0xce42('0x0'));var util=require(_0xce42('0x1'));var logger=require(_0xce42('0x2'))(_0xce42('0x3'));var moment=require(_0xce42('0x4'));var BPromise=require(_0xce42('0x5'));var rp=require(_0xce42('0x6'));var fs=require('fs');var path=require(_0xce42('0x7'));var rimraf=require(_0xce42('0x8'));var config=require('../../config/environment');var attributes=require(_0xce42('0x9'));module[_0xce42('0xa')]=function(_0x1c727a,_0x2b25bf){return _0x1c727a[_0xce42('0xb')](_0xce42('0xc'),attributes,{'tableName':_0xce42('0xd'),'paranoid':![],'indexes':[{'name':_0xce42('0xe'),'fields':[_0xce42('0xf'),_0xce42('0x10')],'unique':!![]}],'timestamps':!![]});};