Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / api / intZendeskAccount / intZendeskAccount.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 _0xe914=['define','ZendeskAccount','int_zendesk_accounts','util','../../config/logger','moment','bluebird','request-promise','rimraf','./intZendeskAccount.attributes','../../components/integrations/configuration','exports'];(function(_0x3a1bcd,_0x244041){var _0x57422c=function(_0x1e7a61){while(--_0x1e7a61){_0x3a1bcd['push'](_0x3a1bcd['shift']());}};_0x57422c(++_0x244041);}(_0xe914,0x1ef));var _0x4e91=function(_0x3c0dcc,_0x18c419){_0x3c0dcc=_0x3c0dcc-0x0;var _0x1a224c=_0xe914[_0x3c0dcc];return _0x1a224c;};'use strict';var _=require('lodash');var util=require(_0x4e91('0x0'));var logger=require(_0x4e91('0x1'))('api');var moment=require(_0x4e91('0x2'));var BPromise=require(_0x4e91('0x3'));var rp=require(_0x4e91('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4e91('0x5'));var config=require('../../config/environment');var attributes=require(_0x4e91('0x6'));var integrations=require(_0x4e91('0x7'));module[_0x4e91('0x8')]=function(_0x4b7e8e,_0xb7be1c){return _0x4b7e8e[_0x4e91('0x9')](_0x4e91('0xa'),attributes,{'tableName':_0x4e91('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};