0cfcca6dfe27d9d712e6667efb04c280c5fa2389
[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 _0x5dce=['moment','path','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','util','api'];(function(_0x35f7f5,_0x4e2ee1){var _0x5567a4=function(_0x3e5df0){while(--_0x3e5df0){_0x35f7f5['push'](_0x35f7f5['shift']());}};_0x5567a4(++_0x4e2ee1);}(_0x5dce,0x186));var _0xe5dc=function(_0x254fd1,_0x17eae1){_0x254fd1=_0x254fd1-0x0;var _0x2d33f1=_0x5dce[_0x254fd1];return _0x2d33f1;};'use strict';var _=require('lodash');var util=require(_0xe5dc('0x0'));var logger=require('../../config/logger')(_0xe5dc('0x1'));var moment=require(_0xe5dc('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe5dc('0x3'));var rimraf=require(_0xe5dc('0x4'));var config=require(_0xe5dc('0x5'));var attributes=require(_0xe5dc('0x6'));module[_0xe5dc('0x7')]=function(_0x34a9d3,_0x1e9565){return _0x34a9d3[_0xe5dc('0x8')](_0xe5dc('0x9'),attributes,{'tableName':_0xe5dc('0xa'),'paranoid':![],'indexes':[{'name':_0xe5dc('0xb'),'fields':[_0xe5dc('0xc'),_0xe5dc('0xd')],'unique':!![]}],'timestamps':!![]});};