76c80fff00a9122ad02d67b381deb78341680e50
[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 _0xb866=['name_mail','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','util','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./disposition.attributes','exports','define','Disposition','name_voice','name','ListId','name_chat','ChatWebsiteId'];(function(_0x5a778b,_0x717daa){var _0x32f0da=function(_0x546db4){while(--_0x546db4){_0x5a778b['push'](_0x5a778b['shift']());}};_0x32f0da(++_0x717daa);}(_0xb866,0x68));var _0x6b86=function(_0x4b1d23,_0x4bbeef){_0x4b1d23=_0x4b1d23-0x0;var _0x5ed88b=_0xb866[_0x4b1d23];return _0x5ed88b;};'use strict';var _=require('lodash');var util=require(_0x6b86('0x0'));var logger=require(_0x6b86('0x1'))(_0x6b86('0x2'));var moment=require('moment');var BPromise=require(_0x6b86('0x3'));var rp=require(_0x6b86('0x4'));var fs=require('fs');var path=require(_0x6b86('0x5'));var rimraf=require('rimraf');var config=require(_0x6b86('0x6'));var attributes=require(_0x6b86('0x7'));module[_0x6b86('0x8')]=function(_0x2f23e8,_0x12ca08){return _0x2f23e8[_0x6b86('0x9')](_0x6b86('0xa'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x6b86('0xb'),'fields':[_0x6b86('0xc'),_0x6b86('0xd')]},{'unique':!![],'name':_0x6b86('0xe'),'fields':[_0x6b86('0xc'),_0x6b86('0xf')]},{'unique':!![],'name':_0x6b86('0x10'),'fields':[_0x6b86('0xc'),'MailAccountId']},{'unique':!![],'name':_0x6b86('0x11'),'fields':[_0x6b86('0xc'),_0x6b86('0x12')]},{'unique':!![],'name':_0x6b86('0x13'),'fields':['name',_0x6b86('0x14')]},{'unique':!![],'name':_0x6b86('0x15'),'fields':['name',_0x6b86('0x16')]},{'unique':!![],'name':_0x6b86('0x17'),'fields':[_0x6b86('0xc'),'WhatsappAccountId']}],'timestamps':!![]});};