Built motion from commit 6a92c2cd.|2.6.29
[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 _0x5ed3=['./disposition.attributes','exports','define','Disposition','name_voice','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','../../config/logger','moment','request-promise','path','rimraf'];(function(_0x229c30,_0x575576){var _0x4d7ac3=function(_0x489025){while(--_0x489025){_0x229c30['push'](_0x229c30['shift']());}};_0x4d7ac3(++_0x575576);}(_0x5ed3,0x1dd));var _0x35ed=function(_0x55c97c,_0x3ba132){_0x55c97c=_0x55c97c-0x0;var _0x148b14=_0x5ed3[_0x55c97c];return _0x148b14;};'use strict';var _=require(_0x35ed('0x0'));var util=require('util');var logger=require(_0x35ed('0x1'))('api');var moment=require(_0x35ed('0x2'));var BPromise=require('bluebird');var rp=require(_0x35ed('0x3'));var fs=require('fs');var path=require(_0x35ed('0x4'));var rimraf=require(_0x35ed('0x5'));var config=require('../../config/environment');var attributes=require(_0x35ed('0x6'));module[_0x35ed('0x7')]=function(_0x2be17e,_0x56dc9b){return _0x2be17e[_0x35ed('0x8')](_0x35ed('0x9'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x35ed('0xa'),'fields':[_0x35ed('0xb'),_0x35ed('0xc')]},{'unique':!![],'name':'name_chat','fields':[_0x35ed('0xb'),_0x35ed('0xd')]},{'unique':!![],'name':_0x35ed('0xe'),'fields':['name',_0x35ed('0xf')]},{'unique':!![],'name':_0x35ed('0x10'),'fields':['name',_0x35ed('0x11')]},{'unique':!![],'name':_0x35ed('0x12'),'fields':[_0x35ed('0xb'),_0x35ed('0x13')]},{'unique':!![],'name':'name_openchannel','fields':[_0x35ed('0xb'),_0x35ed('0x14')]},{'unique':!![],'name':_0x35ed('0x15'),'fields':[_0x35ed('0xb'),_0x35ed('0x16')]}],'timestamps':!![]});};