Built motion from commit b5996064.|2.6.21
[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 _0xe864=['OpenchannelAccountId','name_whatsapp','WhatsappAccountId','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','exports','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','name_fax','FaxAccountId','name_openchannel'];(function(_0x36cb35,_0x5233e0){var _0x47e2a2=function(_0x55bf4c){while(--_0x55bf4c){_0x36cb35['push'](_0x36cb35['shift']());}};_0x47e2a2(++_0x5233e0);}(_0xe864,0x1bd));var _0x4e86=function(_0x1d3b7e,_0x1fc05c){_0x1d3b7e=_0x1d3b7e-0x0;var _0x45a271=_0xe864[_0x1d3b7e];return _0x45a271;};'use strict';var _=require('lodash');var util=require(_0x4e86('0x0'));var logger=require(_0x4e86('0x1'))(_0x4e86('0x2'));var moment=require(_0x4e86('0x3'));var BPromise=require(_0x4e86('0x4'));var rp=require(_0x4e86('0x5'));var fs=require('fs');var path=require(_0x4e86('0x6'));var rimraf=require('rimraf');var config=require(_0x4e86('0x7'));var attributes=require('./disposition.attributes');module[_0x4e86('0x8')]=function(_0x10e44a,_0x429597){return _0x10e44a[_0x4e86('0x9')](_0x4e86('0xa'),attributes,{'tableName':_0x4e86('0xb'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x4e86('0xc'),'fields':[_0x4e86('0xd'),_0x4e86('0xe')]},{'unique':!![],'name':_0x4e86('0xf'),'fields':[_0x4e86('0xd'),_0x4e86('0x10')]},{'unique':!![],'name':_0x4e86('0x11'),'fields':[_0x4e86('0xd'),_0x4e86('0x12')]},{'unique':!![],'name':_0x4e86('0x13'),'fields':['name','SmsAccountId']},{'unique':!![],'name':_0x4e86('0x14'),'fields':[_0x4e86('0xd'),_0x4e86('0x15')]},{'unique':!![],'name':_0x4e86('0x16'),'fields':[_0x4e86('0xd'),_0x4e86('0x17')]},{'unique':!![],'name':_0x4e86('0x18'),'fields':[_0x4e86('0xd'),_0x4e86('0x19')]}],'timestamps':!![]});};