Built motion from commit 87cd5f02.|2.5.48
[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 _0x943f=['../../config/logger','api','bluebird','path','./chatApplication.attributes','exports','define','ChatApplication','chat_applications','utf8mb4','utf8mb4_unicode_ci','util'];(function(_0x59250f,_0x13a768){var _0x48818d=function(_0x7fcb0c){while(--_0x7fcb0c){_0x59250f['push'](_0x59250f['shift']());}};_0x48818d(++_0x13a768);}(_0x943f,0x6b));var _0xf943=function(_0x4cbe7e,_0x30f5eb){_0x4cbe7e=_0x4cbe7e-0x0;var _0x2ab495=_0x943f[_0x4cbe7e];return _0x2ab495;};'use strict';var _=require('lodash');var util=require(_0xf943('0x0'));var logger=require(_0xf943('0x1'))(_0xf943('0x2'));var moment=require('moment');var BPromise=require(_0xf943('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf943('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf943('0x5'));module[_0xf943('0x6')]=function(_0x39ad51,_0x30dd3){return _0x39ad51[_0xf943('0x7')](_0xf943('0x8'),attributes,{'tableName':_0xf943('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xf943('0xa'),'collate':_0xf943('0xb')});};