Built motion from commit 52c8a02d.|2.6.29
[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 _0x449e=['lodash','util','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','int_zendesk_fields','zendesk_unique_index','FieldId'];(function(_0x3dec0d,_0x132158){var _0x5d36b2=function(_0x30c735){while(--_0x30c735){_0x3dec0d['push'](_0x3dec0d['shift']());}};_0x5d36b2(++_0x132158);}(_0x449e,0x9c));var _0xe449=function(_0x17d229,_0x265a8f){_0x17d229=_0x17d229-0x0;var _0x2318da=_0x449e[_0x17d229];return _0x2318da;};'use strict';var _=require(_0xe449('0x0'));var util=require(_0xe449('0x1'));var logger=require('../../config/logger')(_0xe449('0x2'));var moment=require(_0xe449('0x3'));var BPromise=require('bluebird');var rp=require(_0xe449('0x4'));var fs=require('fs');var path=require(_0xe449('0x5'));var rimraf=require(_0xe449('0x6'));var config=require(_0xe449('0x7'));var attributes=require('./intZendeskField.attributes');module[_0xe449('0x8')]=function(_0x292df4,_0x5b7dbb){return _0x292df4[_0xe449('0x9')]('ZendeskField',attributes,{'tableName':_0xe449('0xa'),'paranoid':![],'indexes':[{'name':_0xe449('0xb'),'fields':['idField',_0xe449('0xc')],'unique':!![]}],'timestamps':!![]});};