Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / chatApplication / chatApplication.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 _0x1cbb=['bluebird','request-promise','path','../../config/environment','./chatApplication.attributes','exports','define','ChatApplication','chat_applications','lodash','util','api','moment'];(function(_0x91fec0,_0x1d08c6){var _0xa7f524=function(_0x359e9a){while(--_0x359e9a){_0x91fec0['push'](_0x91fec0['shift']());}};_0xa7f524(++_0x1d08c6);}(_0x1cbb,0x18f));var _0xb1cb=function(_0x278d73,_0x58c873){_0x278d73=_0x278d73-0x0;var _0x2c7399=_0x1cbb[_0x278d73];return _0x2c7399;};'use strict';var _=require(_0xb1cb('0x0'));var util=require(_0xb1cb('0x1'));var logger=require('../../config/logger')(_0xb1cb('0x2'));var moment=require(_0xb1cb('0x3'));var BPromise=require(_0xb1cb('0x4'));var rp=require(_0xb1cb('0x5'));var fs=require('fs');var path=require(_0xb1cb('0x6'));var rimraf=require('rimraf');var config=require(_0xb1cb('0x7'));var attributes=require(_0xb1cb('0x8'));module[_0xb1cb('0x9')]=function(_0x3555b0,_0x23254e){return _0x3555b0[_0xb1cb('0xa')](_0xb1cb('0xb'),attributes,{'tableName':_0xb1cb('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};