b68b995adbb40cf942addd42d41dcfaf08d26d6e
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.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 _0x0752=['path','rimraf','./chatInternalMessage.attributes','exports','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x34843e,_0x4c4224){var _0x598f7f=function(_0x12a44c){while(--_0x12a44c){_0x34843e['push'](_0x34843e['shift']());}};_0x598f7f(++_0x4c4224);}(_0x0752,0x19e));var _0x2075=function(_0x5dba7e,_0x1a50b7){_0x5dba7e=_0x5dba7e-0x0;var _0x7bdae9=_0x0752[_0x5dba7e];return _0x7bdae9;};'use strict';var _=require(_0x2075('0x0'));var util=require(_0x2075('0x1'));var logger=require(_0x2075('0x2'))(_0x2075('0x3'));var moment=require(_0x2075('0x4'));var BPromise=require(_0x2075('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2075('0x6'));var rimraf=require(_0x2075('0x7'));var config=require('../../config/environment');var attributes=require(_0x2075('0x8'));module[_0x2075('0x9')]=function(_0x3c839f,_0x2b7b34){return _0x3c839f['define'](_0x2075('0xa'),attributes,{'tableName':_0x2075('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2075('0xc'),'collate':_0x2075('0xd')});};