Built motion from commit 953226e6.|2.6.32
[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 _0xa507=['bluebird','request-promise','rimraf','../../config/environment','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4_unicode_ci','lodash','util','../../config/logger','api'];(function(_0x189305,_0x46c43f){var _0xea3406=function(_0x2aa435){while(--_0x2aa435){_0x189305['push'](_0x189305['shift']());}};_0xea3406(++_0x46c43f);}(_0xa507,0xa5));var _0x7a50=function(_0x131e60,_0x5352ce){_0x131e60=_0x131e60-0x0;var _0x4bc497=_0xa507[_0x131e60];return _0x4bc497;};'use strict';var _=require(_0x7a50('0x0'));var util=require(_0x7a50('0x1'));var logger=require(_0x7a50('0x2'))(_0x7a50('0x3'));var moment=require('moment');var BPromise=require(_0x7a50('0x4'));var rp=require(_0x7a50('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7a50('0x6'));var config=require(_0x7a50('0x7'));var attributes=require('./chatInternalMessage.attributes');module[_0x7a50('0x8')]=function(_0x3b9b1f,_0x50da83){return _0x3b9b1f[_0x7a50('0x9')](_0x7a50('0xa'),attributes,{'tableName':_0x7a50('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x7a50('0xc')});};