Built motion from commit da617fac.|2.6.6
[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 _0x9a3b=['../../config/environment','./chatInternalMessage.attributes','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','bluebird','path','rimraf'];(function(_0x3f044e,_0x56ddcf){var _0x1ff697=function(_0x5c76e4){while(--_0x5c76e4){_0x3f044e['push'](_0x3f044e['shift']());}};_0x1ff697(++_0x56ddcf);}(_0x9a3b,0xbd));var _0xb9a3=function(_0x1411e8,_0x249a68){_0x1411e8=_0x1411e8-0x0;var _0x5b844e=_0x9a3b[_0x1411e8];return _0x5b844e;};'use strict';var _=require(_0xb9a3('0x0'));var util=require(_0xb9a3('0x1'));var logger=require(_0xb9a3('0x2'))('api');var moment=require('moment');var BPromise=require(_0xb9a3('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb9a3('0x4'));var rimraf=require(_0xb9a3('0x5'));var config=require(_0xb9a3('0x6'));var attributes=require(_0xb9a3('0x7'));module['exports']=function(_0x7b0d5e,_0x2c7631){return _0x7b0d5e[_0xb9a3('0x8')](_0xb9a3('0x9'),attributes,{'tableName':_0xb9a3('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xb9a3('0xb'),'collate':_0xb9a3('0xc')});};