6186bc4217f53f2f50ee8edce3c4beebe2a6ff4b
[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 _0x9e63=['ChatWebsiteId','MailAccountId','name_sms','SmsAccountId','name_fax','name_openchannel','WhatsappAccountId','lodash','util','api','moment','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat'];(function(_0x33446f,_0x3f9d63){var _0x344eac=function(_0x53b1a4){while(--_0x53b1a4){_0x33446f['push'](_0x33446f['shift']());}};_0x344eac(++_0x3f9d63);}(_0x9e63,0xaf));var _0x39e6=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0x9e63[_0x2f5ac5];return _0x37c9a8;};'use strict';var _=require(_0x39e6('0x0'));var util=require(_0x39e6('0x1'));var logger=require('../../config/logger')(_0x39e6('0x2'));var moment=require(_0x39e6('0x3'));var BPromise=require('bluebird');var rp=require(_0x39e6('0x4'));var fs=require('fs');var path=require(_0x39e6('0x5'));var rimraf=require(_0x39e6('0x6'));var config=require(_0x39e6('0x7'));var attributes=require(_0x39e6('0x8'));module[_0x39e6('0x9')]=function(_0x1ca664,_0x29b835){return _0x1ca664[_0x39e6('0xa')](_0x39e6('0xb'),attributes,{'tableName':_0x39e6('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x39e6('0xd'),'fields':[_0x39e6('0xe'),_0x39e6('0xf')]},{'unique':!![],'name':_0x39e6('0x10'),'fields':[_0x39e6('0xe'),_0x39e6('0x11')]},{'unique':!![],'name':'name_mail','fields':[_0x39e6('0xe'),_0x39e6('0x12')]},{'unique':!![],'name':_0x39e6('0x13'),'fields':[_0x39e6('0xe'),_0x39e6('0x14')]},{'unique':!![],'name':_0x39e6('0x15'),'fields':[_0x39e6('0xe'),'FaxAccountId']},{'unique':!![],'name':_0x39e6('0x16'),'fields':[_0x39e6('0xe'),'OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':[_0x39e6('0xe'),_0x39e6('0x17')]}],'timestamps':!![]});};