Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / disposition / disposition.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 _0x8f81=['define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','lodash','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','./disposition.attributes','exports'];(function(_0x22ee7b,_0x293882){var _0x14cac9=function(_0xd05985){while(--_0xd05985){_0x22ee7b['push'](_0x22ee7b['shift']());}};_0x14cac9(++_0x293882);}(_0x8f81,0x162));var _0x18f8=function(_0x38cd9a,_0x37bec0){_0x38cd9a=_0x38cd9a-0x0;var _0xbe040f=_0x8f81[_0x38cd9a];return _0xbe040f;};'use strict';var _=require(_0x18f8('0x0'));var util=require(_0x18f8('0x1'));var logger=require(_0x18f8('0x2'))(_0x18f8('0x3'));var moment=require(_0x18f8('0x4'));var BPromise=require('bluebird');var rp=require(_0x18f8('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x18f8('0x6'));var config=require(_0x18f8('0x7'));var attributes=require(_0x18f8('0x8'));module[_0x18f8('0x9')]=function(_0x3119f7,_0x3cc6e5){return _0x3119f7[_0x18f8('0xa')](_0x18f8('0xb'),attributes,{'tableName':_0x18f8('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x18f8('0xd'),'fields':[_0x18f8('0xe'),_0x18f8('0xf')]},{'unique':!![],'name':_0x18f8('0x10'),'fields':[_0x18f8('0xe'),'ChatWebsiteId']},{'unique':!![],'name':_0x18f8('0x11'),'fields':[_0x18f8('0xe'),_0x18f8('0x12')]},{'unique':!![],'name':_0x18f8('0x13'),'fields':[_0x18f8('0xe'),_0x18f8('0x14')]},{'unique':!![],'name':_0x18f8('0x15'),'fields':[_0x18f8('0xe'),_0x18f8('0x16')]},{'unique':!![],'name':_0x18f8('0x17'),'fields':[_0x18f8('0xe'),_0x18f8('0x18')]},{'unique':!![],'name':_0x18f8('0x19'),'fields':[_0x18f8('0xe'),'WhatsappAccountId']}],'timestamps':!![]});};