Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0xdf61=['util','api','bluebird','request-promise','path','rimraf','../../config/environment','./openchannelApplication.attributes','exports','define','utf8mb4','utf8mb4_unicode_ci','lodash'];(function(_0x641475,_0x5db0f1){var _0x6e3fa4=function(_0x3e8081){while(--_0x3e8081){_0x641475['push'](_0x641475['shift']());}};_0x6e3fa4(++_0x5db0f1);}(_0xdf61,0x74));var _0x1df6=function(_0x36d15f,_0x4c3130){_0x36d15f=_0x36d15f-0x0;var _0x3682f3=_0xdf61[_0x36d15f];return _0x3682f3;};'use strict';var _=require(_0x1df6('0x0'));var util=require(_0x1df6('0x1'));var logger=require('../../config/logger')(_0x1df6('0x2'));var moment=require('moment');var BPromise=require(_0x1df6('0x3'));var rp=require(_0x1df6('0x4'));var fs=require('fs');var path=require(_0x1df6('0x5'));var rimraf=require(_0x1df6('0x6'));var config=require(_0x1df6('0x7'));var attributes=require(_0x1df6('0x8'));module[_0x1df6('0x9')]=function(_0x29cfff,_0x378520){return _0x29cfff[_0x1df6('0xa')]('OpenchannelApplication',attributes,{'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1df6('0xb'),'collate':_0x1df6('0xc')});};