Built motion from commit 14588770.|2.5.38
[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 _0xbb07=['exports','define','ChatOfflineMessage','chat_offline_messages','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0xbb07,0x10a));var _0x7bb0=function(_0x583277,_0x5ca82d){_0x583277=_0x583277-0x0;var _0x1baf2c=_0xbb07[_0x583277];return _0x1baf2c;};'use strict';var _=require('lodash');var util=require(_0x7bb0('0x0'));var logger=require(_0x7bb0('0x1'))(_0x7bb0('0x2'));var moment=require(_0x7bb0('0x3'));var BPromise=require(_0x7bb0('0x4'));var rp=require(_0x7bb0('0x5'));var fs=require('fs');var path=require(_0x7bb0('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./chatOfflineMessage.attributes');module[_0x7bb0('0x7')]=function(_0x45d163,_0xbb371d){return _0x45d163[_0x7bb0('0x8')](_0x7bb0('0x9'),attributes,{'tableName':_0x7bb0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x7bb0('0xb'),'collate':_0x7bb0('0xc')});};