Built motion from commit da24aabd.|2.6.20
[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 _0xef98=['../../config/environment','./chatInternalMessage.attributes','exports','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','bluebird','rimraf'];(function(_0x425382,_0x1ce463){var _0x56d8b9=function(_0x5f3a6b){while(--_0x5f3a6b){_0x425382['push'](_0x425382['shift']());}};_0x56d8b9(++_0x1ce463);}(_0xef98,0x157));var _0x8ef9=function(_0x106fb1,_0x492d48){_0x106fb1=_0x106fb1-0x0;var _0x5dc998=_0xef98[_0x106fb1];return _0x5dc998;};'use strict';var _=require(_0x8ef9('0x0'));var util=require(_0x8ef9('0x1'));var logger=require(_0x8ef9('0x2'))(_0x8ef9('0x3'));var moment=require(_0x8ef9('0x4'));var BPromise=require(_0x8ef9('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8ef9('0x6'));var config=require(_0x8ef9('0x7'));var attributes=require(_0x8ef9('0x8'));module[_0x8ef9('0x9')]=function(_0x5da4d9,_0x27f778){return _0x5da4d9['define'](_0x8ef9('0xa'),attributes,{'tableName':_0x8ef9('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x8ef9('0xc'),'collate':_0x8ef9('0xd')});};