8afc2f399fb9b0975eec820929513f5873de0f4f
[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 _0x23c0=['moment','request-promise','path','../../config/environment','./chatOfflineMessage.attributes','exports','define','ChatOfflineMessage','utf8mb4','utf8mb4_unicode_ci','lodash','util','api'];(function(_0x1d3407,_0x174561){var _0x428a2d=function(_0x4647a4){while(--_0x4647a4){_0x1d3407['push'](_0x1d3407['shift']());}};_0x428a2d(++_0x174561);}(_0x23c0,0x169));var _0x023c=function(_0x158451,_0x41a456){_0x158451=_0x158451-0x0;var _0x5e25f3=_0x23c0[_0x158451];return _0x5e25f3;};'use strict';var _=require(_0x023c('0x0'));var util=require(_0x023c('0x1'));var logger=require('../../config/logger')(_0x023c('0x2'));var moment=require(_0x023c('0x3'));var BPromise=require('bluebird');var rp=require(_0x023c('0x4'));var fs=require('fs');var path=require(_0x023c('0x5'));var rimraf=require('rimraf');var config=require(_0x023c('0x6'));var attributes=require(_0x023c('0x7'));module[_0x023c('0x8')]=function(_0x3e04cc,_0x1f0f45){return _0x3e04cc[_0x023c('0x9')](_0x023c('0xa'),attributes,{'tableName':'chat_offline_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x023c('0xb'),'collate':_0x023c('0xc')});};