62cb620c19aa23699ae5f991b2541b2e0e0e32e8
[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 _0x4ee1=['exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment','bluebird','path','rimraf','./openchannelApplication.attributes'];(function(_0x5a1a51,_0x144c79){var _0x47edd7=function(_0x2259bb){while(--_0x2259bb){_0x5a1a51['push'](_0x5a1a51['shift']());}};_0x47edd7(++_0x144c79);}(_0x4ee1,0xae));var _0x14ee=function(_0x539b21,_0x64130d){_0x539b21=_0x539b21-0x0;var _0x32aa4b=_0x4ee1[_0x539b21];return _0x32aa4b;};'use strict';var _=require('lodash');var util=require(_0x14ee('0x0'));var logger=require(_0x14ee('0x1'))(_0x14ee('0x2'));var moment=require(_0x14ee('0x3'));var BPromise=require(_0x14ee('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x14ee('0x5'));var rimraf=require(_0x14ee('0x6'));var config=require('../../config/environment');var attributes=require(_0x14ee('0x7'));module[_0x14ee('0x8')]=function(_0x255ee4,_0xd9f80b){return _0x255ee4[_0x14ee('0x9')](_0x14ee('0xa'),attributes,{'tableName':_0x14ee('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x14ee('0xc'),'collate':_0x14ee('0xd')});};