934d9ed10e6547254b1808067fbdf95dafd94a8f
[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 _0xe1af=['moment','request-promise','path','rimraf','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','api'];(function(_0x941ba5,_0x9a095){var _0x3a681f=function(_0x16ae63){while(--_0x16ae63){_0x941ba5['push'](_0x941ba5['shift']());}};_0x3a681f(++_0x9a095);}(_0xe1af,0x192));var _0xfe1a=function(_0x3fb25d,_0x38f493){_0x3fb25d=_0x3fb25d-0x0;var _0x1d896b=_0xe1af[_0x3fb25d];return _0x1d896b;};'use strict';var _=require(_0xfe1a('0x0'));var util=require(_0xfe1a('0x1'));var logger=require('../../config/logger')(_0xfe1a('0x2'));var moment=require(_0xfe1a('0x3'));var BPromise=require('bluebird');var rp=require(_0xfe1a('0x4'));var fs=require('fs');var path=require(_0xfe1a('0x5'));var rimraf=require(_0xfe1a('0x6'));var config=require(_0xfe1a('0x7'));var attributes=require(_0xfe1a('0x8'));module[_0xfe1a('0x9')]=function(_0x20feb6,_0xb2d33a){return _0x20feb6[_0xfe1a('0xa')](_0xfe1a('0xb'),attributes,{'tableName':_0xfe1a('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xfe1a('0xd'),'collate':_0xfe1a('0xe')});};