b05aeab6e72e69e91553b8c480ccd8cc5449880c
[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 _0x55d4=['util','../../config/logger','api','request-promise','path','../../config/environment','./chatInternalMessage.attributes','define','ChatInternalMessage','chat_internal_messages','utf8mb4_unicode_ci'];(function(_0x7a3ade,_0x4fe458){var _0x394283=function(_0x3acd03){while(--_0x3acd03){_0x7a3ade['push'](_0x7a3ade['shift']());}};_0x394283(++_0x4fe458);}(_0x55d4,0xf2));var _0x455d=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x55d4[_0x122ef9];return _0x42fba0;};'use strict';var _=require('lodash');var util=require(_0x455d('0x0'));var logger=require(_0x455d('0x1'))(_0x455d('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x455d('0x3'));var fs=require('fs');var path=require(_0x455d('0x4'));var rimraf=require('rimraf');var config=require(_0x455d('0x5'));var attributes=require(_0x455d('0x6'));module['exports']=function(_0x55e45d,_0x479023){return _0x55e45d[_0x455d('0x7')](_0x455d('0x8'),attributes,{'tableName':_0x455d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x455d('0xa')});};