Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / api / chatOfflineMessage / chatOfflineMessage.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 _0x66c6=['utf8mb4','utf8mb4_unicode_ci','lodash','util','api','moment','request-promise','path','rimraf','../../config/environment','exports','ChatOfflineMessage'];(function(_0x1f8745,_0x430cfc){var _0x4f4050=function(_0x2c032f){while(--_0x2c032f){_0x1f8745['push'](_0x1f8745['shift']());}};_0x4f4050(++_0x430cfc);}(_0x66c6,0x152));var _0x666c=function(_0x292037,_0x442f7c){_0x292037=_0x292037-0x0;var _0x4bd506=_0x66c6[_0x292037];return _0x4bd506;};'use strict';var _=require(_0x666c('0x0'));var util=require(_0x666c('0x1'));var logger=require('../../config/logger')(_0x666c('0x2'));var moment=require(_0x666c('0x3'));var BPromise=require('bluebird');var rp=require(_0x666c('0x4'));var fs=require('fs');var path=require(_0x666c('0x5'));var rimraf=require(_0x666c('0x6'));var config=require(_0x666c('0x7'));var attributes=require('./chatOfflineMessage.attributes');module[_0x666c('0x8')]=function(_0x510db5,_0x3b5050){return _0x510db5['define'](_0x666c('0x9'),attributes,{'tableName':'chat_offline_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x666c('0xa'),'collate':_0x666c('0xb')});};