Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / intZendeskField / intZendeskField.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 _0x60e4=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intZendeskField.attributes','exports','define','int_zendesk_fields','zendesk_unique_index','idField','FieldId','util'];(function(_0x4bdfb4,_0x4e9c7a){var _0x22a190=function(_0x2f0a1d){while(--_0x2f0a1d){_0x4bdfb4['push'](_0x4bdfb4['shift']());}};_0x22a190(++_0x4e9c7a);}(_0x60e4,0x15f));var _0x460e=function(_0x3e1f8,_0x5ac5b0){_0x3e1f8=_0x3e1f8-0x0;var _0x29f936=_0x60e4[_0x3e1f8];return _0x29f936;};'use strict';var _=require('lodash');var util=require(_0x460e('0x0'));var logger=require(_0x460e('0x1'))(_0x460e('0x2'));var moment=require(_0x460e('0x3'));var BPromise=require(_0x460e('0x4'));var rp=require(_0x460e('0x5'));var fs=require('fs');var path=require(_0x460e('0x6'));var rimraf=require(_0x460e('0x7'));var config=require(_0x460e('0x8'));var attributes=require(_0x460e('0x9'));module[_0x460e('0xa')]=function(_0x450438,_0x560251){return _0x450438[_0x460e('0xb')]('ZendeskField',attributes,{'tableName':_0x460e('0xc'),'paranoid':![],'indexes':[{'name':_0x460e('0xd'),'fields':[_0x460e('0xe'),_0x460e('0xf')],'unique':!![]}],'timestamps':!![]});};