b1a53990333c6dce10a569657b6ccd8e8954adc6
[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 _0xc60e=['path','rimraf','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x453a6a,_0x38d627){var _0x195def=function(_0x2211a1){while(--_0x2211a1){_0x453a6a['push'](_0x453a6a['shift']());}};_0x195def(++_0x38d627);}(_0xc60e,0x1aa));var _0xec60=function(_0x52bec9,_0x587d79){_0x52bec9=_0x52bec9-0x0;var _0x414a7c=_0xc60e[_0x52bec9];return _0x414a7c;};'use strict';var _=require('lodash');var util=require(_0xec60('0x0'));var logger=require(_0xec60('0x1'))(_0xec60('0x2'));var moment=require(_0xec60('0x3'));var BPromise=require(_0xec60('0x4'));var rp=require(_0xec60('0x5'));var fs=require('fs');var path=require(_0xec60('0x6'));var rimraf=require(_0xec60('0x7'));var config=require(_0xec60('0x8'));var attributes=require(_0xec60('0x9'));module[_0xec60('0xa')]=function(_0x21c8ae,_0x47224b){return _0x21c8ae[_0xec60('0xb')](_0xec60('0xc'),attributes,{'tableName':_0xec60('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xec60('0xe'),'collate':_0xec60('0xf')});};