2dbcf4dc6c68f96f4b1ee3120d33b402a7bd1805
[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 _0x95e0=['./intZendeskField.attributes','exports','ZendeskField','zendesk_unique_index','FieldId','util','api','moment','bluebird','request-promise'];(function(_0x15abf6,_0x30cc94){var _0x45637f=function(_0x5d67c6){while(--_0x5d67c6){_0x15abf6['push'](_0x15abf6['shift']());}};_0x45637f(++_0x30cc94);}(_0x95e0,0x113));var _0x095e=function(_0x2e5dbd,_0x16cdc7){_0x2e5dbd=_0x2e5dbd-0x0;var _0x35a16f=_0x95e0[_0x2e5dbd];return _0x35a16f;};'use strict';var _=require('lodash');var util=require(_0x095e('0x0'));var logger=require('../../config/logger')(_0x095e('0x1'));var moment=require(_0x095e('0x2'));var BPromise=require(_0x095e('0x3'));var rp=require(_0x095e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x095e('0x5'));module[_0x095e('0x6')]=function(_0x5c7d55,_0x503905){return _0x5c7d55['define'](_0x095e('0x7'),attributes,{'tableName':'int_zendesk_fields','paranoid':![],'indexes':[{'name':_0x095e('0x8'),'fields':['idField',_0x095e('0x9')],'unique':!![]}],'timestamps':!![]});};