32414a1dbf6876cba9b45154640f9ae0f0dbd1f6
[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 _0x012f=['moment','path','rimraf','../../config/environment','./chatOfflineMessage.attributes','define','ChatOfflineMessage','chat_offline_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api'];(function(_0x427303,_0x3bcc62){var _0x52d9ed=function(_0x268b1f){while(--_0x268b1f){_0x427303['push'](_0x427303['shift']());}};_0x52d9ed(++_0x3bcc62);}(_0x012f,0xf8));var _0xf012=function(_0x1f2b4f,_0x15fc6e){_0x1f2b4f=_0x1f2b4f-0x0;var _0x1cb58e=_0x012f[_0x1f2b4f];return _0x1cb58e;};'use strict';var _=require(_0xf012('0x0'));var util=require(_0xf012('0x1'));var logger=require(_0xf012('0x2'))(_0xf012('0x3'));var moment=require(_0xf012('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xf012('0x5'));var rimraf=require(_0xf012('0x6'));var config=require(_0xf012('0x7'));var attributes=require(_0xf012('0x8'));module['exports']=function(_0x9af68e,_0x228451){return _0x9af68e[_0xf012('0x9')](_0xf012('0xa'),attributes,{'tableName':_0xf012('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xf012('0xc'),'collate':_0xf012('0xd')});};