c8aaec3d0e3a95b4676032902f2d3174aacec5cf
[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 _0xdb1e=['define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./chatInternalMessage.attributes','exports'];(function(_0x4ae6ef,_0xc2af80){var _0x3cbb4e=function(_0x569ad5){while(--_0x569ad5){_0x4ae6ef['push'](_0x4ae6ef['shift']());}};_0x3cbb4e(++_0xc2af80);}(_0xdb1e,0x67));var _0xedb1=function(_0xa17489,_0x4c8c80){_0xa17489=_0xa17489-0x0;var _0xdf0376=_0xdb1e[_0xa17489];return _0xdf0376;};'use strict';var _=require(_0xedb1('0x0'));var util=require('util');var logger=require(_0xedb1('0x1'))(_0xedb1('0x2'));var moment=require('moment');var BPromise=require(_0xedb1('0x3'));var rp=require(_0xedb1('0x4'));var fs=require('fs');var path=require(_0xedb1('0x5'));var rimraf=require('rimraf');var config=require(_0xedb1('0x6'));var attributes=require(_0xedb1('0x7'));module[_0xedb1('0x8')]=function(_0x446366,_0x1265b2){return _0x446366[_0xedb1('0x9')](_0xedb1('0xa'),attributes,{'tableName':_0xedb1('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xedb1('0xc'),'collate':_0xedb1('0xd')});};