1881bd9f59ee48a1b9f5c578c875549fc064d10b
[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 _0x0b98=['rimraf','./chatOfflineMessage.attributes','define','ChatOfflineMessage','chat_offline_messages','utf8mb4','util','api','request-promise','path'];(function(_0x38325,_0x262d3c){var _0x2994d6=function(_0x48af6e){while(--_0x48af6e){_0x38325['push'](_0x38325['shift']());}};_0x2994d6(++_0x262d3c);}(_0x0b98,0x178));var _0x80b9=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x0b98[_0x14add3];return _0x4a174f;};'use strict';var _=require('lodash');var util=require(_0x80b9('0x0'));var logger=require('../../config/logger')(_0x80b9('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x80b9('0x2'));var fs=require('fs');var path=require(_0x80b9('0x3'));var rimraf=require(_0x80b9('0x4'));var config=require('../../config/environment');var attributes=require(_0x80b9('0x5'));module['exports']=function(_0x12b482,_0xb8c7cc){return _0x12b482[_0x80b9('0x6')](_0x80b9('0x7'),attributes,{'tableName':_0x80b9('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x80b9('0x9'),'collate':'utf8mb4_unicode_ci'});};