Built motion from commit (unavailable).|2.5.5
[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 _0x6bde=['util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','FieldId','lodash'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0x6bde,0x86));var _0xe6bd=function(_0x265457,_0x3ad4a3){_0x265457=_0x265457-0x0;var _0x1b9873=_0x6bde[_0x265457];return _0x1b9873;};'use strict';var _=require(_0xe6bd('0x0'));var util=require(_0xe6bd('0x1'));var logger=require(_0xe6bd('0x2'))('api');var moment=require('moment');var BPromise=require(_0xe6bd('0x3'));var rp=require(_0xe6bd('0x4'));var fs=require('fs');var path=require(_0xe6bd('0x5'));var rimraf=require(_0xe6bd('0x6'));var config=require(_0xe6bd('0x7'));var attributes=require(_0xe6bd('0x8'));module[_0xe6bd('0x9')]=function(_0x7a9bdf,_0x5a9e9b){return _0x7a9bdf[_0xe6bd('0xa')](_0xe6bd('0xb'),attributes,{'tableName':_0xe6bd('0xc'),'paranoid':![],'indexes':[{'name':_0xe6bd('0xd'),'fields':['idField',_0xe6bd('0xe')],'unique':!![]}],'timestamps':!![]});};