ca345625591ef303a6b50274333fd1d8c3c551aa
[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 _0xee04=['rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','bluebird','request-promise','path'];(function(_0x3b0dfe,_0x17e497){var _0x39b508=function(_0x475b0a){while(--_0x475b0a){_0x3b0dfe['push'](_0x3b0dfe['shift']());}};_0x39b508(++_0x17e497);}(_0xee04,0x1cb));var _0x4ee0=function(_0x1cc066,_0x23411e){_0x1cc066=_0x1cc066-0x0;var _0x2b058b=_0xee04[_0x1cc066];return _0x2b058b;};'use strict';var _=require(_0x4ee0('0x0'));var util=require(_0x4ee0('0x1'));var logger=require(_0x4ee0('0x2'))('api');var moment=require('moment');var BPromise=require(_0x4ee0('0x3'));var rp=require(_0x4ee0('0x4'));var fs=require('fs');var path=require(_0x4ee0('0x5'));var rimraf=require(_0x4ee0('0x6'));var config=require(_0x4ee0('0x7'));var attributes=require(_0x4ee0('0x8'));module[_0x4ee0('0x9')]=function(_0x18e2e2,_0x113df7){return _0x18e2e2[_0x4ee0('0xa')](_0x4ee0('0xb'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x4ee0('0xc'),'fields':[_0x4ee0('0xd'),_0x4ee0('0xe')],'unique':!![]}],'timestamps':!![]});};