5d5dd5b7838ec03355ad48cd52518e4a02385a5e
[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 _0xdaee=['api','bluebird','request-promise','rimraf','../../config/environment','./intFreshdeskField.attributes','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','util','../../config/logger'];(function(_0x539630,_0xc7ad57){var _0x7caa4=function(_0x47d001){while(--_0x47d001){_0x539630['push'](_0x539630['shift']());}};_0x7caa4(++_0xc7ad57);}(_0xdaee,0x82));var _0xedae=function(_0x4080c7,_0x460aeb){_0x4080c7=_0x4080c7-0x0;var _0x50da3f=_0xdaee[_0x4080c7];return _0x50da3f;};'use strict';var _=require('lodash');var util=require(_0xedae('0x0'));var logger=require(_0xedae('0x1'))(_0xedae('0x2'));var moment=require('moment');var BPromise=require(_0xedae('0x3'));var rp=require(_0xedae('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xedae('0x5'));var config=require(_0xedae('0x6'));var attributes=require(_0xedae('0x7'));module['exports']=function(_0x20af67,_0x6531b){return _0x20af67['define'](_0xedae('0x8'),attributes,{'tableName':_0xedae('0x9'),'paranoid':![],'indexes':[{'name':_0xedae('0xa'),'fields':[_0xedae('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};