Built motion from commit 3c2ce842.|2.6.31
[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 _0xbe86=['request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','tools_dispositions','name_voice','ListId','ChatWebsiteId','name','MailAccountId','name_fax','FaxAccountId','name_openchannel','WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x45bb8b,_0x411b88){var _0x4394db=function(_0xca5928){while(--_0xca5928){_0x45bb8b['push'](_0x45bb8b['shift']());}};_0x4394db(++_0x411b88);}(_0xbe86,0x1f4));var _0x6be8=function(_0x2962b4,_0x4b0786){_0x2962b4=_0x2962b4-0x0;var _0x411b7d=_0xbe86[_0x2962b4];return _0x411b7d;};'use strict';var _=require(_0x6be8('0x0'));var util=require(_0x6be8('0x1'));var logger=require(_0x6be8('0x2'))(_0x6be8('0x3'));var moment=require(_0x6be8('0x4'));var BPromise=require(_0x6be8('0x5'));var rp=require(_0x6be8('0x6'));var fs=require('fs');var path=require(_0x6be8('0x7'));var rimraf=require(_0x6be8('0x8'));var config=require(_0x6be8('0x9'));var attributes=require(_0x6be8('0xa'));module[_0x6be8('0xb')]=function(_0x42c020,_0x251d41){return _0x42c020[_0x6be8('0xc')]('Disposition',attributes,{'tableName':_0x6be8('0xd'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x6be8('0xe'),'fields':['name',_0x6be8('0xf')]},{'unique':!![],'name':'name_chat','fields':['name',_0x6be8('0x10')]},{'unique':!![],'name':'name_mail','fields':[_0x6be8('0x11'),_0x6be8('0x12')]},{'unique':!![],'name':'name_sms','fields':['name','SmsAccountId']},{'unique':!![],'name':_0x6be8('0x13'),'fields':[_0x6be8('0x11'),_0x6be8('0x14')]},{'unique':!![],'name':_0x6be8('0x15'),'fields':[_0x6be8('0x11'),'OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':[_0x6be8('0x11'),_0x6be8('0x16')]}],'timestamps':!![]});};