Built motion from commit 9d7072cc.|2.5.39
[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 _0x2ee0=['../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','utf8mb4_unicode_ci','util','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x3e07de,_0x546c14){var _0x5edb94=function(_0x31c2c4){while(--_0x31c2c4){_0x3e07de['push'](_0x3e07de['shift']());}};_0x5edb94(++_0x546c14);}(_0x2ee0,0x117));var _0x02ee=function(_0x445ffa,_0x517a6b){_0x445ffa=_0x445ffa-0x0;var _0x2aefd2=_0x2ee0[_0x445ffa];return _0x2aefd2;};'use strict';var _=require('lodash');var util=require(_0x02ee('0x0'));var logger=require(_0x02ee('0x1'))('api');var moment=require(_0x02ee('0x2'));var BPromise=require(_0x02ee('0x3'));var rp=require(_0x02ee('0x4'));var fs=require('fs');var path=require(_0x02ee('0x5'));var rimraf=require(_0x02ee('0x6'));var config=require(_0x02ee('0x7'));var attributes=require(_0x02ee('0x8'));module[_0x02ee('0x9')]=function(_0x1a0b55,_0x51df74){return _0x1a0b55[_0x02ee('0xa')](_0x02ee('0xb'),attributes,{'tableName':'chat_internal_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x02ee('0xc')});};