6f5021e57f3b135866377117778d6d80e53f519c
[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 _0xc1e4=['exports','ChatInternalMessage','chat_internal_messages','utf8mb4','lodash','util','bluebird','../../config/environment','./chatInternalMessage.attributes'];(function(_0x496bb7,_0x32b9fa){var _0x589721=function(_0x4ca56b){while(--_0x4ca56b){_0x496bb7['push'](_0x496bb7['shift']());}};_0x589721(++_0x32b9fa);}(_0xc1e4,0x1a2));var _0x4c1e=function(_0x4e654d,_0x4565aa){_0x4e654d=_0x4e654d-0x0;var _0x261d8f=_0xc1e4[_0x4e654d];return _0x261d8f;};'use strict';var _=require(_0x4c1e('0x0'));var util=require(_0x4c1e('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x4c1e('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4c1e('0x3'));var attributes=require(_0x4c1e('0x4'));module[_0x4c1e('0x5')]=function(_0x5f2687,_0x43bbcc){return _0x5f2687['define'](_0x4c1e('0x6'),attributes,{'tableName':_0x4c1e('0x7'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4c1e('0x8'),'collate':'utf8mb4_unicode_ci'});};